@kohost/api-client 7.5.0 → 7.6.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 (434) hide show
  1. package/dist/commands/command.d.ts +4 -4
  2. package/dist/commands/createImageUploadEndpoint.d.ts +3 -3
  3. package/dist/commands/createShortLink.d.ts +3 -3
  4. package/dist/commands/getCategories.d.ts +2 -2
  5. package/dist/commands/getMobileKey.d.ts +4 -4
  6. package/dist/commands/getProducts.d.ts +3 -3
  7. package/dist/commands/getRooms.d.ts +6 -6
  8. package/dist/commands/getUsers.d.ts +2 -2
  9. package/dist/commands/ocrDocument.d.ts +3 -3
  10. package/dist/commands/sendEmail.d.ts +5 -5
  11. package/dist/commands/sendSMS.d.ts +4 -4
  12. package/dist/commands/setAlarm.d.ts +4 -4
  13. package/dist/commands/setCourtesy.d.ts +2 -2
  14. package/dist/commands/setDimmer.d.ts +2 -2
  15. package/dist/commands/setLock.d.ts +2 -2
  16. package/dist/commands/setMedia.d.ts +3 -3
  17. package/dist/commands/setScene.d.ts +3 -3
  18. package/dist/commands/setSwitch.d.ts +2 -2
  19. package/dist/commands/setThermostat.d.ts +4 -4
  20. package/dist/commands/setWindowCovering.d.ts +2 -2
  21. package/dist/commands/updateUser.d.ts +7 -7
  22. package/dist/commands/uploadImage.d.ts +3 -3
  23. package/dist/errors/appError.d.ts +2 -2
  24. package/dist/errors/authenticationError.d.ts +2 -2
  25. package/dist/errors/authorizationError.d.ts +2 -2
  26. package/dist/errors/conflictError.d.ts +2 -2
  27. package/dist/errors/deviceCommError.d.ts +2 -2
  28. package/dist/errors/loginError.d.ts +2 -2
  29. package/dist/errors/notFoundError.d.ts +2 -2
  30. package/dist/errors/requestError.d.ts +2 -2
  31. package/dist/errors/systemCommError.d.ts +2 -2
  32. package/dist/errors/tokenExpiredError.d.ts +2 -2
  33. package/dist/errors/unprocessableRequestError.d.ts +2 -2
  34. package/dist/errors/validationError.d.ts +2 -2
  35. package/dist/events/applicationInUse.d.ts +5 -2
  36. package/dist/events/applicationOutOfUse.d.ts +5 -2
  37. package/dist/events/emailEvent.d.ts +4 -2
  38. package/dist/events/event.d.ts +12 -12
  39. package/dist/events/sceneSet.d.ts +4 -2
  40. package/dist/events/shortLinkCreated.d.ts +4 -2
  41. package/dist/events/smsEvent.d.ts +4 -2
  42. package/dist/events/systemAlarmUpdated.d.ts +4 -2
  43. package/dist/events/systemCameraUpdated.d.ts +4 -2
  44. package/dist/events/systemCategoryUpdated.d.ts +4 -2
  45. package/dist/events/systemCourtesyUpdated.d.ts +4 -2
  46. package/dist/events/systemCredentialUpdated.d.ts +4 -2
  47. package/dist/events/systemDimmerUpdated.d.ts +4 -2
  48. package/dist/events/systemEntityDeleted.d.ts +4 -2
  49. package/dist/events/systemGatewayUpdated.d.ts +4 -2
  50. package/dist/events/systemLockUpdated.d.ts +4 -2
  51. package/dist/events/systemMediaSourceUpdated.d.ts +4 -2
  52. package/dist/events/systemMotionSensorUpdated.d.ts +4 -2
  53. package/dist/events/systemSpaceUpdated.d.ts +4 -2
  54. package/dist/events/systemSwitchUpdated.d.ts +4 -2
  55. package/dist/events/systemThermostatUpdated.d.ts +4 -2
  56. package/dist/events/systemUserUpdated.d.ts +4 -2
  57. package/dist/events/systemWindowCoveringUpdated.d.ts +4 -2
  58. package/dist/httpClient.d.ts +34 -32
  59. package/dist/lib/systemCategories.d.ts +1 -1
  60. package/dist/lib/systemCategories.js +4 -2
  61. package/dist/lib/systemCategories.js.map +1 -1
  62. package/dist/models/alarm.js.map +1 -1
  63. package/dist/models/announcement.js.map +1 -1
  64. package/dist/models/automation.js.map +1 -1
  65. package/dist/models/camera.js.map +1 -1
  66. package/dist/models/category.js.map +1 -1
  67. package/dist/models/courtesy.js.map +1 -1
  68. package/dist/models/credential.js.map +1 -1
  69. package/dist/models/department.js.map +1 -1
  70. package/dist/models/dimmer.js.map +1 -1
  71. package/dist/models/discoveredDevice.js.map +1 -1
  72. package/dist/models/emailMessage.js.map +1 -1
  73. package/dist/models/energyReport.js.map +1 -1
  74. package/dist/models/energyReportShard.js.map +1 -1
  75. package/dist/models/gateway.js.map +1 -1
  76. package/dist/models/group.js.map +1 -1
  77. package/dist/models/identification.js.map +1 -1
  78. package/dist/models/index.d.ts +2 -2
  79. package/dist/models/index.js.map +1 -1
  80. package/dist/models/integration.js.map +1 -1
  81. package/dist/models/issue.js.map +1 -1
  82. package/dist/models/lock.js.map +1 -1
  83. package/dist/models/log.js.map +1 -1
  84. package/dist/models/mediaFile.js.map +1 -1
  85. package/dist/models/mediaSource.js.map +1 -1
  86. package/dist/models/motionSensor.js.map +1 -1
  87. package/dist/models/notification.js.map +1 -1
  88. package/dist/models/order.js.map +1 -1
  89. package/dist/models/organization.js.map +1 -1
  90. package/dist/models/payment.js.map +1 -1
  91. package/dist/models/policy.js.map +1 -1
  92. package/dist/models/product.js.map +1 -1
  93. package/dist/models/property.js.map +1 -1
  94. package/dist/models/reservation.js.map +1 -1
  95. package/dist/models/server.js.map +1 -1
  96. package/dist/models/session.js.map +1 -1
  97. package/dist/models/shortLink.js.map +1 -1
  98. package/dist/models/smsMessage.js.map +1 -1
  99. package/dist/models/sosType.js.map +1 -1
  100. package/dist/models/space.js.map +1 -1
  101. package/dist/models/switch.js.map +1 -1
  102. package/dist/models/system.js.map +1 -1
  103. package/dist/models/systemUser.js.map +1 -1
  104. package/dist/models/thermostat.js.map +1 -1
  105. package/dist/models/ticket.js.map +1 -1
  106. package/dist/models/timeSheet.js.map +1 -1
  107. package/dist/models/user.js.map +1 -1
  108. package/dist/models/vendor.js.map +1 -1
  109. package/dist/models/windowCovering.js.map +1 -1
  110. package/dist/schemas/definitions.d.ts +12 -0
  111. package/dist/schemas/definitions.js +25 -1
  112. package/dist/schemas/definitions.js.map +1 -1
  113. package/dist/schemas/issue.d.ts +2 -2
  114. package/dist/schemas/issue.js +2 -1
  115. package/dist/schemas/issue.js.map +1 -1
  116. package/dist/schemas/organization.d.ts +32 -0
  117. package/dist/schemas/organization.js +21 -0
  118. package/dist/schemas/organization.js.map +1 -1
  119. package/dist/schemas/property.d.ts +0 -6
  120. package/dist/schemas/property.js +0 -6
  121. package/dist/schemas/property.js.map +1 -1
  122. package/dist/schemas/user.d.ts +8 -6
  123. package/dist/schemas/user.js +7 -7
  124. package/dist/schemas/user.js.map +1 -1
  125. package/dist/useCases/autoAssociateDiscoveredDevices.js +1 -1
  126. package/dist/useCases/autoAssociateDiscoveredDevices.js.map +1 -1
  127. package/dist/useCases/bulkUpdateIssue.js +1 -1
  128. package/dist/useCases/bulkUpdateIssue.js.map +1 -1
  129. package/dist/useCases/checkVerificationCode.js +1 -1
  130. package/dist/useCases/checkVerificationCode.js.map +1 -1
  131. package/dist/useCases/copyIssueRouting.js +1 -1
  132. package/dist/useCases/copyIssueRouting.js.map +1 -1
  133. package/dist/useCases/createApiKey.js +1 -1
  134. package/dist/useCases/createApiKey.js.map +1 -1
  135. package/dist/useCases/createAutomation.js +1 -1
  136. package/dist/useCases/createAutomation.js.map +1 -1
  137. package/dist/useCases/createCategory.js +1 -1
  138. package/dist/useCases/createCategory.js.map +1 -1
  139. package/dist/useCases/createDefaultAutomations.js +1 -1
  140. package/dist/useCases/createDefaultAutomations.js.map +1 -1
  141. package/dist/useCases/createDepartment.js +1 -1
  142. package/dist/useCases/createDepartment.js.map +1 -1
  143. package/dist/useCases/createDevice.js +1 -1
  144. package/dist/useCases/createDevice.js.map +1 -1
  145. package/dist/useCases/createDeviceCredential.js +1 -1
  146. package/dist/useCases/createDeviceCredential.js.map +1 -1
  147. package/dist/useCases/createDiscoveredDevice.js +1 -1
  148. package/dist/useCases/createDiscoveredDevice.js.map +1 -1
  149. package/dist/useCases/createDiscoveredDeviceAssociation.js +1 -1
  150. package/dist/useCases/createDiscoveredDeviceAssociation.js.map +1 -1
  151. package/dist/useCases/createDiscoveredDeviceAssociationMap.js +1 -1
  152. package/dist/useCases/createDiscoveredDeviceAssociationMap.js.map +1 -1
  153. package/dist/useCases/createImageUploadEndpoint.js +1 -1
  154. package/dist/useCases/createImageUploadEndpoint.js.map +1 -1
  155. package/dist/useCases/createIssue.js +1 -1
  156. package/dist/useCases/createIssue.js.map +1 -1
  157. package/dist/useCases/createOrganization.js +1 -1
  158. package/dist/useCases/createOrganization.js.map +1 -1
  159. package/dist/useCases/createPolicy.js +1 -1
  160. package/dist/useCases/createPolicy.js.map +1 -1
  161. package/dist/useCases/createProperty.js +1 -1
  162. package/dist/useCases/createProperty.js.map +1 -1
  163. package/dist/useCases/createPwaHandoffToken.js +1 -1
  164. package/dist/useCases/createPwaHandoffToken.js.map +1 -1
  165. package/dist/useCases/createServer.js +1 -1
  166. package/dist/useCases/createServer.js.map +1 -1
  167. package/dist/useCases/createSpace.js +1 -1
  168. package/dist/useCases/createSpace.js.map +1 -1
  169. package/dist/useCases/createSystem.js +1 -1
  170. package/dist/useCases/createSystem.js.map +1 -1
  171. package/dist/useCases/createTicket.js +1 -1
  172. package/dist/useCases/createTicket.js.map +1 -1
  173. package/dist/useCases/createTicketMessage.js +1 -1
  174. package/dist/useCases/createTicketMessage.js.map +1 -1
  175. package/dist/useCases/createTimeSheet.js +1 -1
  176. package/dist/useCases/createTimeSheet.js.map +1 -1
  177. package/dist/useCases/createTimeSheetTimeEntry.js +1 -1
  178. package/dist/useCases/createTimeSheetTimeEntry.js.map +1 -1
  179. package/dist/useCases/createUser.js +1 -1
  180. package/dist/useCases/createUser.js.map +1 -1
  181. package/dist/useCases/createVendor.js +1 -1
  182. package/dist/useCases/createVendor.js.map +1 -1
  183. package/dist/useCases/deleteAutomation.js +1 -1
  184. package/dist/useCases/deleteAutomation.js.map +1 -1
  185. package/dist/useCases/deleteCategory.js +1 -1
  186. package/dist/useCases/deleteCategory.js.map +1 -1
  187. package/dist/useCases/deleteDepartment.js +1 -1
  188. package/dist/useCases/deleteDepartment.js.map +1 -1
  189. package/dist/useCases/deleteDevice.js +1 -1
  190. package/dist/useCases/deleteDevice.js.map +1 -1
  191. package/dist/useCases/deleteDeviceCredential.js +1 -1
  192. package/dist/useCases/deleteDeviceCredential.js.map +1 -1
  193. package/dist/useCases/deleteDiscoveredDevice.js +1 -1
  194. package/dist/useCases/deleteDiscoveredDevice.js.map +1 -1
  195. package/dist/useCases/deleteIssue.js +1 -1
  196. package/dist/useCases/deleteIssue.js.map +1 -1
  197. package/dist/useCases/deleteMediaFile.js +1 -1
  198. package/dist/useCases/deleteMediaFile.js.map +1 -1
  199. package/dist/useCases/deleteOrganization.js +1 -1
  200. package/dist/useCases/deleteOrganization.js.map +1 -1
  201. package/dist/useCases/deletePolicy.js +1 -1
  202. package/dist/useCases/deletePolicy.js.map +1 -1
  203. package/dist/useCases/deleteProperty.js +1 -1
  204. package/dist/useCases/deleteProperty.js.map +1 -1
  205. package/dist/useCases/deleteServer.js +1 -1
  206. package/dist/useCases/deleteServer.js.map +1 -1
  207. package/dist/useCases/deleteSession.js +1 -1
  208. package/dist/useCases/deleteSession.js.map +1 -1
  209. package/dist/useCases/deleteSpace.js +1 -1
  210. package/dist/useCases/deleteSpace.js.map +1 -1
  211. package/dist/useCases/deleteSystem.js +1 -1
  212. package/dist/useCases/deleteSystem.js.map +1 -1
  213. package/dist/useCases/deleteTicket.js +1 -1
  214. package/dist/useCases/deleteTicket.js.map +1 -1
  215. package/dist/useCases/deleteTimeSheet.js +1 -1
  216. package/dist/useCases/deleteTimeSheet.js.map +1 -1
  217. package/dist/useCases/deleteTimeSheetTimeEntry.js +1 -1
  218. package/dist/useCases/deleteTimeSheetTimeEntry.js.map +1 -1
  219. package/dist/useCases/deleteUser.js +1 -1
  220. package/dist/useCases/deleteUser.js.map +1 -1
  221. package/dist/useCases/deleteUserCredential.js +1 -1
  222. package/dist/useCases/deleteUserCredential.js.map +1 -1
  223. package/dist/useCases/deleteVendor.js +1 -1
  224. package/dist/useCases/deleteVendor.js.map +1 -1
  225. package/dist/useCases/describeAutomation.js +1 -1
  226. package/dist/useCases/describeAutomation.js.map +1 -1
  227. package/dist/useCases/describeCategory.js +1 -1
  228. package/dist/useCases/describeCategory.js.map +1 -1
  229. package/dist/useCases/describeDepartment.js +1 -1
  230. package/dist/useCases/describeDepartment.js.map +1 -1
  231. package/dist/useCases/describeDevice.js +1 -1
  232. package/dist/useCases/describeDevice.js.map +1 -1
  233. package/dist/useCases/describeDeviceConfig.js +1 -1
  234. package/dist/useCases/describeDeviceConfig.js.map +1 -1
  235. package/dist/useCases/describeDiscoveredDevice.js +1 -1
  236. package/dist/useCases/describeDiscoveredDevice.js.map +1 -1
  237. package/dist/useCases/describeIssue.js +1 -1
  238. package/dist/useCases/describeIssue.js.map +1 -1
  239. package/dist/useCases/describeMyAuth.js +1 -1
  240. package/dist/useCases/describeMyAuth.js.map +1 -1
  241. package/dist/useCases/describeMyOrganization.js +1 -1
  242. package/dist/useCases/describeMyOrganization.js.map +1 -1
  243. package/dist/useCases/describeMyPasskeyRegistrations.js +1 -1
  244. package/dist/useCases/describeMyPasskeyRegistrations.js.map +1 -1
  245. package/dist/useCases/describeOrgNotificationDefaults.d.ts +27 -0
  246. package/dist/useCases/describeOrgNotificationDefaults.js +47 -0
  247. package/dist/useCases/describeOrgNotificationDefaults.js.map +1 -0
  248. package/dist/useCases/describeOrganization.js +1 -1
  249. package/dist/useCases/describeOrganization.js.map +1 -1
  250. package/dist/useCases/describePolicy.js +1 -1
  251. package/dist/useCases/describePolicy.js.map +1 -1
  252. package/dist/useCases/describeProperty.js +1 -1
  253. package/dist/useCases/describeProperty.js.map +1 -1
  254. package/dist/useCases/describePushVapidPublicKey.d.ts +27 -0
  255. package/dist/useCases/describePushVapidPublicKey.js +47 -0
  256. package/dist/useCases/describePushVapidPublicKey.js.map +1 -0
  257. package/dist/useCases/describeSOS.js +1 -1
  258. package/dist/useCases/describeSOS.js.map +1 -1
  259. package/dist/useCases/describeSelf.js +1 -1
  260. package/dist/useCases/describeSelf.js.map +1 -1
  261. package/dist/useCases/describeServer.js +1 -1
  262. package/dist/useCases/describeServer.js.map +1 -1
  263. package/dist/useCases/describeSession.js +1 -1
  264. package/dist/useCases/describeSession.js.map +1 -1
  265. package/dist/useCases/describeSpace.js +1 -1
  266. package/dist/useCases/describeSpace.js.map +1 -1
  267. package/dist/useCases/describeSystem.js +1 -1
  268. package/dist/useCases/describeSystem.js.map +1 -1
  269. package/dist/useCases/describeTicket.js +1 -1
  270. package/dist/useCases/describeTicket.js.map +1 -1
  271. package/dist/useCases/describeTicketFilters.js +1 -1
  272. package/dist/useCases/describeTicketFilters.js.map +1 -1
  273. package/dist/useCases/describeTicketStats.js +1 -1
  274. package/dist/useCases/describeTicketStats.js.map +1 -1
  275. package/dist/useCases/describeTimeSheet.js +1 -1
  276. package/dist/useCases/describeTimeSheet.js.map +1 -1
  277. package/dist/useCases/describeTimeSheetStats.js +1 -1
  278. package/dist/useCases/describeTimeSheetStats.js.map +1 -1
  279. package/dist/useCases/describeUser.js +1 -1
  280. package/dist/useCases/describeUser.js.map +1 -1
  281. package/dist/useCases/describeVendor.js +1 -1
  282. package/dist/useCases/describeVendor.js.map +1 -1
  283. package/dist/useCases/emailUserAccountSetup.js +1 -1
  284. package/dist/useCases/emailUserAccountSetup.js.map +1 -1
  285. package/dist/useCases/getApiKey.js +1 -1
  286. package/dist/useCases/getApiKey.js.map +1 -1
  287. package/dist/useCases/index.d.ts +6 -0
  288. package/dist/useCases/index.js +13 -1
  289. package/dist/useCases/index.js.map +1 -1
  290. package/dist/useCases/leaveTicket.js +1 -1
  291. package/dist/useCases/leaveTicket.js.map +1 -1
  292. package/dist/useCases/listAutomations.js +1 -1
  293. package/dist/useCases/listAutomations.js.map +1 -1
  294. package/dist/useCases/listCameraStreamPreviews.js +1 -1
  295. package/dist/useCases/listCameraStreamPreviews.js.map +1 -1
  296. package/dist/useCases/listCategories.js +1 -1
  297. package/dist/useCases/listCategories.js.map +1 -1
  298. package/dist/useCases/listDepartments.js +1 -1
  299. package/dist/useCases/listDepartments.js.map +1 -1
  300. package/dist/useCases/listDeviceCredentials.js +1 -1
  301. package/dist/useCases/listDeviceCredentials.js.map +1 -1
  302. package/dist/useCases/listDevices.js +1 -1
  303. package/dist/useCases/listDevices.js.map +1 -1
  304. package/dist/useCases/listDiscoveredDevices.js +1 -1
  305. package/dist/useCases/listDiscoveredDevices.js.map +1 -1
  306. package/dist/useCases/listIntegrations.js +1 -1
  307. package/dist/useCases/listIntegrations.js.map +1 -1
  308. package/dist/useCases/listIssues.js +1 -1
  309. package/dist/useCases/listIssues.js.map +1 -1
  310. package/dist/useCases/listMyOrganizations.js +1 -1
  311. package/dist/useCases/listMyOrganizations.js.map +1 -1
  312. package/dist/useCases/listMyProperties.js +1 -1
  313. package/dist/useCases/listMyProperties.js.map +1 -1
  314. package/dist/useCases/listMyPushSubscriptions.d.ts +27 -0
  315. package/dist/useCases/listMyPushSubscriptions.js +47 -0
  316. package/dist/useCases/listMyPushSubscriptions.js.map +1 -0
  317. package/dist/useCases/listMyTimeSheets.js +1 -1
  318. package/dist/useCases/listMyTimeSheets.js.map +1 -1
  319. package/dist/useCases/listOrganizations.js +1 -1
  320. package/dist/useCases/listOrganizations.js.map +1 -1
  321. package/dist/useCases/listPolicies.js +1 -1
  322. package/dist/useCases/listPolicies.js.map +1 -1
  323. package/dist/useCases/listProperties.js +1 -1
  324. package/dist/useCases/listProperties.js.map +1 -1
  325. package/dist/useCases/listPropertyCredentials.js +1 -1
  326. package/dist/useCases/listPropertyCredentials.js.map +1 -1
  327. package/dist/useCases/listServers.js +1 -1
  328. package/dist/useCases/listServers.js.map +1 -1
  329. package/dist/useCases/listSessions.js +1 -1
  330. package/dist/useCases/listSessions.js.map +1 -1
  331. package/dist/useCases/listSpaces.js +1 -1
  332. package/dist/useCases/listSpaces.js.map +1 -1
  333. package/dist/useCases/listSystems.js +1 -1
  334. package/dist/useCases/listSystems.js.map +1 -1
  335. package/dist/useCases/listTicketLocations.js +1 -1
  336. package/dist/useCases/listTicketLocations.js.map +1 -1
  337. package/dist/useCases/listTickets.js +1 -1
  338. package/dist/useCases/listTickets.js.map +1 -1
  339. package/dist/useCases/listTimeSheets.js +1 -1
  340. package/dist/useCases/listTimeSheets.js.map +1 -1
  341. package/dist/useCases/listUserSpaces.js +1 -1
  342. package/dist/useCases/listUserSpaces.js.map +1 -1
  343. package/dist/useCases/listUsers.js +1 -1
  344. package/dist/useCases/listUsers.js.map +1 -1
  345. package/dist/useCases/listVendors.js +1 -1
  346. package/dist/useCases/listVendors.js.map +1 -1
  347. package/dist/useCases/logoutUser.js +1 -1
  348. package/dist/useCases/logoutUser.js.map +1 -1
  349. package/dist/useCases/mergeIssue.js +1 -1
  350. package/dist/useCases/mergeIssue.js.map +1 -1
  351. package/dist/useCases/moveDevice.js +1 -1
  352. package/dist/useCases/moveDevice.js.map +1 -1
  353. package/dist/useCases/revokeApiKey.js +1 -1
  354. package/dist/useCases/revokeApiKey.js.map +1 -1
  355. package/dist/useCases/rotateApiKey.js +1 -1
  356. package/dist/useCases/rotateApiKey.js.map +1 -1
  357. package/dist/useCases/runAutomation.js +1 -1
  358. package/dist/useCases/runAutomation.js.map +1 -1
  359. package/dist/useCases/selectOrganization.js +1 -1
  360. package/dist/useCases/selectOrganization.js.map +1 -1
  361. package/dist/useCases/sendNotification.js +1 -1
  362. package/dist/useCases/sendNotification.js.map +1 -1
  363. package/dist/useCases/sendVerificationCode.js +1 -1
  364. package/dist/useCases/sendVerificationCode.js.map +1 -1
  365. package/dist/useCases/setDevice.js +1 -1
  366. package/dist/useCases/setDevice.js.map +1 -1
  367. package/dist/useCases/setDevices.js +1 -1
  368. package/dist/useCases/setDevices.js.map +1 -1
  369. package/dist/useCases/startSOS.js +1 -1
  370. package/dist/useCases/startSOS.js.map +1 -1
  371. package/dist/useCases/stopSOS.js +1 -1
  372. package/dist/useCases/stopSOS.js.map +1 -1
  373. package/dist/useCases/subscribePushDevice.d.ts +27 -0
  374. package/dist/useCases/subscribePushDevice.js +47 -0
  375. package/dist/useCases/subscribePushDevice.js.map +1 -0
  376. package/dist/useCases/unsubscribePushDevice.d.ts +36 -0
  377. package/dist/useCases/unsubscribePushDevice.js +47 -0
  378. package/dist/useCases/unsubscribePushDevice.js.map +1 -0
  379. package/dist/useCases/updateAutomation.js +1 -1
  380. package/dist/useCases/updateAutomation.js.map +1 -1
  381. package/dist/useCases/updateCategory.js +1 -1
  382. package/dist/useCases/updateCategory.js.map +1 -1
  383. package/dist/useCases/updateDepartment.js +1 -1
  384. package/dist/useCases/updateDepartment.js.map +1 -1
  385. package/dist/useCases/updateDevice.js +1 -1
  386. package/dist/useCases/updateDevice.js.map +1 -1
  387. package/dist/useCases/updateDeviceCredential.js +1 -1
  388. package/dist/useCases/updateDeviceCredential.js.map +1 -1
  389. package/dist/useCases/updateDiscoveredDevice.js +1 -1
  390. package/dist/useCases/updateDiscoveredDevice.js.map +1 -1
  391. package/dist/useCases/updateIssue.js +1 -1
  392. package/dist/useCases/updateIssue.js.map +1 -1
  393. package/dist/useCases/updateMessageReadStatus.js +1 -1
  394. package/dist/useCases/updateMessageReadStatus.js.map +1 -1
  395. package/dist/useCases/updateOrgNotificationDefaults.d.ts +27 -0
  396. package/dist/useCases/updateOrgNotificationDefaults.js +47 -0
  397. package/dist/useCases/updateOrgNotificationDefaults.js.map +1 -0
  398. package/dist/useCases/updateOrganization.js +1 -1
  399. package/dist/useCases/updateOrganization.js.map +1 -1
  400. package/dist/useCases/updateOrganizationFeatures.js +1 -1
  401. package/dist/useCases/updateOrganizationFeatures.js.map +1 -1
  402. package/dist/useCases/updatePolicy.js +1 -1
  403. package/dist/useCases/updatePolicy.js.map +1 -1
  404. package/dist/useCases/updateProperty.js +1 -1
  405. package/dist/useCases/updateProperty.js.map +1 -1
  406. package/dist/useCases/updatePropertyFeatures.js +1 -1
  407. package/dist/useCases/updatePropertyFeatures.js.map +1 -1
  408. package/dist/useCases/updateSelf.js +1 -1
  409. package/dist/useCases/updateSelf.js.map +1 -1
  410. package/dist/useCases/updateServer.js +1 -1
  411. package/dist/useCases/updateServer.js.map +1 -1
  412. package/dist/useCases/updateSpace.js +1 -1
  413. package/dist/useCases/updateSpace.js.map +1 -1
  414. package/dist/useCases/updateSystem.js +1 -1
  415. package/dist/useCases/updateSystem.js.map +1 -1
  416. package/dist/useCases/updateTicket.js +1 -1
  417. package/dist/useCases/updateTicket.js.map +1 -1
  418. package/dist/useCases/updateTimeSheet.js +1 -1
  419. package/dist/useCases/updateTimeSheet.js.map +1 -1
  420. package/dist/useCases/updateTimeSheetTimeEntry.js +1 -1
  421. package/dist/useCases/updateTimeSheetTimeEntry.js.map +1 -1
  422. package/dist/useCases/updateUser.js +1 -1
  423. package/dist/useCases/updateUser.js.map +1 -1
  424. package/dist/useCases/updateVendor.js +1 -1
  425. package/dist/useCases/updateVendor.js.map +1 -1
  426. package/dist/useCases/uploadImage.js +1 -1
  427. package/dist/useCases/uploadImage.js.map +1 -1
  428. package/dist/useCases/upsertDiscoveredDevice.js +1 -1
  429. package/dist/useCases/upsertDiscoveredDevice.js.map +1 -1
  430. package/dist/useCases/validateAuth.js +1 -1
  431. package/dist/useCases/validateAuth.js.map +1 -1
  432. package/dist/validate.d.ts +215 -215
  433. package/dist/validate.js.map +1 -1
  434. package/package.json +4 -4
@@ -1,4 +1,6 @@
1
- export class SystemLockUpdated extends Event {
1
+ import { Event } from "./event.js";
2
+ export declare class SystemLockUpdated extends Event {
2
3
  constructor(lock: any, context: any);
4
+ static get name(): string;
5
+ static get entity(): string;
3
6
  }
4
- import { Event } from "./event.js";
@@ -1,4 +1,6 @@
1
- export class SystemMediaSourceUpdated extends Event {
1
+ import { Event } from "./event.js";
2
+ export declare class SystemMediaSourceUpdated extends Event {
2
3
  constructor(mediaSource: any, context: any);
4
+ static get name(): string;
5
+ static get entity(): string;
3
6
  }
4
- import { Event } from "./event.js";
@@ -1,4 +1,6 @@
1
- export class SystemMotionSensorUpdated extends Event {
1
+ import { Event } from "./event.js";
2
+ export declare class SystemMotionSensorUpdated extends Event {
2
3
  constructor(motion: any, context: any);
4
+ static get name(): string;
5
+ static get entity(): string;
3
6
  }
4
- import { Event } from "./event.js";
@@ -1,4 +1,6 @@
1
- export class SystemSpaceUpdated extends Event {
1
+ import { Event } from "./event.js";
2
+ export declare class SystemSpaceUpdated extends Event {
2
3
  constructor(space: any, context: any);
4
+ static get name(): string;
5
+ static get entity(): string;
3
6
  }
4
- import { Event } from "./event.js";
@@ -1,4 +1,6 @@
1
- export class SystemSwitchUpdated extends Event {
1
+ import { Event } from "./event.js";
2
+ export declare class SystemSwitchUpdated extends Event {
2
3
  constructor(_switch: any, context: any);
4
+ static get name(): string;
5
+ static get entity(): string;
3
6
  }
4
- import { Event } from "./event.js";
@@ -1,4 +1,6 @@
1
- export class SystemThermostatUpdated extends Event {
1
+ import { Event } from "./event.js";
2
+ export declare class SystemThermostatUpdated extends Event {
2
3
  constructor(thermostat: any, context: any);
4
+ static get name(): string;
5
+ static get entity(): string;
3
6
  }
4
- import { Event } from "./event.js";
@@ -1,4 +1,6 @@
1
- export class SystemUserUpdated extends Event {
1
+ import { Event } from "./event.js";
2
+ export declare class SystemUserUpdated extends Event {
2
3
  constructor(user: any, context: any);
4
+ static get name(): string;
5
+ static get entity(): string;
3
6
  }
4
- import { Event } from "./event.js";
@@ -1,4 +1,6 @@
1
- export class SystemWindowCoveringUpdated extends Event {
1
+ import { Event } from "./event.js";
2
+ export declare class SystemWindowCoveringUpdated extends Event {
2
3
  constructor(wc: any, context: any);
4
+ static get name(): string;
5
+ static get entity(): string;
3
6
  }
4
- import { Event } from "./event.js";
@@ -1,9 +1,19 @@
1
- export class KohostHTTPClient {
2
- static get defs(): {
3
- apiKeyHeader: string;
4
- propertyHeader: string;
5
- organizationHeader: string;
1
+ export type CommandName = keyof typeof import('./useCases.js');
2
+ export type Command = import('./useCases.js')[CommandName];
3
+ export declare class KohostHTTPClient {
4
+ #private;
5
+ options: {
6
+ organizationId: string;
7
+ propertyId: string;
8
+ url: string | URL;
9
+ apiKey: string;
10
+ headers: Headers;
11
+ onSuccess: Function;
12
+ onError: Function;
6
13
  };
14
+ baseUrl: URL;
15
+ headers: Headers;
16
+ callbacks: {};
7
17
  /**
8
18
  @param {Object} options - The options to create the client
9
19
  @param {String} options.organizationId - The organization ID
@@ -23,26 +33,13 @@ export class KohostHTTPClient {
23
33
  onSuccess: Function;
24
34
  onError: Function;
25
35
  });
26
- options: {
27
- organizationId: string;
28
- propertyId: string;
29
- url: string | URL;
30
- apiKey: string;
31
- headers: Headers;
32
- onSuccess: Function;
33
- onError: Function;
34
- };
35
- baseUrl: URL;
36
- headers: Headers;
37
36
  /**
38
- * @param {string} propertyId
39
- * @returns {void}
40
- * @memberof KohostApiClient
41
- * @example
42
- * client.propertyId = "1234";
37
+ *
38
+ * @param {"LoginRequired" | "PhoneVerificationRequired"} event
39
+ * @param {Function} callback
43
40
  */
44
- set propertyId(propertyId: string);
45
- get propertyId(): string;
41
+ on(event: "LoginRequired" | "PhoneVerificationRequired", callback: Function): void;
42
+ emit(event: any, ...args: any[]): void;
46
43
  /**
47
44
  * @param {string} orgId
48
45
  * @returns {void}
@@ -52,25 +49,30 @@ export class KohostHTTPClient {
52
49
  */
53
50
  set organizationId(orgId: string);
54
51
  get organizationId(): string;
55
- callbacks: {};
56
52
  /**
57
- *
58
- * @param {"LoginRequired" | "PhoneVerificationRequired"} event
59
- * @param {Function} callback
53
+ * @param {string} propertyId
54
+ * @returns {void}
55
+ * @memberof KohostApiClient
56
+ * @example
57
+ * client.propertyId = "1234";
60
58
  */
61
- on(event: "LoginRequired" | "PhoneVerificationRequired", callback: Function): void;
62
- emit(event: any, ...args: any[]): void;
59
+ set propertyId(propertyId: string);
60
+ get propertyId(): string;
61
+ static get defs(): {
62
+ apiKeyHeader: string;
63
+ propertyHeader: string;
64
+ organizationHeader: string;
65
+ };
63
66
  /**
64
67
  * @typedef {keyof typeof import('./useCases.js')} CommandName
65
68
  * @typedef {import('./useCases.js')[CommandName]} Command
66
69
  *
67
70
  * @param {Command} command
68
71
  */
69
- send(command: typeof import("./useCases.js").CreatePwaHandoffTokenCommand | typeof import("./useCases.js").LogoutUserCommand | typeof import("./useCases.js").DescribeMyAuthCommand | typeof import("./useCases.js").ValidateAuthCommand | typeof import("./useCases.js").SelectOrganizationCommand | typeof import("./useCases.js").ListMyOrganizationsCommand | typeof import("./useCases.js").DescribeSelfCommand | typeof import("./useCases.js").DescribeUserCommand | typeof import("./useCases.js").CreateUserCommand | typeof import("./useCases.js").ListUsersCommand | typeof import("./useCases.js").UpdateSelfCommand | typeof import("./useCases.js").UpdateUserCommand | typeof import("./useCases.js").DeleteUserCommand | typeof import("./useCases.js").CreateApiKeyCommand | typeof import("./useCases.js").GetApiKeyCommand | typeof import("./useCases.js").RotateApiKeyCommand | typeof import("./useCases.js").RevokeApiKeyCommand | typeof import("./useCases.js").SendVerificationCodeCommand | typeof import("./useCases.js").CheckVerificationCodeCommand | typeof import("./useCases.js").ListUserSpacesCommand | typeof import("./useCases.js").DescribeMyPasskeyRegistrationsCommand | typeof import("./useCases.js").DeleteUserCredentialCommand | typeof import("./useCases.js").CreatePolicyCommand | typeof import("./useCases.js").ListPoliciesCommand | typeof import("./useCases.js").UpdatePolicyCommand | typeof import("./useCases.js").DeletePolicyCommand | typeof import("./useCases.js").DescribePolicyCommand | typeof import("./useCases.js").ListSpacesCommand | typeof import("./useCases.js").UpdateSpaceCommand | typeof import("./useCases.js").CreateSpaceCommand | typeof import("./useCases.js").DescribeSpaceCommand | typeof import("./useCases.js").DeleteSpaceCommand | typeof import("./useCases.js").CreateDeviceCommand | typeof import("./useCases.js").CreateDeviceCredentialCommand | typeof import("./useCases.js").ListDevicesCommand | typeof import("./useCases.js").ListDeviceCredentialsCommand | typeof import("./useCases.js").ListCameraStreamPreviewsCommand | typeof import("./useCases.js").DescribeDeviceCommand | typeof import("./useCases.js").UpdateDeviceCommand | typeof import("./useCases.js").UpdateDeviceCredentialCommand | typeof import("./useCases.js").SetDeviceCommand | typeof import("./useCases.js").DeleteDeviceCommand | typeof import("./useCases.js").DeleteDeviceCredentialCommand | typeof import("./useCases.js").MoveDeviceCommand | typeof import("./useCases.js").DescribeDeviceConfigCommand | typeof import("./useCases.js").CreateCategoryCommand | typeof import("./useCases.js").DeleteCategoryCommand | typeof import("./useCases.js").DescribeCategoryCommand | typeof import("./useCases.js").ListCategoriesCommand | typeof import("./useCases.js").UpdateCategoryCommand | typeof import("./useCases.js").DescribeDepartmentCommand | typeof import("./useCases.js").ListDepartmentsCommand | typeof import("./useCases.js").DeleteDepartmentCommand | typeof import("./useCases.js").CreateDepartmentCommand | typeof import("./useCases.js").UpdateDepartmentCommand | typeof import("./useCases.js").DescribeTicketStatsCommand | typeof import("./useCases.js").CreateTicketCommand | typeof import("./useCases.js").CreateTicketMessageCommand | typeof import("./useCases.js").DeleteTicketCommand | typeof import("./useCases.js").ListTicketLocationsCommand | typeof import("./useCases.js").DescribeTicketFiltersCommand | typeof import("./useCases.js").DescribeTicketCommand | typeof import("./useCases.js").ListTicketsCommand | typeof import("./useCases.js").UpdateMessageReadStatusCommand | typeof import("./useCases.js").UpdateTicketCommand | typeof import("./useCases.js").LeaveTicketCommand | typeof import("./useCases.js").CreateDiscoveredDeviceAssociationMapCommand | typeof import("./useCases.js").AutoAssociateDiscoveredDevicesCommand | typeof import("./useCases.js").CreateDiscoveredDeviceCommand | typeof import("./useCases.js").ListDiscoveredDevicesCommand | typeof import("./useCases.js").UpdateDiscoveredDeviceCommand | typeof import("./useCases.js").DeleteDiscoveredDeviceCommand | typeof import("./useCases.js").DescribeDiscoveredDeviceCommand | typeof import("./useCases.js").UpsertDiscoveredDeviceCommand | typeof import("./useCases.js").CreateDiscoveredDeviceAssociationCommand | typeof import("./useCases.js").ListIntegrationsCommand | typeof import("./useCases.js").DescribeMyOrganizationCommand | typeof import("./useCases.js").CreateOrganizationCommand | typeof import("./useCases.js").UpdateOrganizationCommand | typeof import("./useCases.js").UpdateOrganizationFeaturesCommand | typeof import("./useCases.js").DeleteOrganizationCommand | typeof import("./useCases.js").DescribeOrganizationCommand | typeof import("./useCases.js").ListOrganizationsCommand | typeof import("./useCases.js").ListPropertiesCommand | typeof import("./useCases.js").ListPropertyCredentialsCommand | typeof import("./useCases.js").ListMyPropertiesCommand | typeof import("./useCases.js").CreatePropertyCommand | typeof import("./useCases.js").DeletePropertyCommand | typeof import("./useCases.js").UpdatePropertyCommand | typeof import("./useCases.js").DescribePropertyCommand | typeof import("./useCases.js").UpdatePropertyFeaturesCommand | typeof import("./useCases.js").EmailUserAccountSetupCommand | typeof import("./useCases.js").CreateImageUploadEndpointCommand | typeof import("./useCases.js").DeleteMediaFileCommand | typeof import("./useCases.js").UploadImageCommand | typeof import("./useCases.js").DescribeTimeSheetStatsCommand | typeof import("./useCases.js").ListMyTimeSheetsCommand | typeof import("./useCases.js").DescribeTimeSheetCommand | typeof import("./useCases.js").ListTimeSheetsCommand | typeof import("./useCases.js").CreateTimeSheetCommand | typeof import("./useCases.js").DeleteTimeSheetCommand | typeof import("./useCases.js").UpdateTimeSheetCommand | typeof import("./useCases.js").CreateTimeSheetTimeEntryCommand | typeof import("./useCases.js").DeleteTimeSheetTimeEntryCommand | typeof import("./useCases.js").UpdateTimeSheetTimeEntryCommand | typeof import("./useCases.js").StartSOSCommand | typeof import("./useCases.js").StopSOSCommand | typeof import("./useCases.js").DescribeSOSCommand | typeof import("./useCases.js").DescribeIssueCommand | typeof import("./useCases.js").ListIssuesCommand | typeof import("./useCases.js").DeleteIssueCommand | typeof import("./useCases.js").CreateIssueCommand | typeof import("./useCases.js").UpdateIssueCommand | typeof import("./useCases.js").MergeIssueCommand | typeof import("./useCases.js").CopyIssueRoutingCommand | typeof import("./useCases.js").BulkUpdateIssueCommand | typeof import("./useCases.js").DescribeVendorCommand | typeof import("./useCases.js").ListVendorsCommand | typeof import("./useCases.js").DeleteVendorCommand | typeof import("./useCases.js").CreateVendorCommand | typeof import("./useCases.js").UpdateVendorCommand | typeof import("./useCases.js").CreateAutomationCommand | typeof import("./useCases.js").ListAutomationsCommand | typeof import("./useCases.js").DescribeAutomationCommand | typeof import("./useCases.js").UpdateAutomationCommand | typeof import("./useCases.js").DeleteAutomationCommand | typeof import("./useCases.js").CreateDefaultAutomationsCommand | typeof import("./useCases.js").RunAutomationCommand | typeof import("./useCases.js").SendNotificationCommand | typeof import("./useCases.js").ListSessionsCommand | typeof import("./useCases.js").DescribeSessionCommand | typeof import("./useCases.js").DeleteSessionCommand | typeof import("./useCases.js").SetDevicesCommand | typeof import("./useCases.js").CreateSystemCommand | typeof import("./useCases.js").DeleteSystemCommand | typeof import("./useCases.js").DescribeSystemCommand | typeof import("./useCases.js").ListSystemsCommand | typeof import("./useCases.js").UpdateSystemCommand | typeof import("./useCases.js").CreateServerCommand | typeof import("./useCases.js").DeleteServerCommand | typeof import("./useCases.js").DescribeServerCommand | typeof import("./useCases.js").ListServersCommand | typeof import("./useCases.js").UpdateServerCommand): Promise<any>;
72
+ send(command: Command): Promise<any>;
70
73
  /**
71
74
  * @param {Command} config
72
75
  * @returns {Request}
73
76
  */
74
- createRequest(config: typeof import("./useCases.js").CreatePwaHandoffTokenCommand | typeof import("./useCases.js").LogoutUserCommand | typeof import("./useCases.js").DescribeMyAuthCommand | typeof import("./useCases.js").ValidateAuthCommand | typeof import("./useCases.js").SelectOrganizationCommand | typeof import("./useCases.js").ListMyOrganizationsCommand | typeof import("./useCases.js").DescribeSelfCommand | typeof import("./useCases.js").DescribeUserCommand | typeof import("./useCases.js").CreateUserCommand | typeof import("./useCases.js").ListUsersCommand | typeof import("./useCases.js").UpdateSelfCommand | typeof import("./useCases.js").UpdateUserCommand | typeof import("./useCases.js").DeleteUserCommand | typeof import("./useCases.js").CreateApiKeyCommand | typeof import("./useCases.js").GetApiKeyCommand | typeof import("./useCases.js").RotateApiKeyCommand | typeof import("./useCases.js").RevokeApiKeyCommand | typeof import("./useCases.js").SendVerificationCodeCommand | typeof import("./useCases.js").CheckVerificationCodeCommand | typeof import("./useCases.js").ListUserSpacesCommand | typeof import("./useCases.js").DescribeMyPasskeyRegistrationsCommand | typeof import("./useCases.js").DeleteUserCredentialCommand | typeof import("./useCases.js").CreatePolicyCommand | typeof import("./useCases.js").ListPoliciesCommand | typeof import("./useCases.js").UpdatePolicyCommand | typeof import("./useCases.js").DeletePolicyCommand | typeof import("./useCases.js").DescribePolicyCommand | typeof import("./useCases.js").ListSpacesCommand | typeof import("./useCases.js").UpdateSpaceCommand | typeof import("./useCases.js").CreateSpaceCommand | typeof import("./useCases.js").DescribeSpaceCommand | typeof import("./useCases.js").DeleteSpaceCommand | typeof import("./useCases.js").CreateDeviceCommand | typeof import("./useCases.js").CreateDeviceCredentialCommand | typeof import("./useCases.js").ListDevicesCommand | typeof import("./useCases.js").ListDeviceCredentialsCommand | typeof import("./useCases.js").ListCameraStreamPreviewsCommand | typeof import("./useCases.js").DescribeDeviceCommand | typeof import("./useCases.js").UpdateDeviceCommand | typeof import("./useCases.js").UpdateDeviceCredentialCommand | typeof import("./useCases.js").SetDeviceCommand | typeof import("./useCases.js").DeleteDeviceCommand | typeof import("./useCases.js").DeleteDeviceCredentialCommand | typeof import("./useCases.js").MoveDeviceCommand | typeof import("./useCases.js").DescribeDeviceConfigCommand | typeof import("./useCases.js").CreateCategoryCommand | typeof import("./useCases.js").DeleteCategoryCommand | typeof import("./useCases.js").DescribeCategoryCommand | typeof import("./useCases.js").ListCategoriesCommand | typeof import("./useCases.js").UpdateCategoryCommand | typeof import("./useCases.js").DescribeDepartmentCommand | typeof import("./useCases.js").ListDepartmentsCommand | typeof import("./useCases.js").DeleteDepartmentCommand | typeof import("./useCases.js").CreateDepartmentCommand | typeof import("./useCases.js").UpdateDepartmentCommand | typeof import("./useCases.js").DescribeTicketStatsCommand | typeof import("./useCases.js").CreateTicketCommand | typeof import("./useCases.js").CreateTicketMessageCommand | typeof import("./useCases.js").DeleteTicketCommand | typeof import("./useCases.js").ListTicketLocationsCommand | typeof import("./useCases.js").DescribeTicketFiltersCommand | typeof import("./useCases.js").DescribeTicketCommand | typeof import("./useCases.js").ListTicketsCommand | typeof import("./useCases.js").UpdateMessageReadStatusCommand | typeof import("./useCases.js").UpdateTicketCommand | typeof import("./useCases.js").LeaveTicketCommand | typeof import("./useCases.js").CreateDiscoveredDeviceAssociationMapCommand | typeof import("./useCases.js").AutoAssociateDiscoveredDevicesCommand | typeof import("./useCases.js").CreateDiscoveredDeviceCommand | typeof import("./useCases.js").ListDiscoveredDevicesCommand | typeof import("./useCases.js").UpdateDiscoveredDeviceCommand | typeof import("./useCases.js").DeleteDiscoveredDeviceCommand | typeof import("./useCases.js").DescribeDiscoveredDeviceCommand | typeof import("./useCases.js").UpsertDiscoveredDeviceCommand | typeof import("./useCases.js").CreateDiscoveredDeviceAssociationCommand | typeof import("./useCases.js").ListIntegrationsCommand | typeof import("./useCases.js").DescribeMyOrganizationCommand | typeof import("./useCases.js").CreateOrganizationCommand | typeof import("./useCases.js").UpdateOrganizationCommand | typeof import("./useCases.js").UpdateOrganizationFeaturesCommand | typeof import("./useCases.js").DeleteOrganizationCommand | typeof import("./useCases.js").DescribeOrganizationCommand | typeof import("./useCases.js").ListOrganizationsCommand | typeof import("./useCases.js").ListPropertiesCommand | typeof import("./useCases.js").ListPropertyCredentialsCommand | typeof import("./useCases.js").ListMyPropertiesCommand | typeof import("./useCases.js").CreatePropertyCommand | typeof import("./useCases.js").DeletePropertyCommand | typeof import("./useCases.js").UpdatePropertyCommand | typeof import("./useCases.js").DescribePropertyCommand | typeof import("./useCases.js").UpdatePropertyFeaturesCommand | typeof import("./useCases.js").EmailUserAccountSetupCommand | typeof import("./useCases.js").CreateImageUploadEndpointCommand | typeof import("./useCases.js").DeleteMediaFileCommand | typeof import("./useCases.js").UploadImageCommand | typeof import("./useCases.js").DescribeTimeSheetStatsCommand | typeof import("./useCases.js").ListMyTimeSheetsCommand | typeof import("./useCases.js").DescribeTimeSheetCommand | typeof import("./useCases.js").ListTimeSheetsCommand | typeof import("./useCases.js").CreateTimeSheetCommand | typeof import("./useCases.js").DeleteTimeSheetCommand | typeof import("./useCases.js").UpdateTimeSheetCommand | typeof import("./useCases.js").CreateTimeSheetTimeEntryCommand | typeof import("./useCases.js").DeleteTimeSheetTimeEntryCommand | typeof import("./useCases.js").UpdateTimeSheetTimeEntryCommand | typeof import("./useCases.js").StartSOSCommand | typeof import("./useCases.js").StopSOSCommand | typeof import("./useCases.js").DescribeSOSCommand | typeof import("./useCases.js").DescribeIssueCommand | typeof import("./useCases.js").ListIssuesCommand | typeof import("./useCases.js").DeleteIssueCommand | typeof import("./useCases.js").CreateIssueCommand | typeof import("./useCases.js").UpdateIssueCommand | typeof import("./useCases.js").MergeIssueCommand | typeof import("./useCases.js").CopyIssueRoutingCommand | typeof import("./useCases.js").BulkUpdateIssueCommand | typeof import("./useCases.js").DescribeVendorCommand | typeof import("./useCases.js").ListVendorsCommand | typeof import("./useCases.js").DeleteVendorCommand | typeof import("./useCases.js").CreateVendorCommand | typeof import("./useCases.js").UpdateVendorCommand | typeof import("./useCases.js").CreateAutomationCommand | typeof import("./useCases.js").ListAutomationsCommand | typeof import("./useCases.js").DescribeAutomationCommand | typeof import("./useCases.js").UpdateAutomationCommand | typeof import("./useCases.js").DeleteAutomationCommand | typeof import("./useCases.js").CreateDefaultAutomationsCommand | typeof import("./useCases.js").RunAutomationCommand | typeof import("./useCases.js").SendNotificationCommand | typeof import("./useCases.js").ListSessionsCommand | typeof import("./useCases.js").DescribeSessionCommand | typeof import("./useCases.js").DeleteSessionCommand | typeof import("./useCases.js").SetDevicesCommand | typeof import("./useCases.js").CreateSystemCommand | typeof import("./useCases.js").DeleteSystemCommand | typeof import("./useCases.js").DescribeSystemCommand | typeof import("./useCases.js").ListSystemsCommand | typeof import("./useCases.js").UpdateSystemCommand | typeof import("./useCases.js").CreateServerCommand | typeof import("./useCases.js").DeleteServerCommand | typeof import("./useCases.js").DescribeServerCommand | typeof import("./useCases.js").ListServersCommand | typeof import("./useCases.js").UpdateServerCommand): Request;
75
- #private;
77
+ createRequest(config: Command): Request;
76
78
  }
@@ -1,4 +1,4 @@
1
- export declare const SYSTEM_CATEGORIES: readonly ["hvac", "access-control", "lighting", "shades", "irrigation", "cameras", "alarms", "pa", "media"];
1
+ export declare const SYSTEM_CATEGORIES: readonly ["hvac", "access-control", "lighting", "shades", "irrigation", "cameras", "alarms", "pa", "media", "other"];
2
2
  export type SystemCategory = (typeof SYSTEM_CATEGORIES)[number];
3
3
  export declare const SYSTEM_CATEGORY_LABELS: Record<SystemCategory, string>;
4
4
  export interface CategoryForDeviceInput {
@@ -8,7 +8,8 @@ const SYSTEM_CATEGORIES = [
8
8
  "cameras",
9
9
  "alarms",
10
10
  "pa",
11
- "media"
11
+ "media",
12
+ "other"
12
13
  ];
13
14
  const SYSTEM_CATEGORY_LABELS = {
14
15
  hvac: "HVAC",
@@ -19,7 +20,8 @@ const SYSTEM_CATEGORY_LABELS = {
19
20
  cameras: "Cameras",
20
21
  alarms: "Alarms",
21
22
  pa: "PA",
22
- media: "Media"
23
+ media: "Media",
24
+ other: "System"
23
25
  };
24
26
  function categoryForDevice(device) {
25
27
  if (!device || !device.type) return null;
@@ -1 +1 @@
1
- {"version":3,"file":"systemCategories.js","names":[],"sources":["../../.generated/lib/systemCategories.ts"],"sourcesContent":["export const SYSTEM_CATEGORIES = [\n \"hvac\",\n \"access-control\",\n \"lighting\",\n \"shades\",\n \"irrigation\",\n \"cameras\",\n \"alarms\",\n \"pa\",\n \"media\",\n] as const;\n\nexport type SystemCategory = (typeof SYSTEM_CATEGORIES)[number];\n\nexport const SYSTEM_CATEGORY_LABELS: Record<SystemCategory, string> = {\n hvac: \"HVAC\",\n \"access-control\": \"Access Control\",\n lighting: \"Lighting\",\n shades: \"Shades\",\n irrigation: \"Irrigation\",\n cameras: \"Cameras\",\n alarms: \"Alarms\",\n pa: \"PA\",\n media: \"Media\",\n};\n\nexport interface CategoryForDeviceInput {\n type?: string;\n discriminator?: string;\n}\n\nexport function categoryForDevice(\n device: CategoryForDeviceInput | null | undefined,\n): SystemCategory | null {\n if (!device || !device.type) return null;\n\n switch (device.type) {\n case \"thermostat\":\n return \"hvac\";\n case \"lock\":\n return \"access-control\";\n case \"alarm\":\n return \"alarms\";\n case \"camera\":\n case \"motionSensor\":\n return \"cameras\";\n case \"windowCovering\":\n return \"shades\";\n case \"dimmer\":\n return \"lighting\";\n case \"switch\":\n if (device.discriminator === \"irrigation\") return \"irrigation\";\n return \"lighting\";\n case \"mediaSource\":\n if (device.discriminator === \"paSystem\") return \"pa\";\n return \"media\";\n default:\n console.warn(\"UnknownSystemCategory\", {\n deviceType: device.type,\n discriminator: device.discriminator,\n });\n return null;\n }\n}\n"],"mappings":";AAAA,MAAa,oBAAoB;CAC/B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAIA,MAAa,yBAAyD;CACpE,MAAM;CACN,kBAAkB;CAClB,UAAU;CACV,QAAQ;CACR,YAAY;CACZ,SAAS;CACT,QAAQ;CACR,IAAI;CACJ,OAAO;AACT;AAOA,SAAgB,kBACd,QACuB;CACvB,IAAI,CAAC,UAAU,CAAC,OAAO,MAAM,OAAO;CAEpC,QAAQ,OAAO,MAAf;EACE,KAAK,cACH,OAAO;EACT,KAAK,QACH,OAAO;EACT,KAAK,SACH,OAAO;EACT,KAAK;EACL,KAAK,gBACH,OAAO;EACT,KAAK,kBACH,OAAO;EACT,KAAK,UACH,OAAO;EACT,KAAK;GACH,IAAI,OAAO,kBAAkB,cAAc,OAAO;GAClD,OAAO;EACT,KAAK;GACH,IAAI,OAAO,kBAAkB,YAAY,OAAO;GAChD,OAAO;EACT;GACE,QAAQ,KAAK,yBAAyB;IACpC,YAAY,OAAO;IACnB,eAAe,OAAO;GACxB,CAAC;GACD,OAAO;CACX;AACF"}
1
+ {"version":3,"file":"systemCategories.js","names":[],"sources":["../../.generated/lib/systemCategories.ts"],"sourcesContent":["export const SYSTEM_CATEGORIES = [\n \"hvac\",\n \"access-control\",\n \"lighting\",\n \"shades\",\n \"irrigation\",\n \"cameras\",\n \"alarms\",\n \"pa\",\n \"media\",\n \"other\",\n] as const;\n\nexport type SystemCategory = (typeof SYSTEM_CATEGORIES)[number];\n\nexport const SYSTEM_CATEGORY_LABELS: Record<SystemCategory, string> = {\n hvac: \"HVAC\",\n \"access-control\": \"Access Control\",\n lighting: \"Lighting\",\n shades: \"Shades\",\n irrigation: \"Irrigation\",\n cameras: \"Cameras\",\n alarms: \"Alarms\",\n pa: \"PA\",\n media: \"Media\",\n other: \"System\",\n};\n\nexport interface CategoryForDeviceInput {\n type?: string;\n discriminator?: string;\n}\n\nexport function categoryForDevice(\n device: CategoryForDeviceInput | null | undefined,\n): SystemCategory | null {\n if (!device || !device.type) return null;\n\n switch (device.type) {\n case \"thermostat\":\n return \"hvac\";\n case \"lock\":\n return \"access-control\";\n case \"alarm\":\n return \"alarms\";\n case \"camera\":\n case \"motionSensor\":\n return \"cameras\";\n case \"windowCovering\":\n return \"shades\";\n case \"dimmer\":\n return \"lighting\";\n case \"switch\":\n if (device.discriminator === \"irrigation\") return \"irrigation\";\n return \"lighting\";\n case \"mediaSource\":\n if (device.discriminator === \"paSystem\") return \"pa\";\n return \"media\";\n default:\n console.warn(\"UnknownSystemCategory\", {\n deviceType: device.type,\n discriminator: device.discriminator,\n });\n return null;\n }\n}\n"],"mappings":";AAAA,MAAa,oBAAoB;CAC/B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAIA,MAAa,yBAAyD;CACpE,MAAM;CACN,kBAAkB;CAClB,UAAU;CACV,QAAQ;CACR,YAAY;CACZ,SAAS;CACT,QAAQ;CACR,IAAI;CACJ,OAAO;CACP,OAAO;AACT;AAOA,SAAgB,kBACd,QACuB;CACvB,IAAI,CAAC,UAAU,CAAC,OAAO,MAAM,OAAO;CAEpC,QAAQ,OAAO,MAAf;EACE,KAAK,cACH,OAAO;EACT,KAAK,QACH,OAAO;EACT,KAAK,SACH,OAAO;EACT,KAAK;EACL,KAAK,gBACH,OAAO;EACT,KAAK,kBACH,OAAO;EACT,KAAK,UACH,OAAO;EACT,KAAK;GACH,IAAI,OAAO,kBAAkB,cAAc,OAAO;GAClD,OAAO;EACT,KAAK;GACH,IAAI,OAAO,kBAAkB,YAAY,OAAO;GAChD,OAAO;EACT;GACE,QAAQ,KAAK,yBAAyB;IACpC,YAAY,OAAO;IACnB,eAAe,OAAO;GACxB,CAAC;GACD,OAAO;CACX;AACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"alarm.js","names":["validate"],"sources":["../../.generated/models/alarm.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateAlarm as validate } from \"../validate.js\";\nimport { alarmSchema, type AlarmSchema } from \"../schemas/alarm.js\";\n\n/**\n * Data type for Alarm constructor - exported for backwards compatibility\n */\nexport type AlarmData = AlarmSchema;\n\n/**\n * Any smart alarm system\n */\nexport interface Alarm extends AlarmSchema {}\nexport class Alarm extends Entity {\n declare schema: typeof alarmSchema;\n declare validator: typeof validate;\n\n constructor(data: AlarmSchema) {\n super(data);\n this.id = data.id;\n if (data.propertyId !== undefined) this.propertyId = data.propertyId;\n if (data.name !== undefined) this.name = data.name;\n if (data.offline !== undefined) this.offline = data.offline;\n this.type = data.type;\n if (data.systemId !== undefined) this.systemId = data.systemId;\n this.driver = data.driver;\n if (data.alerts !== undefined) this.alerts = data.alerts;\n this.areas = data.areas;\n this.zones = data.zones;\n if (data.credentials !== undefined) this.credentials = data.credentials;\n if (data.supportedNotifications !== undefined)\n this.supportedNotifications = data.supportedNotifications;\n if (data.notification !== undefined) this.notification = data.notification;\n if (data.chime !== undefined) this.chime = data.chime;\n if (data.watts !== undefined) this.watts = data.watts;\n if (data.icon !== undefined) this.icon = data.icon;\n if (data.manufacturer !== undefined) this.manufacturer = data.manufacturer;\n if (data.modelNumber !== undefined) this.modelNumber = data.modelNumber;\n if (data.serialNumber !== undefined) this.serialNumber = data.serialNumber;\n if (data.firmwareVersion !== undefined)\n this.firmwareVersion = data.firmwareVersion;\n if (data.address !== undefined) this.address = data.address;\n if (data.batteryLevel !== undefined) this.batteryLevel = data.batteryLevel;\n if (data.powerLevel !== undefined) this.powerLevel = data.powerLevel;\n if (data.monitoringTrouble !== undefined)\n this.monitoringTrouble = data.monitoringTrouble;\n if (data.bellTrouble !== undefined) this.bellTrouble = data.bellTrouble;\n }\n}\n\nObject.defineProperty(Alarm.prototype, \"schema\", {\n value: alarmSchema,\n});\n\nObject.defineProperty(Alarm.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;;;AAeA,IAAa,QAAb,cAA2B,OAAO;CAIhC,YAAY,MAAmB;EAC7B,MAAM,IAAI;EACV,KAAK,KAAK,KAAK;EACf,IAAI,KAAK,eAAe,KAAA,GAAW,KAAK,aAAa,KAAK;EAC1D,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,IAAI,KAAK,YAAY,KAAA,GAAW,KAAK,UAAU,KAAK;EACpD,KAAK,OAAO,KAAK;EACjB,IAAI,KAAK,aAAa,KAAA,GAAW,KAAK,WAAW,KAAK;EACtD,KAAK,SAAS,KAAK;EACnB,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,KAAK,QAAQ,KAAK;EAClB,KAAK,QAAQ,KAAK;EAClB,IAAI,KAAK,gBAAgB,KAAA,GAAW,KAAK,cAAc,KAAK;EAC5D,IAAI,KAAK,2BAA2B,KAAA,GAClC,KAAK,yBAAyB,KAAK;EACrC,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,IAAI,KAAK,UAAU,KAAA,GAAW,KAAK,QAAQ,KAAK;EAChD,IAAI,KAAK,UAAU,KAAA,GAAW,KAAK,QAAQ,KAAK;EAChD,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,IAAI,KAAK,gBAAgB,KAAA,GAAW,KAAK,cAAc,KAAK;EAC5D,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,IAAI,KAAK,oBAAoB,KAAA,GAC3B,KAAK,kBAAkB,KAAK;EAC9B,IAAI,KAAK,YAAY,KAAA,GAAW,KAAK,UAAU,KAAK;EACpD,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,IAAI,KAAK,eAAe,KAAA,GAAW,KAAK,aAAa,KAAK;EAC1D,IAAI,KAAK,sBAAsB,KAAA,GAC7B,KAAK,oBAAoB,KAAK;EAChC,IAAI,KAAK,gBAAgB,KAAA,GAAW,KAAK,cAAc,KAAK;CAC9D;AACF;AAEA,OAAO,eAAe,MAAM,WAAW,UAAU,EAC/C,OAAO,YACT,CAAC;AAED,OAAO,eAAe,MAAM,WAAW,aAAa,EAClD,KAAK,WAAY;CACf,OAAOA;AACT,EACF,CAAC"}
1
+ {"version":3,"file":"alarm.js","names":["validate"],"sources":["../../.generated/models/alarm.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateAlarm as validate } from \"../validate.js\";\nimport { alarmSchema, type AlarmSchema } from \"../schemas/alarm.js\";\n\n/**\n * Data type for Alarm constructor - exported for backwards compatibility\n */\nexport type AlarmData = AlarmSchema;\n\n/**\n * Any smart alarm system\n */\nexport interface Alarm extends AlarmSchema {}\nexport class Alarm extends Entity {\n declare schema: typeof alarmSchema;\n declare validator: typeof validate;\n\n constructor(data: AlarmSchema) {\n super(data);\n this.id = data.id;\n if (data.propertyId !== undefined) this.propertyId = data.propertyId;\n if (data.name !== undefined) this.name = data.name;\n if (data.offline !== undefined) this.offline = data.offline;\n this.type = data.type;\n if (data.systemId !== undefined) this.systemId = data.systemId;\n this.driver = data.driver;\n if (data.alerts !== undefined) this.alerts = data.alerts;\n this.areas = data.areas;\n this.zones = data.zones;\n if (data.credentials !== undefined) this.credentials = data.credentials;\n if (data.supportedNotifications !== undefined) this.supportedNotifications = data.supportedNotifications;\n if (data.notification !== undefined) this.notification = data.notification;\n if (data.chime !== undefined) this.chime = data.chime;\n if (data.watts !== undefined) this.watts = data.watts;\n if (data.icon !== undefined) this.icon = data.icon;\n if (data.manufacturer !== undefined) this.manufacturer = data.manufacturer;\n if (data.modelNumber !== undefined) this.modelNumber = data.modelNumber;\n if (data.serialNumber !== undefined) this.serialNumber = data.serialNumber;\n if (data.firmwareVersion !== undefined) this.firmwareVersion = data.firmwareVersion;\n if (data.address !== undefined) this.address = data.address;\n if (data.batteryLevel !== undefined) this.batteryLevel = data.batteryLevel;\n if (data.powerLevel !== undefined) this.powerLevel = data.powerLevel;\n if (data.monitoringTrouble !== undefined) this.monitoringTrouble = data.monitoringTrouble;\n if (data.bellTrouble !== undefined) this.bellTrouble = data.bellTrouble;\n }\n\n\n\n\n\n\n\n\n}\n\nObject.defineProperty(Alarm.prototype, \"schema\", {\n value: alarmSchema\n});\n\nObject.defineProperty(Alarm.prototype, \"validator\", {\n get: function() { return validate; }\n});\n"],"mappings":";;;;AAeA,IAAa,QAAb,cAA2B,OAAO;CAIhC,YAAY,MAAmB;EAC7B,MAAM,IAAI;EACV,KAAK,KAAK,KAAK;EACf,IAAI,KAAK,eAAe,KAAA,GAAW,KAAK,aAAa,KAAK;EAC1D,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,IAAI,KAAK,YAAY,KAAA,GAAW,KAAK,UAAU,KAAK;EACpD,KAAK,OAAO,KAAK;EACjB,IAAI,KAAK,aAAa,KAAA,GAAW,KAAK,WAAW,KAAK;EACtD,KAAK,SAAS,KAAK;EACnB,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,KAAK,QAAQ,KAAK;EAClB,KAAK,QAAQ,KAAK;EAClB,IAAI,KAAK,gBAAgB,KAAA,GAAW,KAAK,cAAc,KAAK;EAC5D,IAAI,KAAK,2BAA2B,KAAA,GAAW,KAAK,yBAAyB,KAAK;EAClF,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,IAAI,KAAK,UAAU,KAAA,GAAW,KAAK,QAAQ,KAAK;EAChD,IAAI,KAAK,UAAU,KAAA,GAAW,KAAK,QAAQ,KAAK;EAChD,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,IAAI,KAAK,gBAAgB,KAAA,GAAW,KAAK,cAAc,KAAK;EAC5D,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,IAAI,KAAK,oBAAoB,KAAA,GAAW,KAAK,kBAAkB,KAAK;EACpE,IAAI,KAAK,YAAY,KAAA,GAAW,KAAK,UAAU,KAAK;EACpD,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,IAAI,KAAK,eAAe,KAAA,GAAW,KAAK,aAAa,KAAK;EAC1D,IAAI,KAAK,sBAAsB,KAAA,GAAW,KAAK,oBAAoB,KAAK;EACxE,IAAI,KAAK,gBAAgB,KAAA,GAAW,KAAK,cAAc,KAAK;CAC9D;AASF;AAEA,OAAO,eAAe,MAAM,WAAW,UAAU,EAC/C,OAAO,YACT,CAAC;AAED,OAAO,eAAe,MAAM,WAAW,aAAa,EAClD,KAAK,WAAW;CAAE,OAAOA;AAAU,EACrC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"announcement.js","names":["validate"],"sources":["../../.generated/models/announcement.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateAnnouncement as validate } from \"../validate.js\";\nimport {\n announcementSchema,\n type AnnouncementSchema,\n} from \"../schemas/announcement.js\";\n\n/**\n * Data type for Announcement constructor - exported for backwards compatibility\n */\nexport type AnnouncementData = AnnouncementSchema;\n\n/**\n * Announcement message sent to users\n */\nexport interface Announcement extends AnnouncementSchema {}\nexport class Announcement extends Entity {\n declare schema: typeof announcementSchema;\n declare validator: typeof validate;\n\n constructor(data: AnnouncementSchema) {\n super(data);\n this.id = data.id;\n if (data.propertyId !== undefined) this.propertyId = data.propertyId;\n this.type = data.type;\n if (data.users !== undefined) this.users = data.users;\n if (data.group !== undefined) this.group = data.group;\n this.body = data.body;\n if (data.media !== undefined) this.media = data.media;\n if (data.sentBy !== undefined) this.sentBy = data.sentBy;\n if (data.tags !== undefined) this.tags = data.tags;\n if (data.createdAt !== undefined) this.createdAt = data.createdAt;\n if (data.updatedAt !== undefined) this.updatedAt = data.updatedAt;\n if (data.deletedAt !== undefined) this.deletedAt = data.deletedAt;\n }\n}\n\nObject.defineProperty(Announcement.prototype, \"schema\", {\n value: announcementSchema,\n});\n\nObject.defineProperty(Announcement.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;;;AAkBA,IAAa,eAAb,cAAkC,OAAO;CAIvC,YAAY,MAA0B;EACpC,MAAM,IAAI;EACV,KAAK,KAAK,KAAK;EACf,IAAI,KAAK,eAAe,KAAA,GAAW,KAAK,aAAa,KAAK;EAC1D,KAAK,OAAO,KAAK;EACjB,IAAI,KAAK,UAAU,KAAA,GAAW,KAAK,QAAQ,KAAK;EAChD,IAAI,KAAK,UAAU,KAAA,GAAW,KAAK,QAAQ,KAAK;EAChD,KAAK,OAAO,KAAK;EACjB,IAAI,KAAK,UAAU,KAAA,GAAW,KAAK,QAAQ,KAAK;EAChD,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;CAC1D;AACF;AAEA,OAAO,eAAe,aAAa,WAAW,UAAU,EACtD,OAAO,mBACT,CAAC;AAED,OAAO,eAAe,aAAa,WAAW,aAAa,EACzD,KAAK,WAAY;CACf,OAAOA;AACT,EACF,CAAC"}
1
+ {"version":3,"file":"announcement.js","names":["validate"],"sources":["../../.generated/models/announcement.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateAnnouncement as validate } from \"../validate.js\";\nimport { announcementSchema, type AnnouncementSchema } from \"../schemas/announcement.js\";\n\n/**\n * Data type for Announcement constructor - exported for backwards compatibility\n */\nexport type AnnouncementData = AnnouncementSchema;\n\n/**\n * Announcement message sent to users\n */\nexport interface Announcement extends AnnouncementSchema {}\nexport class Announcement extends Entity {\n declare schema: typeof announcementSchema;\n declare validator: typeof validate;\n\n constructor(data: AnnouncementSchema) {\n super(data);\n this.id = data.id;\n if (data.propertyId !== undefined) this.propertyId = data.propertyId;\n this.type = data.type;\n if (data.users !== undefined) this.users = data.users;\n if (data.group !== undefined) this.group = data.group;\n this.body = data.body;\n if (data.media !== undefined) this.media = data.media;\n if (data.sentBy !== undefined) this.sentBy = data.sentBy;\n if (data.tags !== undefined) this.tags = data.tags;\n if (data.createdAt !== undefined) this.createdAt = data.createdAt;\n if (data.updatedAt !== undefined) this.updatedAt = data.updatedAt;\n if (data.deletedAt !== undefined) this.deletedAt = data.deletedAt;\n }\n\n\n\n\n\n\n\n\n}\n\nObject.defineProperty(Announcement.prototype, \"schema\", {\n value: announcementSchema\n});\n\nObject.defineProperty(Announcement.prototype, \"validator\", {\n get: function() { return validate; }\n});\n"],"mappings":";;;;AAeA,IAAa,eAAb,cAAkC,OAAO;CAIvC,YAAY,MAA0B;EACpC,MAAM,IAAI;EACV,KAAK,KAAK,KAAK;EACf,IAAI,KAAK,eAAe,KAAA,GAAW,KAAK,aAAa,KAAK;EAC1D,KAAK,OAAO,KAAK;EACjB,IAAI,KAAK,UAAU,KAAA,GAAW,KAAK,QAAQ,KAAK;EAChD,IAAI,KAAK,UAAU,KAAA,GAAW,KAAK,QAAQ,KAAK;EAChD,KAAK,OAAO,KAAK;EACjB,IAAI,KAAK,UAAU,KAAA,GAAW,KAAK,QAAQ,KAAK;EAChD,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;CAC1D;AASF;AAEA,OAAO,eAAe,aAAa,WAAW,UAAU,EACtD,OAAO,mBACT,CAAC;AAED,OAAO,eAAe,aAAa,WAAW,aAAa,EACzD,KAAK,WAAW;CAAE,OAAOA;AAAU,EACrC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"automation.js","names":["validate"],"sources":["../../.generated/models/automation.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateAutomation as validate } from \"../validate.js\";\nimport {\n automationSchema,\n type AutomationSchema,\n} from \"../schemas/automation.js\";\n\n/**\n * Data type for Automation constructor - exported for backwards compatibility\n */\nexport type AutomationData = AutomationSchema;\n\n/**\n * An automation is a collection of triggers and actions\n */\nexport interface Automation extends AutomationSchema {}\nexport class Automation extends Entity {\n declare schema: typeof automationSchema;\n declare validator: typeof validate;\n\n constructor(data: AutomationSchema) {\n super(data);\n this.id = data.id;\n if (data.propertyId !== undefined) this.propertyId = data.propertyId;\n if (data.name !== undefined) this.name = data.name;\n this.type = data.type;\n if (data.isEnabled !== undefined) this.isEnabled = data.isEnabled;\n if (data.description !== undefined) this.description = data.description;\n this.trigger = data.trigger;\n this.actions = data.actions;\n if (data.createdAt !== undefined) this.createdAt = data.createdAt;\n if (data.updatedAt !== undefined) this.updatedAt = data.updatedAt;\n if (data.nextRunAt !== undefined) this.nextRunAt = data.nextRunAt;\n if (data.lastRunAt !== undefined) this.lastRunAt = data.lastRunAt;\n if (data.deletedAt !== undefined) this.deletedAt = data.deletedAt;\n if (data.webhookUrl !== undefined) this.webhookUrl = data.webhookUrl;\n }\n}\n\nObject.defineProperty(Automation.prototype, \"schema\", {\n value: automationSchema,\n});\n\nObject.defineProperty(Automation.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;;;AAkBA,IAAa,aAAb,cAAgC,OAAO;CAIrC,YAAY,MAAwB;EAClC,MAAM,IAAI;EACV,KAAK,KAAK,KAAK;EACf,IAAI,KAAK,eAAe,KAAA,GAAW,KAAK,aAAa,KAAK;EAC1D,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,KAAK,OAAO,KAAK;EACjB,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,gBAAgB,KAAA,GAAW,KAAK,cAAc,KAAK;EAC5D,KAAK,UAAU,KAAK;EACpB,KAAK,UAAU,KAAK;EACpB,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,eAAe,KAAA,GAAW,KAAK,aAAa,KAAK;CAC5D;AACF;AAEA,OAAO,eAAe,WAAW,WAAW,UAAU,EACpD,OAAO,iBACT,CAAC;AAED,OAAO,eAAe,WAAW,WAAW,aAAa,EACvD,KAAK,WAAY;CACf,OAAOA;AACT,EACF,CAAC"}
1
+ {"version":3,"file":"automation.js","names":["validate"],"sources":["../../.generated/models/automation.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateAutomation as validate } from \"../validate.js\";\nimport { automationSchema, type AutomationSchema } from \"../schemas/automation.js\";\n\n/**\n * Data type for Automation constructor - exported for backwards compatibility\n */\nexport type AutomationData = AutomationSchema;\n\n/**\n * An automation is a collection of triggers and actions\n */\nexport interface Automation extends AutomationSchema {}\nexport class Automation extends Entity {\n declare schema: typeof automationSchema;\n declare validator: typeof validate;\n\n constructor(data: AutomationSchema) {\n super(data);\n this.id = data.id;\n if (data.propertyId !== undefined) this.propertyId = data.propertyId;\n if (data.name !== undefined) this.name = data.name;\n this.type = data.type;\n if (data.isEnabled !== undefined) this.isEnabled = data.isEnabled;\n if (data.description !== undefined) this.description = data.description;\n this.trigger = data.trigger;\n this.actions = data.actions;\n if (data.createdAt !== undefined) this.createdAt = data.createdAt;\n if (data.updatedAt !== undefined) this.updatedAt = data.updatedAt;\n if (data.nextRunAt !== undefined) this.nextRunAt = data.nextRunAt;\n if (data.lastRunAt !== undefined) this.lastRunAt = data.lastRunAt;\n if (data.deletedAt !== undefined) this.deletedAt = data.deletedAt;\n if (data.webhookUrl !== undefined) this.webhookUrl = data.webhookUrl;\n }\n\n\n\n\n\n\n\n\n}\n\nObject.defineProperty(Automation.prototype, \"schema\", {\n value: automationSchema\n});\n\nObject.defineProperty(Automation.prototype, \"validator\", {\n get: function() { return validate; }\n});\n"],"mappings":";;;;AAeA,IAAa,aAAb,cAAgC,OAAO;CAIrC,YAAY,MAAwB;EAClC,MAAM,IAAI;EACV,KAAK,KAAK,KAAK;EACf,IAAI,KAAK,eAAe,KAAA,GAAW,KAAK,aAAa,KAAK;EAC1D,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,KAAK,OAAO,KAAK;EACjB,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,gBAAgB,KAAA,GAAW,KAAK,cAAc,KAAK;EAC5D,KAAK,UAAU,KAAK;EACpB,KAAK,UAAU,KAAK;EACpB,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,eAAe,KAAA,GAAW,KAAK,aAAa,KAAK;CAC5D;AASF;AAEA,OAAO,eAAe,WAAW,WAAW,UAAU,EACpD,OAAO,iBACT,CAAC;AAED,OAAO,eAAe,WAAW,WAAW,aAAa,EACvD,KAAK,WAAW;CAAE,OAAOA;AAAU,EACrC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"camera.js","names":["validate"],"sources":["../../.generated/models/camera.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateCamera as validate } from \"../validate.js\";\nimport { cameraSchema, type CameraSchema } from \"../schemas/camera.js\";\n\n/**\n * Data type for Camera constructor - exported for backwards compatibility\n */\nexport type CameraData = CameraSchema;\n\n/**\n * Any smart camera\n */\nexport interface Camera extends CameraSchema {}\nexport class Camera extends Entity {\n declare schema: typeof cameraSchema;\n declare validator: typeof validate;\n\n constructor(data: CameraSchema) {\n super(data);\n this.id = data.id;\n if (data.propertyId !== undefined) this.propertyId = data.propertyId;\n if (data.name !== undefined) this.name = data.name;\n if (data.discriminator !== undefined)\n this.discriminator = data.discriminator;\n this.type = data.type;\n if (data.offline !== undefined) this.offline = data.offline;\n if (data.supportedNotifications !== undefined)\n this.supportedNotifications = data.supportedNotifications;\n if (data.notification !== undefined) this.notification = data.notification;\n this.driver = data.driver;\n if (data.liveStream !== undefined) this.liveStream = data.liveStream;\n if (data.systemId !== undefined) this.systemId = data.systemId;\n if (data.watts !== undefined) this.watts = data.watts;\n if (data.icon !== undefined) this.icon = data.icon;\n if (data.manufacturer !== undefined) this.manufacturer = data.manufacturer;\n if (data.modelNumber !== undefined) this.modelNumber = data.modelNumber;\n if (data.serialNumber !== undefined) this.serialNumber = data.serialNumber;\n if (data.firmwareVersion !== undefined)\n this.firmwareVersion = data.firmwareVersion;\n if (data.alerts !== undefined) this.alerts = data.alerts;\n }\n}\n\nObject.defineProperty(Camera.prototype, \"schema\", {\n value: cameraSchema,\n});\n\nObject.defineProperty(Camera.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;;;AAeA,IAAa,SAAb,cAA4B,OAAO;CAIjC,YAAY,MAAoB;EAC9B,MAAM,IAAI;EACV,KAAK,KAAK,KAAK;EACf,IAAI,KAAK,eAAe,KAAA,GAAW,KAAK,aAAa,KAAK;EAC1D,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,IAAI,KAAK,kBAAkB,KAAA,GACzB,KAAK,gBAAgB,KAAK;EAC5B,KAAK,OAAO,KAAK;EACjB,IAAI,KAAK,YAAY,KAAA,GAAW,KAAK,UAAU,KAAK;EACpD,IAAI,KAAK,2BAA2B,KAAA,GAClC,KAAK,yBAAyB,KAAK;EACrC,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,KAAK,SAAS,KAAK;EACnB,IAAI,KAAK,eAAe,KAAA,GAAW,KAAK,aAAa,KAAK;EAC1D,IAAI,KAAK,aAAa,KAAA,GAAW,KAAK,WAAW,KAAK;EACtD,IAAI,KAAK,UAAU,KAAA,GAAW,KAAK,QAAQ,KAAK;EAChD,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,IAAI,KAAK,gBAAgB,KAAA,GAAW,KAAK,cAAc,KAAK;EAC5D,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,IAAI,KAAK,oBAAoB,KAAA,GAC3B,KAAK,kBAAkB,KAAK;EAC9B,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;CACpD;AACF;AAEA,OAAO,eAAe,OAAO,WAAW,UAAU,EAChD,OAAO,aACT,CAAC;AAED,OAAO,eAAe,OAAO,WAAW,aAAa,EACnD,KAAK,WAAY;CACf,OAAOA;AACT,EACF,CAAC"}
1
+ {"version":3,"file":"camera.js","names":["validate"],"sources":["../../.generated/models/camera.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateCamera as validate } from \"../validate.js\";\nimport { cameraSchema, type CameraSchema } from \"../schemas/camera.js\";\n\n/**\n * Data type for Camera constructor - exported for backwards compatibility\n */\nexport type CameraData = CameraSchema;\n\n/**\n * Any smart camera\n */\nexport interface Camera extends CameraSchema {}\nexport class Camera extends Entity {\n declare schema: typeof cameraSchema;\n declare validator: typeof validate;\n\n constructor(data: CameraSchema) {\n super(data);\n this.id = data.id;\n if (data.propertyId !== undefined) this.propertyId = data.propertyId;\n if (data.name !== undefined) this.name = data.name;\n if (data.discriminator !== undefined) this.discriminator = data.discriminator;\n this.type = data.type;\n if (data.offline !== undefined) this.offline = data.offline;\n if (data.supportedNotifications !== undefined) this.supportedNotifications = data.supportedNotifications;\n if (data.notification !== undefined) this.notification = data.notification;\n this.driver = data.driver;\n if (data.liveStream !== undefined) this.liveStream = data.liveStream;\n if (data.systemId !== undefined) this.systemId = data.systemId;\n if (data.watts !== undefined) this.watts = data.watts;\n if (data.icon !== undefined) this.icon = data.icon;\n if (data.manufacturer !== undefined) this.manufacturer = data.manufacturer;\n if (data.modelNumber !== undefined) this.modelNumber = data.modelNumber;\n if (data.serialNumber !== undefined) this.serialNumber = data.serialNumber;\n if (data.firmwareVersion !== undefined) this.firmwareVersion = data.firmwareVersion;\n if (data.alerts !== undefined) this.alerts = data.alerts;\n }\n\n\n\n\n\n\n\n\n}\n\nObject.defineProperty(Camera.prototype, \"schema\", {\n value: cameraSchema\n});\n\nObject.defineProperty(Camera.prototype, \"validator\", {\n get: function() { return validate; }\n});\n"],"mappings":";;;;AAeA,IAAa,SAAb,cAA4B,OAAO;CAIjC,YAAY,MAAoB;EAC9B,MAAM,IAAI;EACV,KAAK,KAAK,KAAK;EACf,IAAI,KAAK,eAAe,KAAA,GAAW,KAAK,aAAa,KAAK;EAC1D,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,IAAI,KAAK,kBAAkB,KAAA,GAAW,KAAK,gBAAgB,KAAK;EAChE,KAAK,OAAO,KAAK;EACjB,IAAI,KAAK,YAAY,KAAA,GAAW,KAAK,UAAU,KAAK;EACpD,IAAI,KAAK,2BAA2B,KAAA,GAAW,KAAK,yBAAyB,KAAK;EAClF,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,KAAK,SAAS,KAAK;EACnB,IAAI,KAAK,eAAe,KAAA,GAAW,KAAK,aAAa,KAAK;EAC1D,IAAI,KAAK,aAAa,KAAA,GAAW,KAAK,WAAW,KAAK;EACtD,IAAI,KAAK,UAAU,KAAA,GAAW,KAAK,QAAQ,KAAK;EAChD,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,IAAI,KAAK,gBAAgB,KAAA,GAAW,KAAK,cAAc,KAAK;EAC5D,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,IAAI,KAAK,oBAAoB,KAAA,GAAW,KAAK,kBAAkB,KAAK;EACpE,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;CACpD;AASF;AAEA,OAAO,eAAe,OAAO,WAAW,UAAU,EAChD,OAAO,aACT,CAAC;AAED,OAAO,eAAe,OAAO,WAAW,aAAa,EACnD,KAAK,WAAW;CAAE,OAAOA;AAAU,EACrC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"category.js","names":["validate"],"sources":["../../.generated/models/category.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateCategory as validate } from \"../validate.js\";\nimport { categorySchema, type CategorySchema } from \"../schemas/category.js\";\n\n/**\n * Data type for Category constructor - exported for backwards compatibility\n */\nexport type CategoryData = CategorySchema;\n\n/**\n * Category\n */\nexport interface Category extends CategorySchema {}\nexport class Category extends Entity {\n declare schema: typeof categorySchema;\n declare validator: typeof validate;\n\n constructor(data: CategorySchema) {\n super(data);\n this.id = data.id;\n if (data.propertyId !== undefined) this.propertyId = data.propertyId;\n this.type = data.type;\n if (data.name !== undefined) this.name = data.name;\n if (data.driver !== undefined) this.driver = data.driver;\n if (data.description !== undefined) this.description = data.description;\n if (data.image !== undefined) this.image = data.image;\n if (data.rating !== undefined) this.rating = data.rating;\n this.discriminator = data.discriminator;\n if (data.systemId !== undefined) this.systemId = data.systemId;\n if (data.createdAt !== undefined) this.createdAt = data.createdAt;\n if (data.updatedAt !== undefined) this.updatedAt = data.updatedAt;\n if (data.deletedAt !== undefined) this.deletedAt = data.deletedAt;\n }\n}\n\nObject.defineProperty(Category.prototype, \"schema\", {\n value: categorySchema,\n});\n\nObject.defineProperty(Category.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;;;AAeA,IAAa,WAAb,cAA8B,OAAO;CAInC,YAAY,MAAsB;EAChC,MAAM,IAAI;EACV,KAAK,KAAK,KAAK;EACf,IAAI,KAAK,eAAe,KAAA,GAAW,KAAK,aAAa,KAAK;EAC1D,KAAK,OAAO,KAAK;EACjB,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,IAAI,KAAK,gBAAgB,KAAA,GAAW,KAAK,cAAc,KAAK;EAC5D,IAAI,KAAK,UAAU,KAAA,GAAW,KAAK,QAAQ,KAAK;EAChD,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,KAAK,gBAAgB,KAAK;EAC1B,IAAI,KAAK,aAAa,KAAA,GAAW,KAAK,WAAW,KAAK;EACtD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;CAC1D;AACF;AAEA,OAAO,eAAe,SAAS,WAAW,UAAU,EAClD,OAAO,eACT,CAAC;AAED,OAAO,eAAe,SAAS,WAAW,aAAa,EACrD,KAAK,WAAY;CACf,OAAOA;AACT,EACF,CAAC"}
1
+ {"version":3,"file":"category.js","names":["validate"],"sources":["../../.generated/models/category.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateCategory as validate } from \"../validate.js\";\nimport { categorySchema, type CategorySchema } from \"../schemas/category.js\";\n\n/**\n * Data type for Category constructor - exported for backwards compatibility\n */\nexport type CategoryData = CategorySchema;\n\n/**\n * Category\n */\nexport interface Category extends CategorySchema {}\nexport class Category extends Entity {\n declare schema: typeof categorySchema;\n declare validator: typeof validate;\n\n constructor(data: CategorySchema) {\n super(data);\n this.id = data.id;\n if (data.propertyId !== undefined) this.propertyId = data.propertyId;\n this.type = data.type;\n if (data.name !== undefined) this.name = data.name;\n if (data.driver !== undefined) this.driver = data.driver;\n if (data.description !== undefined) this.description = data.description;\n if (data.image !== undefined) this.image = data.image;\n if (data.rating !== undefined) this.rating = data.rating;\n this.discriminator = data.discriminator;\n if (data.systemId !== undefined) this.systemId = data.systemId;\n if (data.createdAt !== undefined) this.createdAt = data.createdAt;\n if (data.updatedAt !== undefined) this.updatedAt = data.updatedAt;\n if (data.deletedAt !== undefined) this.deletedAt = data.deletedAt;\n }\n\n\n\n\n\n\n\n\n}\n\nObject.defineProperty(Category.prototype, \"schema\", {\n value: categorySchema\n});\n\nObject.defineProperty(Category.prototype, \"validator\", {\n get: function() { return validate; }\n});\n"],"mappings":";;;;AAeA,IAAa,WAAb,cAA8B,OAAO;CAInC,YAAY,MAAsB;EAChC,MAAM,IAAI;EACV,KAAK,KAAK,KAAK;EACf,IAAI,KAAK,eAAe,KAAA,GAAW,KAAK,aAAa,KAAK;EAC1D,KAAK,OAAO,KAAK;EACjB,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,IAAI,KAAK,gBAAgB,KAAA,GAAW,KAAK,cAAc,KAAK;EAC5D,IAAI,KAAK,UAAU,KAAA,GAAW,KAAK,QAAQ,KAAK;EAChD,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,KAAK,gBAAgB,KAAK;EAC1B,IAAI,KAAK,aAAa,KAAA,GAAW,KAAK,WAAW,KAAK;EACtD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;CAC1D;AASF;AAEA,OAAO,eAAe,SAAS,WAAW,UAAU,EAClD,OAAO,eACT,CAAC;AAED,OAAO,eAAe,SAAS,WAAW,aAAa,EACrD,KAAK,WAAW;CAAE,OAAOA;AAAU,EACrC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"courtesy.js","names":["validate"],"sources":["../../.generated/models/courtesy.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateCourtesy as validate } from \"../validate.js\";\nimport { courtesySchema, type CourtesySchema } from \"../schemas/courtesy.js\";\n\n/**\n * Data type for Courtesy constructor - exported for backwards compatibility\n */\nexport type CourtesyData = CourtesySchema;\n\n/**\n * Any smart courtesy system\n */\nexport interface Courtesy extends CourtesySchema {}\nexport class Courtesy extends Entity {\n declare schema: typeof courtesySchema;\n declare validator: typeof validate;\n\n constructor(data: CourtesySchema) {\n super(data);\n this.id = data.id;\n if (data.propertyId !== undefined) this.propertyId = data.propertyId;\n if (data.name !== undefined) this.name = data.name;\n this.type = data.type;\n if (data.supportedNotifications !== undefined)\n this.supportedNotifications = data.supportedNotifications;\n if (data.notification !== undefined) this.notification = data.notification;\n this.driver = data.driver;\n if (data.offline !== undefined) this.offline = data.offline;\n this.supportedStates = data.supportedStates;\n this.state = data.state;\n if (data.systemId !== undefined) this.systemId = data.systemId;\n if (data.watts !== undefined) this.watts = data.watts;\n if (data.icon !== undefined) this.icon = data.icon;\n if (data.manufacturer !== undefined) this.manufacturer = data.manufacturer;\n if (data.modelNumber !== undefined) this.modelNumber = data.modelNumber;\n if (data.serialNumber !== undefined) this.serialNumber = data.serialNumber;\n if (data.firmwareVersion !== undefined)\n this.firmwareVersion = data.firmwareVersion;\n }\n}\n\nObject.defineProperty(Courtesy.prototype, \"schema\", {\n value: courtesySchema,\n});\n\nObject.defineProperty(Courtesy.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;;;AAeA,IAAa,WAAb,cAA8B,OAAO;CAInC,YAAY,MAAsB;EAChC,MAAM,IAAI;EACV,KAAK,KAAK,KAAK;EACf,IAAI,KAAK,eAAe,KAAA,GAAW,KAAK,aAAa,KAAK;EAC1D,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,KAAK,OAAO,KAAK;EACjB,IAAI,KAAK,2BAA2B,KAAA,GAClC,KAAK,yBAAyB,KAAK;EACrC,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,KAAK,SAAS,KAAK;EACnB,IAAI,KAAK,YAAY,KAAA,GAAW,KAAK,UAAU,KAAK;EACpD,KAAK,kBAAkB,KAAK;EAC5B,KAAK,QAAQ,KAAK;EAClB,IAAI,KAAK,aAAa,KAAA,GAAW,KAAK,WAAW,KAAK;EACtD,IAAI,KAAK,UAAU,KAAA,GAAW,KAAK,QAAQ,KAAK;EAChD,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,IAAI,KAAK,gBAAgB,KAAA,GAAW,KAAK,cAAc,KAAK;EAC5D,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,IAAI,KAAK,oBAAoB,KAAA,GAC3B,KAAK,kBAAkB,KAAK;CAChC;AACF;AAEA,OAAO,eAAe,SAAS,WAAW,UAAU,EAClD,OAAO,eACT,CAAC;AAED,OAAO,eAAe,SAAS,WAAW,aAAa,EACrD,KAAK,WAAY;CACf,OAAOA;AACT,EACF,CAAC"}
1
+ {"version":3,"file":"courtesy.js","names":["validate"],"sources":["../../.generated/models/courtesy.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateCourtesy as validate } from \"../validate.js\";\nimport { courtesySchema, type CourtesySchema } from \"../schemas/courtesy.js\";\n\n/**\n * Data type for Courtesy constructor - exported for backwards compatibility\n */\nexport type CourtesyData = CourtesySchema;\n\n/**\n * Any smart courtesy system\n */\nexport interface Courtesy extends CourtesySchema {}\nexport class Courtesy extends Entity {\n declare schema: typeof courtesySchema;\n declare validator: typeof validate;\n\n constructor(data: CourtesySchema) {\n super(data);\n this.id = data.id;\n if (data.propertyId !== undefined) this.propertyId = data.propertyId;\n if (data.name !== undefined) this.name = data.name;\n this.type = data.type;\n if (data.supportedNotifications !== undefined) this.supportedNotifications = data.supportedNotifications;\n if (data.notification !== undefined) this.notification = data.notification;\n this.driver = data.driver;\n if (data.offline !== undefined) this.offline = data.offline;\n this.supportedStates = data.supportedStates;\n this.state = data.state;\n if (data.systemId !== undefined) this.systemId = data.systemId;\n if (data.watts !== undefined) this.watts = data.watts;\n if (data.icon !== undefined) this.icon = data.icon;\n if (data.manufacturer !== undefined) this.manufacturer = data.manufacturer;\n if (data.modelNumber !== undefined) this.modelNumber = data.modelNumber;\n if (data.serialNumber !== undefined) this.serialNumber = data.serialNumber;\n if (data.firmwareVersion !== undefined) this.firmwareVersion = data.firmwareVersion;\n }\n\n\n\n\n\n\n\n\n}\n\nObject.defineProperty(Courtesy.prototype, \"schema\", {\n value: courtesySchema\n});\n\nObject.defineProperty(Courtesy.prototype, \"validator\", {\n get: function() { return validate; }\n});\n"],"mappings":";;;;AAeA,IAAa,WAAb,cAA8B,OAAO;CAInC,YAAY,MAAsB;EAChC,MAAM,IAAI;EACV,KAAK,KAAK,KAAK;EACf,IAAI,KAAK,eAAe,KAAA,GAAW,KAAK,aAAa,KAAK;EAC1D,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,KAAK,OAAO,KAAK;EACjB,IAAI,KAAK,2BAA2B,KAAA,GAAW,KAAK,yBAAyB,KAAK;EAClF,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,KAAK,SAAS,KAAK;EACnB,IAAI,KAAK,YAAY,KAAA,GAAW,KAAK,UAAU,KAAK;EACpD,KAAK,kBAAkB,KAAK;EAC5B,KAAK,QAAQ,KAAK;EAClB,IAAI,KAAK,aAAa,KAAA,GAAW,KAAK,WAAW,KAAK;EACtD,IAAI,KAAK,UAAU,KAAA,GAAW,KAAK,QAAQ,KAAK;EAChD,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,IAAI,KAAK,gBAAgB,KAAA,GAAW,KAAK,cAAc,KAAK;EAC5D,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,IAAI,KAAK,oBAAoB,KAAA,GAAW,KAAK,kBAAkB,KAAK;CACtE;AASF;AAEA,OAAO,eAAe,SAAS,WAAW,UAAU,EAClD,OAAO,eACT,CAAC;AAED,OAAO,eAAe,SAAS,WAAW,aAAa,EACrD,KAAK,WAAW;CAAE,OAAOA;AAAU,EACrC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"credential.js","names":["validate"],"sources":["../../.generated/models/credential.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateCredential as validate } from \"../validate.js\";\nimport {\n credentialSchema,\n type CredentialSchema,\n} from \"../schemas/credential.js\";\n\n/**\n * Data type for Credential constructor - exported for backwards compatibility\n */\nexport type CredentialData = CredentialSchema;\n\n/**\n * Credential\n */\nexport interface Credential extends CredentialSchema {}\nexport class Credential extends Entity {\n declare schema: typeof credentialSchema;\n declare validator: typeof validate;\n\n constructor(data: CredentialSchema) {\n super(data);\n this.id = data.id;\n this.type = data.type;\n if (data.driver !== undefined) this.driver = data.driver;\n if (data.name !== undefined) this.name = data.name;\n if (data.discriminator !== undefined)\n this.discriminator = data.discriminator;\n this.credential = data.credential;\n if (data.keyHash !== undefined) this.keyHash = data.keyHash;\n if (data.userId !== undefined) this.userId = data.userId;\n if (data.organizationId !== undefined)\n this.organizationId = data.organizationId;\n if (data.propertyId !== undefined) this.propertyId = data.propertyId;\n if (data.deviceId !== undefined) this.deviceId = data.deviceId;\n if (data.userAgent !== undefined) this.userAgent = data.userAgent;\n this.expires = data.expires;\n if (data.createdAt !== undefined) this.createdAt = data.createdAt;\n if (data.updatedAt !== undefined) this.updatedAt = data.updatedAt;\n if (data.systemId !== undefined) this.systemId = data.systemId;\n }\n}\n\nObject.defineProperty(Credential.prototype, \"schema\", {\n value: credentialSchema,\n});\n\nObject.defineProperty(Credential.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;;;AAkBA,IAAa,aAAb,cAAgC,OAAO;CAIrC,YAAY,MAAwB;EAClC,MAAM,IAAI;EACV,KAAK,KAAK,KAAK;EACf,KAAK,OAAO,KAAK;EACjB,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,IAAI,KAAK,kBAAkB,KAAA,GACzB,KAAK,gBAAgB,KAAK;EAC5B,KAAK,aAAa,KAAK;EACvB,IAAI,KAAK,YAAY,KAAA,GAAW,KAAK,UAAU,KAAK;EACpD,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,IAAI,KAAK,mBAAmB,KAAA,GAC1B,KAAK,iBAAiB,KAAK;EAC7B,IAAI,KAAK,eAAe,KAAA,GAAW,KAAK,aAAa,KAAK;EAC1D,IAAI,KAAK,aAAa,KAAA,GAAW,KAAK,WAAW,KAAK;EACtD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,KAAK,UAAU,KAAK;EACpB,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,aAAa,KAAA,GAAW,KAAK,WAAW,KAAK;CACxD;AACF;AAEA,OAAO,eAAe,WAAW,WAAW,UAAU,EACpD,OAAO,iBACT,CAAC;AAED,OAAO,eAAe,WAAW,WAAW,aAAa,EACvD,KAAK,WAAY;CACf,OAAOA;AACT,EACF,CAAC"}
1
+ {"version":3,"file":"credential.js","names":["validate"],"sources":["../../.generated/models/credential.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateCredential as validate } from \"../validate.js\";\nimport { credentialSchema, type CredentialSchema } from \"../schemas/credential.js\";\n\n/**\n * Data type for Credential constructor - exported for backwards compatibility\n */\nexport type CredentialData = CredentialSchema;\n\n/**\n * Credential\n */\nexport interface Credential extends CredentialSchema {}\nexport class Credential extends Entity {\n declare schema: typeof credentialSchema;\n declare validator: typeof validate;\n\n constructor(data: CredentialSchema) {\n super(data);\n this.id = data.id;\n this.type = data.type;\n if (data.driver !== undefined) this.driver = data.driver;\n if (data.name !== undefined) this.name = data.name;\n if (data.discriminator !== undefined) this.discriminator = data.discriminator;\n this.credential = data.credential;\n if (data.keyHash !== undefined) this.keyHash = data.keyHash;\n if (data.userId !== undefined) this.userId = data.userId;\n if (data.organizationId !== undefined) this.organizationId = data.organizationId;\n if (data.propertyId !== undefined) this.propertyId = data.propertyId;\n if (data.deviceId !== undefined) this.deviceId = data.deviceId;\n if (data.userAgent !== undefined) this.userAgent = data.userAgent;\n this.expires = data.expires;\n if (data.createdAt !== undefined) this.createdAt = data.createdAt;\n if (data.updatedAt !== undefined) this.updatedAt = data.updatedAt;\n if (data.systemId !== undefined) this.systemId = data.systemId;\n }\n\n\n\n\n\n\n\n\n}\n\nObject.defineProperty(Credential.prototype, \"schema\", {\n value: credentialSchema\n});\n\nObject.defineProperty(Credential.prototype, \"validator\", {\n get: function() { return validate; }\n});\n"],"mappings":";;;;AAeA,IAAa,aAAb,cAAgC,OAAO;CAIrC,YAAY,MAAwB;EAClC,MAAM,IAAI;EACV,KAAK,KAAK,KAAK;EACf,KAAK,OAAO,KAAK;EACjB,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,IAAI,KAAK,kBAAkB,KAAA,GAAW,KAAK,gBAAgB,KAAK;EAChE,KAAK,aAAa,KAAK;EACvB,IAAI,KAAK,YAAY,KAAA,GAAW,KAAK,UAAU,KAAK;EACpD,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,IAAI,KAAK,mBAAmB,KAAA,GAAW,KAAK,iBAAiB,KAAK;EAClE,IAAI,KAAK,eAAe,KAAA,GAAW,KAAK,aAAa,KAAK;EAC1D,IAAI,KAAK,aAAa,KAAA,GAAW,KAAK,WAAW,KAAK;EACtD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,KAAK,UAAU,KAAK;EACpB,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,aAAa,KAAA,GAAW,KAAK,WAAW,KAAK;CACxD;AASF;AAEA,OAAO,eAAe,WAAW,WAAW,UAAU,EACpD,OAAO,iBACT,CAAC;AAED,OAAO,eAAe,WAAW,WAAW,aAAa,EACvD,KAAK,WAAW;CAAE,OAAOA;AAAU,EACrC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"department.js","names":["validate"],"sources":["../../.generated/models/department.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateDepartment as validate } from \"../validate.js\";\nimport {\n departmentSchema,\n type DepartmentSchema,\n} from \"../schemas/department.js\";\n\n/**\n * Data type for Department constructor - exported for backwards compatibility\n */\nexport type DepartmentData = DepartmentSchema;\n\n/**\n * A division of an organization.\n */\nexport interface Department extends DepartmentSchema {}\nexport class Department extends Entity {\n declare schema: typeof departmentSchema;\n declare validator: typeof validate;\n\n constructor(data: DepartmentSchema) {\n super(data);\n this.id = data.id;\n this.type = data.type;\n this.name = data.name;\n if (data.description !== undefined) this.description = data.description;\n if (data.createdAt !== undefined) this.createdAt = data.createdAt;\n if (data.updatedAt !== undefined) this.updatedAt = data.updatedAt;\n if (data.deletedAt !== undefined) this.deletedAt = data.deletedAt;\n }\n}\n\nObject.defineProperty(Department.prototype, \"schema\", {\n value: departmentSchema,\n});\n\nObject.defineProperty(Department.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;;;AAkBA,IAAa,aAAb,cAAgC,OAAO;CAIrC,YAAY,MAAwB;EAClC,MAAM,IAAI;EACV,KAAK,KAAK,KAAK;EACf,KAAK,OAAO,KAAK;EACjB,KAAK,OAAO,KAAK;EACjB,IAAI,KAAK,gBAAgB,KAAA,GAAW,KAAK,cAAc,KAAK;EAC5D,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;CAC1D;AACF;AAEA,OAAO,eAAe,WAAW,WAAW,UAAU,EACpD,OAAO,iBACT,CAAC;AAED,OAAO,eAAe,WAAW,WAAW,aAAa,EACvD,KAAK,WAAY;CACf,OAAOA;AACT,EACF,CAAC"}
1
+ {"version":3,"file":"department.js","names":["validate"],"sources":["../../.generated/models/department.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateDepartment as validate } from \"../validate.js\";\nimport { departmentSchema, type DepartmentSchema } from \"../schemas/department.js\";\n\n/**\n * Data type for Department constructor - exported for backwards compatibility\n */\nexport type DepartmentData = DepartmentSchema;\n\n/**\n * A division of an organization.\n */\nexport interface Department extends DepartmentSchema {}\nexport class Department extends Entity {\n declare schema: typeof departmentSchema;\n declare validator: typeof validate;\n\n constructor(data: DepartmentSchema) {\n super(data);\n this.id = data.id;\n this.type = data.type;\n this.name = data.name;\n if (data.description !== undefined) this.description = data.description;\n if (data.createdAt !== undefined) this.createdAt = data.createdAt;\n if (data.updatedAt !== undefined) this.updatedAt = data.updatedAt;\n if (data.deletedAt !== undefined) this.deletedAt = data.deletedAt;\n }\n\n\n\n\n\n\n\n\n}\n\nObject.defineProperty(Department.prototype, \"schema\", {\n value: departmentSchema\n});\n\nObject.defineProperty(Department.prototype, \"validator\", {\n get: function() { return validate; }\n});\n"],"mappings":";;;;AAeA,IAAa,aAAb,cAAgC,OAAO;CAIrC,YAAY,MAAwB;EAClC,MAAM,IAAI;EACV,KAAK,KAAK,KAAK;EACf,KAAK,OAAO,KAAK;EACjB,KAAK,OAAO,KAAK;EACjB,IAAI,KAAK,gBAAgB,KAAA,GAAW,KAAK,cAAc,KAAK;EAC5D,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;CAC1D;AASF;AAEA,OAAO,eAAe,WAAW,WAAW,UAAU,EACpD,OAAO,iBACT,CAAC;AAED,OAAO,eAAe,WAAW,WAAW,aAAa,EACvD,KAAK,WAAW;CAAE,OAAOA;AAAU,EACrC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"dimmer.js","names":["validate"],"sources":["../../.generated/models/dimmer.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateDimmer as validate } from \"../validate.js\";\nimport { dimmerSchema, type DimmerSchema } from \"../schemas/dimmer.js\";\n\n/**\n * Data type for Dimmer constructor - exported for backwards compatibility\n */\nexport type DimmerData = DimmerSchema;\n\n/**\n * Any smart dimmer\n */\nexport interface Dimmer extends DimmerSchema {}\nexport class Dimmer extends Entity {\n declare schema: typeof dimmerSchema;\n declare validator: typeof validate;\n\n constructor(data: DimmerSchema) {\n super(data);\n this.id = data.id;\n if (data.propertyId !== undefined) this.propertyId = data.propertyId;\n if (data.name !== undefined) this.name = data.name;\n this.type = data.type;\n if (data.supportedNotifications !== undefined)\n this.supportedNotifications = data.supportedNotifications;\n if (data.notification !== undefined) this.notification = data.notification;\n this.driver = data.driver;\n if (data.offline !== undefined) this.offline = data.offline;\n if (data.alerts !== undefined) this.alerts = data.alerts;\n this.level = data.level;\n if (data.systemId !== undefined) this.systemId = data.systemId;\n if (data.watts !== undefined) this.watts = data.watts;\n if (data.icon !== undefined) this.icon = data.icon;\n if (data.manufacturer !== undefined) this.manufacturer = data.manufacturer;\n if (data.modelNumber !== undefined) this.modelNumber = data.modelNumber;\n if (data.serialNumber !== undefined) this.serialNumber = data.serialNumber;\n if (data.firmwareVersion !== undefined)\n this.firmwareVersion = data.firmwareVersion;\n }\n}\n\nObject.defineProperty(Dimmer.prototype, \"schema\", {\n value: dimmerSchema,\n});\n\nObject.defineProperty(Dimmer.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;;;AAeA,IAAa,SAAb,cAA4B,OAAO;CAIjC,YAAY,MAAoB;EAC9B,MAAM,IAAI;EACV,KAAK,KAAK,KAAK;EACf,IAAI,KAAK,eAAe,KAAA,GAAW,KAAK,aAAa,KAAK;EAC1D,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,KAAK,OAAO,KAAK;EACjB,IAAI,KAAK,2BAA2B,KAAA,GAClC,KAAK,yBAAyB,KAAK;EACrC,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,KAAK,SAAS,KAAK;EACnB,IAAI,KAAK,YAAY,KAAA,GAAW,KAAK,UAAU,KAAK;EACpD,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,KAAK,QAAQ,KAAK;EAClB,IAAI,KAAK,aAAa,KAAA,GAAW,KAAK,WAAW,KAAK;EACtD,IAAI,KAAK,UAAU,KAAA,GAAW,KAAK,QAAQ,KAAK;EAChD,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,IAAI,KAAK,gBAAgB,KAAA,GAAW,KAAK,cAAc,KAAK;EAC5D,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,IAAI,KAAK,oBAAoB,KAAA,GAC3B,KAAK,kBAAkB,KAAK;CAChC;AACF;AAEA,OAAO,eAAe,OAAO,WAAW,UAAU,EAChD,OAAO,aACT,CAAC;AAED,OAAO,eAAe,OAAO,WAAW,aAAa,EACnD,KAAK,WAAY;CACf,OAAOA;AACT,EACF,CAAC"}
1
+ {"version":3,"file":"dimmer.js","names":["validate"],"sources":["../../.generated/models/dimmer.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateDimmer as validate } from \"../validate.js\";\nimport { dimmerSchema, type DimmerSchema } from \"../schemas/dimmer.js\";\n\n/**\n * Data type for Dimmer constructor - exported for backwards compatibility\n */\nexport type DimmerData = DimmerSchema;\n\n/**\n * Any smart dimmer\n */\nexport interface Dimmer extends DimmerSchema {}\nexport class Dimmer extends Entity {\n declare schema: typeof dimmerSchema;\n declare validator: typeof validate;\n\n constructor(data: DimmerSchema) {\n super(data);\n this.id = data.id;\n if (data.propertyId !== undefined) this.propertyId = data.propertyId;\n if (data.name !== undefined) this.name = data.name;\n this.type = data.type;\n if (data.supportedNotifications !== undefined) this.supportedNotifications = data.supportedNotifications;\n if (data.notification !== undefined) this.notification = data.notification;\n this.driver = data.driver;\n if (data.offline !== undefined) this.offline = data.offline;\n if (data.alerts !== undefined) this.alerts = data.alerts;\n this.level = data.level;\n if (data.systemId !== undefined) this.systemId = data.systemId;\n if (data.watts !== undefined) this.watts = data.watts;\n if (data.icon !== undefined) this.icon = data.icon;\n if (data.manufacturer !== undefined) this.manufacturer = data.manufacturer;\n if (data.modelNumber !== undefined) this.modelNumber = data.modelNumber;\n if (data.serialNumber !== undefined) this.serialNumber = data.serialNumber;\n if (data.firmwareVersion !== undefined) this.firmwareVersion = data.firmwareVersion;\n }\n\n\n\n\n\n\n\n\n}\n\nObject.defineProperty(Dimmer.prototype, \"schema\", {\n value: dimmerSchema\n});\n\nObject.defineProperty(Dimmer.prototype, \"validator\", {\n get: function() { return validate; }\n});\n"],"mappings":";;;;AAeA,IAAa,SAAb,cAA4B,OAAO;CAIjC,YAAY,MAAoB;EAC9B,MAAM,IAAI;EACV,KAAK,KAAK,KAAK;EACf,IAAI,KAAK,eAAe,KAAA,GAAW,KAAK,aAAa,KAAK;EAC1D,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,KAAK,OAAO,KAAK;EACjB,IAAI,KAAK,2BAA2B,KAAA,GAAW,KAAK,yBAAyB,KAAK;EAClF,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,KAAK,SAAS,KAAK;EACnB,IAAI,KAAK,YAAY,KAAA,GAAW,KAAK,UAAU,KAAK;EACpD,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,KAAK,QAAQ,KAAK;EAClB,IAAI,KAAK,aAAa,KAAA,GAAW,KAAK,WAAW,KAAK;EACtD,IAAI,KAAK,UAAU,KAAA,GAAW,KAAK,QAAQ,KAAK;EAChD,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,IAAI,KAAK,gBAAgB,KAAA,GAAW,KAAK,cAAc,KAAK;EAC5D,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,IAAI,KAAK,oBAAoB,KAAA,GAAW,KAAK,kBAAkB,KAAK;CACtE;AASF;AAEA,OAAO,eAAe,OAAO,WAAW,UAAU,EAChD,OAAO,aACT,CAAC;AAED,OAAO,eAAe,OAAO,WAAW,aAAa,EACnD,KAAK,WAAW;CAAE,OAAOA;AAAU,EACrC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"discoveredDevice.js","names":["validate"],"sources":["../../.generated/models/discoveredDevice.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateDiscoveredDevice as validate } from \"../validate.js\";\nimport {\n discoveredDeviceSchema,\n type DiscoveredDeviceSchema,\n} from \"../schemas/discoveredDevice.js\";\n\n/**\n * Data type for DiscoveredDevice constructor - exported for backwards compatibility\n */\nexport type DiscoveredDeviceData = DiscoveredDeviceSchema;\n\n/**\n * A device that has been discovered by Kohost, but not yet added to the Kohost system.\n */\nexport interface DiscoveredDevice extends DiscoveredDeviceSchema {}\nexport class DiscoveredDevice extends Entity {\n declare schema: typeof discoveredDeviceSchema;\n declare validator: typeof validate;\n\n constructor(data: DiscoveredDeviceSchema) {\n super(data);\n this.id = data.id;\n this.name = data.name;\n this.deviceId = data.deviceId;\n if (data.type !== undefined) this.type = data.type;\n this.discriminator = data.discriminator;\n if (data.driver !== undefined) this.driver = data.driver;\n this.deviceData = data.deviceData;\n if (data.ignore !== undefined) this.ignore = data.ignore;\n if (data.organizationId !== undefined)\n this.organizationId = data.organizationId;\n if (data.propertyId !== undefined) this.propertyId = data.propertyId;\n if (data.createdAt !== undefined) this.createdAt = data.createdAt;\n if (data.updatedAt !== undefined) this.updatedAt = data.updatedAt;\n }\n}\n\nObject.defineProperty(DiscoveredDevice.prototype, \"schema\", {\n value: discoveredDeviceSchema,\n});\n\nObject.defineProperty(DiscoveredDevice.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;;;AAkBA,IAAa,mBAAb,cAAsC,OAAO;CAI3C,YAAY,MAA8B;EACxC,MAAM,IAAI;EACV,KAAK,KAAK,KAAK;EACf,KAAK,OAAO,KAAK;EACjB,KAAK,WAAW,KAAK;EACrB,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,KAAK,gBAAgB,KAAK;EAC1B,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,KAAK,aAAa,KAAK;EACvB,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,IAAI,KAAK,mBAAmB,KAAA,GAC1B,KAAK,iBAAiB,KAAK;EAC7B,IAAI,KAAK,eAAe,KAAA,GAAW,KAAK,aAAa,KAAK;EAC1D,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;CAC1D;AACF;AAEA,OAAO,eAAe,iBAAiB,WAAW,UAAU,EAC1D,OAAO,uBACT,CAAC;AAED,OAAO,eAAe,iBAAiB,WAAW,aAAa,EAC7D,KAAK,WAAY;CACf,OAAOA;AACT,EACF,CAAC"}
1
+ {"version":3,"file":"discoveredDevice.js","names":["validate"],"sources":["../../.generated/models/discoveredDevice.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateDiscoveredDevice as validate } from \"../validate.js\";\nimport { discoveredDeviceSchema, type DiscoveredDeviceSchema } from \"../schemas/discoveredDevice.js\";\n\n/**\n * Data type for DiscoveredDevice constructor - exported for backwards compatibility\n */\nexport type DiscoveredDeviceData = DiscoveredDeviceSchema;\n\n/**\n * A device that has been discovered by Kohost, but not yet added to the Kohost system.\n */\nexport interface DiscoveredDevice extends DiscoveredDeviceSchema {}\nexport class DiscoveredDevice extends Entity {\n declare schema: typeof discoveredDeviceSchema;\n declare validator: typeof validate;\n\n constructor(data: DiscoveredDeviceSchema) {\n super(data);\n this.id = data.id;\n this.name = data.name;\n this.deviceId = data.deviceId;\n if (data.type !== undefined) this.type = data.type;\n this.discriminator = data.discriminator;\n if (data.driver !== undefined) this.driver = data.driver;\n this.deviceData = data.deviceData;\n if (data.ignore !== undefined) this.ignore = data.ignore;\n if (data.organizationId !== undefined) this.organizationId = data.organizationId;\n if (data.propertyId !== undefined) this.propertyId = data.propertyId;\n if (data.createdAt !== undefined) this.createdAt = data.createdAt;\n if (data.updatedAt !== undefined) this.updatedAt = data.updatedAt;\n }\n\n\n\n\n\n\n\n\n}\n\nObject.defineProperty(DiscoveredDevice.prototype, \"schema\", {\n value: discoveredDeviceSchema\n});\n\nObject.defineProperty(DiscoveredDevice.prototype, \"validator\", {\n get: function() { return validate; }\n});\n"],"mappings":";;;;AAeA,IAAa,mBAAb,cAAsC,OAAO;CAI3C,YAAY,MAA8B;EACxC,MAAM,IAAI;EACV,KAAK,KAAK,KAAK;EACf,KAAK,OAAO,KAAK;EACjB,KAAK,WAAW,KAAK;EACrB,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,KAAK,gBAAgB,KAAK;EAC1B,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,KAAK,aAAa,KAAK;EACvB,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,IAAI,KAAK,mBAAmB,KAAA,GAAW,KAAK,iBAAiB,KAAK;EAClE,IAAI,KAAK,eAAe,KAAA,GAAW,KAAK,aAAa,KAAK;EAC1D,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;CAC1D;AASF;AAEA,OAAO,eAAe,iBAAiB,WAAW,UAAU,EAC1D,OAAO,uBACT,CAAC;AAED,OAAO,eAAe,iBAAiB,WAAW,aAAa,EAC7D,KAAK,WAAW;CAAE,OAAOA;AAAU,EACrC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"emailMessage.js","names":["validate"],"sources":["../../.generated/models/emailMessage.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateEmailMessage as validate } from \"../validate.js\";\nimport {\n emailMessageSchema,\n type EmailMessageSchema,\n} from \"../schemas/emailMessage.js\";\n\n/**\n * Data type for EmailMessage constructor - exported for backwards compatibility\n */\nexport type EmailMessageData = EmailMessageSchema;\n\n/**\n * EmailMessage\n */\nexport interface EmailMessage extends EmailMessageSchema {}\nexport class EmailMessage extends Entity {\n declare schema: typeof emailMessageSchema;\n declare validator: typeof validate;\n\n constructor(data: EmailMessageSchema) {\n super(data);\n this.id = data.id;\n if (data.propertyId !== undefined) this.propertyId = data.propertyId;\n this.type = data.type;\n this.to = data.to;\n this.from = data.from;\n this.subject = data.subject;\n this.status = data.status;\n if (data.statusMessage !== undefined)\n this.statusMessage = data.statusMessage;\n if (data.html !== undefined) this.html = data.html;\n if (data.text !== undefined) this.text = data.text;\n if (data.driver !== undefined) this.driver = data.driver;\n if (data.headers !== undefined) this.headers = data.headers;\n if (data.replyTo !== undefined) this.replyTo = data.replyTo;\n if (data.appData !== undefined) this.appData = data.appData;\n if (data.createdAt !== undefined) this.createdAt = data.createdAt;\n if (data.updatedAt !== undefined) this.updatedAt = data.updatedAt;\n if (data.deletedAt !== undefined) this.deletedAt = data.deletedAt;\n if (data.systemId !== undefined) this.systemId = data.systemId;\n }\n}\n\nObject.defineProperty(EmailMessage.prototype, \"schema\", {\n value: emailMessageSchema,\n});\n\nObject.defineProperty(EmailMessage.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;;;AAkBA,IAAa,eAAb,cAAkC,OAAO;CAIvC,YAAY,MAA0B;EACpC,MAAM,IAAI;EACV,KAAK,KAAK,KAAK;EACf,IAAI,KAAK,eAAe,KAAA,GAAW,KAAK,aAAa,KAAK;EAC1D,KAAK,OAAO,KAAK;EACjB,KAAK,KAAK,KAAK;EACf,KAAK,OAAO,KAAK;EACjB,KAAK,UAAU,KAAK;EACpB,KAAK,SAAS,KAAK;EACnB,IAAI,KAAK,kBAAkB,KAAA,GACzB,KAAK,gBAAgB,KAAK;EAC5B,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,IAAI,KAAK,YAAY,KAAA,GAAW,KAAK,UAAU,KAAK;EACpD,IAAI,KAAK,YAAY,KAAA,GAAW,KAAK,UAAU,KAAK;EACpD,IAAI,KAAK,YAAY,KAAA,GAAW,KAAK,UAAU,KAAK;EACpD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,aAAa,KAAA,GAAW,KAAK,WAAW,KAAK;CACxD;AACF;AAEA,OAAO,eAAe,aAAa,WAAW,UAAU,EACtD,OAAO,mBACT,CAAC;AAED,OAAO,eAAe,aAAa,WAAW,aAAa,EACzD,KAAK,WAAY;CACf,OAAOA;AACT,EACF,CAAC"}
1
+ {"version":3,"file":"emailMessage.js","names":["validate"],"sources":["../../.generated/models/emailMessage.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateEmailMessage as validate } from \"../validate.js\";\nimport { emailMessageSchema, type EmailMessageSchema } from \"../schemas/emailMessage.js\";\n\n/**\n * Data type for EmailMessage constructor - exported for backwards compatibility\n */\nexport type EmailMessageData = EmailMessageSchema;\n\n/**\n * EmailMessage\n */\nexport interface EmailMessage extends EmailMessageSchema {}\nexport class EmailMessage extends Entity {\n declare schema: typeof emailMessageSchema;\n declare validator: typeof validate;\n\n constructor(data: EmailMessageSchema) {\n super(data);\n this.id = data.id;\n if (data.propertyId !== undefined) this.propertyId = data.propertyId;\n this.type = data.type;\n this.to = data.to;\n this.from = data.from;\n this.subject = data.subject;\n this.status = data.status;\n if (data.statusMessage !== undefined) this.statusMessage = data.statusMessage;\n if (data.html !== undefined) this.html = data.html;\n if (data.text !== undefined) this.text = data.text;\n if (data.driver !== undefined) this.driver = data.driver;\n if (data.headers !== undefined) this.headers = data.headers;\n if (data.replyTo !== undefined) this.replyTo = data.replyTo;\n if (data.appData !== undefined) this.appData = data.appData;\n if (data.createdAt !== undefined) this.createdAt = data.createdAt;\n if (data.updatedAt !== undefined) this.updatedAt = data.updatedAt;\n if (data.deletedAt !== undefined) this.deletedAt = data.deletedAt;\n if (data.systemId !== undefined) this.systemId = data.systemId;\n }\n\n\n\n\n\n\n\n\n}\n\nObject.defineProperty(EmailMessage.prototype, \"schema\", {\n value: emailMessageSchema\n});\n\nObject.defineProperty(EmailMessage.prototype, \"validator\", {\n get: function() { return validate; }\n});\n"],"mappings":";;;;AAeA,IAAa,eAAb,cAAkC,OAAO;CAIvC,YAAY,MAA0B;EACpC,MAAM,IAAI;EACV,KAAK,KAAK,KAAK;EACf,IAAI,KAAK,eAAe,KAAA,GAAW,KAAK,aAAa,KAAK;EAC1D,KAAK,OAAO,KAAK;EACjB,KAAK,KAAK,KAAK;EACf,KAAK,OAAO,KAAK;EACjB,KAAK,UAAU,KAAK;EACpB,KAAK,SAAS,KAAK;EACnB,IAAI,KAAK,kBAAkB,KAAA,GAAW,KAAK,gBAAgB,KAAK;EAChE,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,IAAI,KAAK,YAAY,KAAA,GAAW,KAAK,UAAU,KAAK;EACpD,IAAI,KAAK,YAAY,KAAA,GAAW,KAAK,UAAU,KAAK;EACpD,IAAI,KAAK,YAAY,KAAA,GAAW,KAAK,UAAU,KAAK;EACpD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,aAAa,KAAA,GAAW,KAAK,WAAW,KAAK;CACxD;AASF;AAEA,OAAO,eAAe,aAAa,WAAW,UAAU,EACtD,OAAO,mBACT,CAAC;AAED,OAAO,eAAe,aAAa,WAAW,aAAa,EACzD,KAAK,WAAW;CAAE,OAAOA;AAAU,EACrC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"energyReport.js","names":["validate"],"sources":["../../.generated/models/energyReport.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateEnergyReport as validate } from \"../validate.js\";\nimport {\n energyReportSchema,\n type EnergyReportSchema,\n} from \"../schemas/energyReport.js\";\n\n/**\n * Data type for EnergyReport constructor - exported for backwards compatibility\n */\nexport type EnergyReportData = EnergyReportSchema;\n\n/**\n * Hourly Report for Energy based on energy report shards\n */\nexport interface EnergyReport extends EnergyReportSchema {}\nexport class EnergyReport extends Entity {\n declare schema: typeof energyReportSchema;\n declare validator: typeof validate;\n\n constructor(data: EnergyReportSchema) {\n super(data);\n this.id = data.id;\n if (data.propertyId !== undefined) this.propertyId = data.propertyId;\n this.type = data.type;\n if (data.reportTime !== undefined) this.reportTime = data.reportTime;\n this.roomId = data.roomId;\n this.first = data.first;\n this.last = data.last;\n this.consumption = data.consumption;\n this.totals = data.totals;\n this.costPerKw = data.costPerKw;\n }\n}\n\nObject.defineProperty(EnergyReport.prototype, \"schema\", {\n value: energyReportSchema,\n});\n\nObject.defineProperty(EnergyReport.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;;;AAkBA,IAAa,eAAb,cAAkC,OAAO;CAIvC,YAAY,MAA0B;EACpC,MAAM,IAAI;EACV,KAAK,KAAK,KAAK;EACf,IAAI,KAAK,eAAe,KAAA,GAAW,KAAK,aAAa,KAAK;EAC1D,KAAK,OAAO,KAAK;EACjB,IAAI,KAAK,eAAe,KAAA,GAAW,KAAK,aAAa,KAAK;EAC1D,KAAK,SAAS,KAAK;EACnB,KAAK,QAAQ,KAAK;EAClB,KAAK,OAAO,KAAK;EACjB,KAAK,cAAc,KAAK;EACxB,KAAK,SAAS,KAAK;EACnB,KAAK,YAAY,KAAK;CACxB;AACF;AAEA,OAAO,eAAe,aAAa,WAAW,UAAU,EACtD,OAAO,mBACT,CAAC;AAED,OAAO,eAAe,aAAa,WAAW,aAAa,EACzD,KAAK,WAAY;CACf,OAAOA;AACT,EACF,CAAC"}
1
+ {"version":3,"file":"energyReport.js","names":["validate"],"sources":["../../.generated/models/energyReport.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateEnergyReport as validate } from \"../validate.js\";\nimport { energyReportSchema, type EnergyReportSchema } from \"../schemas/energyReport.js\";\n\n/**\n * Data type for EnergyReport constructor - exported for backwards compatibility\n */\nexport type EnergyReportData = EnergyReportSchema;\n\n/**\n * Hourly Report for Energy based on energy report shards\n */\nexport interface EnergyReport extends EnergyReportSchema {}\nexport class EnergyReport extends Entity {\n declare schema: typeof energyReportSchema;\n declare validator: typeof validate;\n\n constructor(data: EnergyReportSchema) {\n super(data);\n this.id = data.id;\n if (data.propertyId !== undefined) this.propertyId = data.propertyId;\n this.type = data.type;\n if (data.reportTime !== undefined) this.reportTime = data.reportTime;\n this.roomId = data.roomId;\n this.first = data.first;\n this.last = data.last;\n this.consumption = data.consumption;\n this.totals = data.totals;\n this.costPerKw = data.costPerKw;\n }\n\n\n\n\n\n\n\n\n}\n\nObject.defineProperty(EnergyReport.prototype, \"schema\", {\n value: energyReportSchema\n});\n\nObject.defineProperty(EnergyReport.prototype, \"validator\", {\n get: function() { return validate; }\n});\n"],"mappings":";;;;AAeA,IAAa,eAAb,cAAkC,OAAO;CAIvC,YAAY,MAA0B;EACpC,MAAM,IAAI;EACV,KAAK,KAAK,KAAK;EACf,IAAI,KAAK,eAAe,KAAA,GAAW,KAAK,aAAa,KAAK;EAC1D,KAAK,OAAO,KAAK;EACjB,IAAI,KAAK,eAAe,KAAA,GAAW,KAAK,aAAa,KAAK;EAC1D,KAAK,SAAS,KAAK;EACnB,KAAK,QAAQ,KAAK;EAClB,KAAK,OAAO,KAAK;EACjB,KAAK,cAAc,KAAK;EACxB,KAAK,SAAS,KAAK;EACnB,KAAK,YAAY,KAAK;CACxB;AASF;AAEA,OAAO,eAAe,aAAa,WAAW,UAAU,EACtD,OAAO,mBACT,CAAC;AAED,OAAO,eAAe,aAAa,WAAW,aAAa,EACzD,KAAK,WAAW;CAAE,OAAOA;AAAU,EACrC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"energyReportShard.js","names":["validate"],"sources":["../../.generated/models/energyReportShard.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateEnergyReportShard as validate } from \"../validate.js\";\nimport {\n energyReportShardSchema,\n type EnergyReportShardSchema,\n} from \"../schemas/energyReportShard.js\";\n\n/**\n * Data type for EnergyReportShard constructor - exported for backwards compatibility\n */\nexport type EnergyReportShardData = EnergyReportShardSchema;\n\n/**\n * Shard used for Energy Reports\n */\nexport interface EnergyReportShard extends EnergyReportShardSchema {}\nexport class EnergyReportShard extends Entity {\n declare schema: typeof energyReportShardSchema;\n declare validator: typeof validate;\n\n constructor(data: EnergyReportShardSchema) {\n super(data);\n this.id = data.id;\n this.type = data.type;\n this.roomId = data.roomId;\n this.first = data.first;\n this.last = data.last;\n this.data = data.data;\n this.ndata = data.ndata;\n this.expires = data.expires;\n }\n}\n\nObject.defineProperty(EnergyReportShard.prototype, \"schema\", {\n value: energyReportShardSchema,\n});\n\nObject.defineProperty(EnergyReportShard.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;;;AAkBA,IAAa,oBAAb,cAAuC,OAAO;CAI5C,YAAY,MAA+B;EACzC,MAAM,IAAI;EACV,KAAK,KAAK,KAAK;EACf,KAAK,OAAO,KAAK;EACjB,KAAK,SAAS,KAAK;EACnB,KAAK,QAAQ,KAAK;EAClB,KAAK,OAAO,KAAK;EACjB,KAAK,OAAO,KAAK;EACjB,KAAK,QAAQ,KAAK;EAClB,KAAK,UAAU,KAAK;CACtB;AACF;AAEA,OAAO,eAAe,kBAAkB,WAAW,UAAU,EAC3D,OAAO,wBACT,CAAC;AAED,OAAO,eAAe,kBAAkB,WAAW,aAAa,EAC9D,KAAK,WAAY;CACf,OAAOA;AACT,EACF,CAAC"}
1
+ {"version":3,"file":"energyReportShard.js","names":["validate"],"sources":["../../.generated/models/energyReportShard.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateEnergyReportShard as validate } from \"../validate.js\";\nimport { energyReportShardSchema, type EnergyReportShardSchema } from \"../schemas/energyReportShard.js\";\n\n/**\n * Data type for EnergyReportShard constructor - exported for backwards compatibility\n */\nexport type EnergyReportShardData = EnergyReportShardSchema;\n\n/**\n * Shard used for Energy Reports\n */\nexport interface EnergyReportShard extends EnergyReportShardSchema {}\nexport class EnergyReportShard extends Entity {\n declare schema: typeof energyReportShardSchema;\n declare validator: typeof validate;\n\n constructor(data: EnergyReportShardSchema) {\n super(data);\n this.id = data.id;\n this.type = data.type;\n this.roomId = data.roomId;\n this.first = data.first;\n this.last = data.last;\n this.data = data.data;\n this.ndata = data.ndata;\n this.expires = data.expires;\n }\n\n\n\n\n\n\n\n\n}\n\nObject.defineProperty(EnergyReportShard.prototype, \"schema\", {\n value: energyReportShardSchema\n});\n\nObject.defineProperty(EnergyReportShard.prototype, \"validator\", {\n get: function() { return validate; }\n});\n"],"mappings":";;;;AAeA,IAAa,oBAAb,cAAuC,OAAO;CAI5C,YAAY,MAA+B;EACzC,MAAM,IAAI;EACV,KAAK,KAAK,KAAK;EACf,KAAK,OAAO,KAAK;EACjB,KAAK,SAAS,KAAK;EACnB,KAAK,QAAQ,KAAK;EAClB,KAAK,OAAO,KAAK;EACjB,KAAK,OAAO,KAAK;EACjB,KAAK,QAAQ,KAAK;EAClB,KAAK,UAAU,KAAK;CACtB;AASF;AAEA,OAAO,eAAe,kBAAkB,WAAW,UAAU,EAC3D,OAAO,wBACT,CAAC;AAED,OAAO,eAAe,kBAAkB,WAAW,aAAa,EAC9D,KAAK,WAAW;CAAE,OAAOA;AAAU,EACrC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"gateway.js","names":["validate"],"sources":["../../.generated/models/gateway.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateGateway as validate } from \"../validate.js\";\nimport { gatewaySchema, type GatewaySchema } from \"../schemas/gateway.js\";\n\n/**\n * Data type for Gateway constructor - exported for backwards compatibility\n */\nexport type GatewayData = GatewaySchema;\n\n/**\n * Any smart gateway that is an entrypoint for controlling devices\n */\nexport interface Gateway extends GatewaySchema {}\nexport class Gateway extends Entity {\n declare schema: typeof gatewaySchema;\n declare validator: typeof validate;\n\n constructor(data: GatewaySchema) {\n super(data);\n this.id = data.id;\n if (data.propertyId !== undefined) this.propertyId = data.propertyId;\n if (data.name !== undefined) this.name = data.name;\n if (data.offline !== undefined) this.offline = data.offline;\n this.type = data.type;\n if (data.alerts !== undefined) this.alerts = data.alerts;\n if (data.supportedNotifications !== undefined)\n this.supportedNotifications = data.supportedNotifications;\n if (data.notification !== undefined) this.notification = data.notification;\n this.status = data.status;\n if (data.systemId !== undefined) this.systemId = data.systemId;\n this.driver = data.driver;\n if (data.watts !== undefined) this.watts = data.watts;\n if (data.icon !== undefined) this.icon = data.icon;\n if (data.manufacturer !== undefined) this.manufacturer = data.manufacturer;\n if (data.modelNumber !== undefined) this.modelNumber = data.modelNumber;\n if (data.serialNumber !== undefined) this.serialNumber = data.serialNumber;\n if (data.firmwareVersion !== undefined)\n this.firmwareVersion = data.firmwareVersion;\n }\n}\n\nObject.defineProperty(Gateway.prototype, \"schema\", {\n value: gatewaySchema,\n});\n\nObject.defineProperty(Gateway.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;;;AAeA,IAAa,UAAb,cAA6B,OAAO;CAIlC,YAAY,MAAqB;EAC/B,MAAM,IAAI;EACV,KAAK,KAAK,KAAK;EACf,IAAI,KAAK,eAAe,KAAA,GAAW,KAAK,aAAa,KAAK;EAC1D,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,IAAI,KAAK,YAAY,KAAA,GAAW,KAAK,UAAU,KAAK;EACpD,KAAK,OAAO,KAAK;EACjB,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,IAAI,KAAK,2BAA2B,KAAA,GAClC,KAAK,yBAAyB,KAAK;EACrC,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,KAAK,SAAS,KAAK;EACnB,IAAI,KAAK,aAAa,KAAA,GAAW,KAAK,WAAW,KAAK;EACtD,KAAK,SAAS,KAAK;EACnB,IAAI,KAAK,UAAU,KAAA,GAAW,KAAK,QAAQ,KAAK;EAChD,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,IAAI,KAAK,gBAAgB,KAAA,GAAW,KAAK,cAAc,KAAK;EAC5D,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,IAAI,KAAK,oBAAoB,KAAA,GAC3B,KAAK,kBAAkB,KAAK;CAChC;AACF;AAEA,OAAO,eAAe,QAAQ,WAAW,UAAU,EACjD,OAAO,cACT,CAAC;AAED,OAAO,eAAe,QAAQ,WAAW,aAAa,EACpD,KAAK,WAAY;CACf,OAAOA;AACT,EACF,CAAC"}
1
+ {"version":3,"file":"gateway.js","names":["validate"],"sources":["../../.generated/models/gateway.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateGateway as validate } from \"../validate.js\";\nimport { gatewaySchema, type GatewaySchema } from \"../schemas/gateway.js\";\n\n/**\n * Data type for Gateway constructor - exported for backwards compatibility\n */\nexport type GatewayData = GatewaySchema;\n\n/**\n * Any smart gateway that is an entrypoint for controlling devices\n */\nexport interface Gateway extends GatewaySchema {}\nexport class Gateway extends Entity {\n declare schema: typeof gatewaySchema;\n declare validator: typeof validate;\n\n constructor(data: GatewaySchema) {\n super(data);\n this.id = data.id;\n if (data.propertyId !== undefined) this.propertyId = data.propertyId;\n if (data.name !== undefined) this.name = data.name;\n if (data.offline !== undefined) this.offline = data.offline;\n this.type = data.type;\n if (data.alerts !== undefined) this.alerts = data.alerts;\n if (data.supportedNotifications !== undefined) this.supportedNotifications = data.supportedNotifications;\n if (data.notification !== undefined) this.notification = data.notification;\n this.status = data.status;\n if (data.systemId !== undefined) this.systemId = data.systemId;\n this.driver = data.driver;\n if (data.watts !== undefined) this.watts = data.watts;\n if (data.icon !== undefined) this.icon = data.icon;\n if (data.manufacturer !== undefined) this.manufacturer = data.manufacturer;\n if (data.modelNumber !== undefined) this.modelNumber = data.modelNumber;\n if (data.serialNumber !== undefined) this.serialNumber = data.serialNumber;\n if (data.firmwareVersion !== undefined) this.firmwareVersion = data.firmwareVersion;\n }\n\n\n\n\n\n\n\n\n}\n\nObject.defineProperty(Gateway.prototype, \"schema\", {\n value: gatewaySchema\n});\n\nObject.defineProperty(Gateway.prototype, \"validator\", {\n get: function() { return validate; }\n});\n"],"mappings":";;;;AAeA,IAAa,UAAb,cAA6B,OAAO;CAIlC,YAAY,MAAqB;EAC/B,MAAM,IAAI;EACV,KAAK,KAAK,KAAK;EACf,IAAI,KAAK,eAAe,KAAA,GAAW,KAAK,aAAa,KAAK;EAC1D,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,IAAI,KAAK,YAAY,KAAA,GAAW,KAAK,UAAU,KAAK;EACpD,KAAK,OAAO,KAAK;EACjB,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,IAAI,KAAK,2BAA2B,KAAA,GAAW,KAAK,yBAAyB,KAAK;EAClF,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,KAAK,SAAS,KAAK;EACnB,IAAI,KAAK,aAAa,KAAA,GAAW,KAAK,WAAW,KAAK;EACtD,KAAK,SAAS,KAAK;EACnB,IAAI,KAAK,UAAU,KAAA,GAAW,KAAK,QAAQ,KAAK;EAChD,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,IAAI,KAAK,gBAAgB,KAAA,GAAW,KAAK,cAAc,KAAK;EAC5D,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,IAAI,KAAK,oBAAoB,KAAA,GAAW,KAAK,kBAAkB,KAAK;CACtE;AASF;AAEA,OAAO,eAAe,QAAQ,WAAW,UAAU,EACjD,OAAO,cACT,CAAC;AAED,OAAO,eAAe,QAAQ,WAAW,aAAa,EACpD,KAAK,WAAW;CAAE,OAAOA;AAAU,EACrC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"group.js","names":["validate"],"sources":["../../.generated/models/group.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateGroup as validate } from \"../validate.js\";\nimport { groupSchema, type GroupSchema } from \"../schemas/group.js\";\n\n/**\n * Data type for Group constructor - exported for backwards compatibility\n */\nexport type GroupData = GroupSchema;\n\n/**\n * A named collection of members. Conforms to SCIM 2.0 (RFC 7643) Group resource.\n */\nexport interface Group extends GroupSchema {}\nexport class Group extends Entity {\n declare schema: typeof groupSchema;\n declare validator: typeof validate;\n\n constructor(data: GroupSchema) {\n super(data);\n this.id = data.id;\n if (data.systemId !== undefined) this.systemId = data.systemId;\n if (data.driver !== undefined) this.driver = data.driver;\n this.type = data.type;\n this.kind = data.kind;\n this.name = data.name;\n if (data.members !== undefined) this.members = data.members;\n if (data.createdAt !== undefined) this.createdAt = data.createdAt;\n if (data.updatedAt !== undefined) this.updatedAt = data.updatedAt;\n if (data.deletedAt !== undefined) this.deletedAt = data.deletedAt;\n }\n}\n\nObject.defineProperty(Group.prototype, \"schema\", {\n value: groupSchema,\n});\n\nObject.defineProperty(Group.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;;;AAeA,IAAa,QAAb,cAA2B,OAAO;CAIhC,YAAY,MAAmB;EAC7B,MAAM,IAAI;EACV,KAAK,KAAK,KAAK;EACf,IAAI,KAAK,aAAa,KAAA,GAAW,KAAK,WAAW,KAAK;EACtD,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,KAAK,OAAO,KAAK;EACjB,KAAK,OAAO,KAAK;EACjB,KAAK,OAAO,KAAK;EACjB,IAAI,KAAK,YAAY,KAAA,GAAW,KAAK,UAAU,KAAK;EACpD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;CAC1D;AACF;AAEA,OAAO,eAAe,MAAM,WAAW,UAAU,EAC/C,OAAO,YACT,CAAC;AAED,OAAO,eAAe,MAAM,WAAW,aAAa,EAClD,KAAK,WAAY;CACf,OAAOA;AACT,EACF,CAAC"}
1
+ {"version":3,"file":"group.js","names":["validate"],"sources":["../../.generated/models/group.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateGroup as validate } from \"../validate.js\";\nimport { groupSchema, type GroupSchema } from \"../schemas/group.js\";\n\n/**\n * Data type for Group constructor - exported for backwards compatibility\n */\nexport type GroupData = GroupSchema;\n\n/**\n * A named collection of members. Conforms to SCIM 2.0 (RFC 7643) Group resource.\n */\nexport interface Group extends GroupSchema {}\nexport class Group extends Entity {\n declare schema: typeof groupSchema;\n declare validator: typeof validate;\n\n constructor(data: GroupSchema) {\n super(data);\n this.id = data.id;\n if (data.systemId !== undefined) this.systemId = data.systemId;\n if (data.driver !== undefined) this.driver = data.driver;\n this.type = data.type;\n this.kind = data.kind;\n this.name = data.name;\n if (data.members !== undefined) this.members = data.members;\n if (data.createdAt !== undefined) this.createdAt = data.createdAt;\n if (data.updatedAt !== undefined) this.updatedAt = data.updatedAt;\n if (data.deletedAt !== undefined) this.deletedAt = data.deletedAt;\n }\n\n\n\n\n\n\n\n\n}\n\nObject.defineProperty(Group.prototype, \"schema\", {\n value: groupSchema\n});\n\nObject.defineProperty(Group.prototype, \"validator\", {\n get: function() { return validate; }\n});\n"],"mappings":";;;;AAeA,IAAa,QAAb,cAA2B,OAAO;CAIhC,YAAY,MAAmB;EAC7B,MAAM,IAAI;EACV,KAAK,KAAK,KAAK;EACf,IAAI,KAAK,aAAa,KAAA,GAAW,KAAK,WAAW,KAAK;EACtD,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,KAAK,OAAO,KAAK;EACjB,KAAK,OAAO,KAAK;EACjB,KAAK,OAAO,KAAK;EACjB,IAAI,KAAK,YAAY,KAAA,GAAW,KAAK,UAAU,KAAK;EACpD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;CAC1D;AASF;AAEA,OAAO,eAAe,MAAM,WAAW,UAAU,EAC/C,OAAO,YACT,CAAC;AAED,OAAO,eAAe,MAAM,WAAW,aAAa,EAClD,KAAK,WAAW;CAAE,OAAOA;AAAU,EACrC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"identification.js","names":["validate"],"sources":["../../.generated/models/identification.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateIdentification as validate } from \"../validate.js\";\nimport {\n identificationSchema,\n type IdentificationSchema,\n} from \"../schemas/identification.js\";\n\n/**\n * Data type for Identification constructor - exported for backwards compatibility\n */\nexport type IdentificationData = IdentificationSchema;\n\n/**\n * Identification\n */\n// Union type schema - using index signature since union types can't be extended\nexport class Identification extends Entity {\n [key: string]: unknown;\n declare schema: typeof identificationSchema;\n declare validator: typeof validate;\n\n constructor(data: IdentificationSchema) {\n super(data);\n if (data.id !== undefined) this.id = data.id;\n this.type = data.type;\n if (data.number !== undefined) this.number = data.number;\n if (data.maskedNumber !== undefined) this.maskedNumber = data.maskedNumber;\n if (data.encryptedNumber !== undefined)\n this.encryptedNumber = data.encryptedNumber;\n if (data.issued !== undefined) this.issued = data.issued;\n if (data.expires !== undefined) this.expires = data.expires;\n if (data.verified !== undefined) this.verified = data.verified;\n if (data.matched !== undefined) this.matched = data.matched;\n if (data.firstName !== undefined) this.firstName = data.firstName;\n if (data.lastName !== undefined) this.lastName = data.lastName;\n if (data.issuingCountry !== undefined)\n this.issuingCountry = data.issuingCountry;\n if (data.issuingState !== undefined) this.issuingState = data.issuingState;\n if (data.systemId !== undefined) this.systemId = data.systemId;\n }\n}\n\nObject.defineProperty(Identification.prototype, \"schema\", {\n value: identificationSchema,\n});\n\nObject.defineProperty(Identification.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;;;;;;AAkBA,IAAa,iBAAb,cAAoC,OAAO;CAKzC,YAAY,MAA4B;EACtC,MAAM,IAAI;EACV,IAAI,KAAK,OAAO,KAAA,GAAW,KAAK,KAAK,KAAK;EAC1C,KAAK,OAAO,KAAK;EACjB,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,IAAI,KAAK,oBAAoB,KAAA,GAC3B,KAAK,kBAAkB,KAAK;EAC9B,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,IAAI,KAAK,YAAY,KAAA,GAAW,KAAK,UAAU,KAAK;EACpD,IAAI,KAAK,aAAa,KAAA,GAAW,KAAK,WAAW,KAAK;EACtD,IAAI,KAAK,YAAY,KAAA,GAAW,KAAK,UAAU,KAAK;EACpD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,aAAa,KAAA,GAAW,KAAK,WAAW,KAAK;EACtD,IAAI,KAAK,mBAAmB,KAAA,GAC1B,KAAK,iBAAiB,KAAK;EAC7B,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,IAAI,KAAK,aAAa,KAAA,GAAW,KAAK,WAAW,KAAK;CACxD;AACF;AAEA,OAAO,eAAe,eAAe,WAAW,UAAU,EACxD,OAAO,qBACT,CAAC;AAED,OAAO,eAAe,eAAe,WAAW,aAAa,EAC3D,KAAK,WAAY;CACf,OAAOA;AACT,EACF,CAAC"}
1
+ {"version":3,"file":"identification.js","names":["validate"],"sources":["../../.generated/models/identification.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateIdentification as validate } from \"../validate.js\";\nimport { identificationSchema, type IdentificationSchema } from \"../schemas/identification.js\";\n\n/**\n * Data type for Identification constructor - exported for backwards compatibility\n */\nexport type IdentificationData = IdentificationSchema;\n\n/**\n * Identification\n */\n// Union type schema - using index signature since union types can't be extended\nexport class Identification extends Entity {\n [key: string]: unknown;\n declare schema: typeof identificationSchema;\n declare validator: typeof validate;\n\n constructor(data: IdentificationSchema) {\n super(data);\n if (data.id !== undefined) this.id = data.id;\n this.type = data.type;\n if (data.number !== undefined) this.number = data.number;\n if (data.maskedNumber !== undefined) this.maskedNumber = data.maskedNumber;\n if (data.encryptedNumber !== undefined) this.encryptedNumber = data.encryptedNumber;\n if (data.issued !== undefined) this.issued = data.issued;\n if (data.expires !== undefined) this.expires = data.expires;\n if (data.verified !== undefined) this.verified = data.verified;\n if (data.matched !== undefined) this.matched = data.matched;\n if (data.firstName !== undefined) this.firstName = data.firstName;\n if (data.lastName !== undefined) this.lastName = data.lastName;\n if (data.issuingCountry !== undefined) this.issuingCountry = data.issuingCountry;\n if (data.issuingState !== undefined) this.issuingState = data.issuingState;\n if (data.systemId !== undefined) this.systemId = data.systemId;\n }\n\n\n\n\n\n\n\n\n}\n\nObject.defineProperty(Identification.prototype, \"schema\", {\n value: identificationSchema\n});\n\nObject.defineProperty(Identification.prototype, \"validator\", {\n get: function() { return validate; }\n});\n"],"mappings":";;;;;;;AAeA,IAAa,iBAAb,cAAoC,OAAO;CAKzC,YAAY,MAA4B;EACtC,MAAM,IAAI;EACV,IAAI,KAAK,OAAO,KAAA,GAAW,KAAK,KAAK,KAAK;EAC1C,KAAK,OAAO,KAAK;EACjB,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,IAAI,KAAK,oBAAoB,KAAA,GAAW,KAAK,kBAAkB,KAAK;EACpE,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,IAAI,KAAK,YAAY,KAAA,GAAW,KAAK,UAAU,KAAK;EACpD,IAAI,KAAK,aAAa,KAAA,GAAW,KAAK,WAAW,KAAK;EACtD,IAAI,KAAK,YAAY,KAAA,GAAW,KAAK,UAAU,KAAK;EACpD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,aAAa,KAAA,GAAW,KAAK,WAAW,KAAK;EACtD,IAAI,KAAK,mBAAmB,KAAA,GAAW,KAAK,iBAAiB,KAAK;EAClE,IAAI,KAAK,iBAAiB,KAAA,GAAW,KAAK,eAAe,KAAK;EAC9D,IAAI,KAAK,aAAa,KAAA,GAAW,KAAK,WAAW,KAAK;CACxD;AASF;AAEA,OAAO,eAAe,eAAe,WAAW,UAAU,EACxD,OAAO,qBACT,CAAC;AAED,OAAO,eAAe,eAAe,WAAW,aAAa,EAC3D,KAAK,WAAW;CAAE,OAAOA;AAAU,EACrC,CAAC"}
@@ -8,10 +8,10 @@ export { Courtesy, type CourtesyData } from "./courtesy.js";
8
8
  export { Credential, type CredentialData } from "./credential.js";
9
9
  export { Department, type DepartmentData } from "./department.js";
10
10
  export { Dimmer, type DimmerData } from "./dimmer.js";
11
- export { DiscoveredDevice, type DiscoveredDeviceData, } from "./discoveredDevice.js";
11
+ export { DiscoveredDevice, type DiscoveredDeviceData } from "./discoveredDevice.js";
12
12
  export { EmailMessage, type EmailMessageData } from "./emailMessage.js";
13
13
  export { EnergyReport, type EnergyReportData } from "./energyReport.js";
14
- export { EnergyReportShard, type EnergyReportShardData, } from "./energyReportShard.js";
14
+ export { EnergyReportShard, type EnergyReportShardData } from "./energyReportShard.js";
15
15
  export { Gateway, type GatewayData } from "./gateway.js";
16
16
  export { Group, type GroupData } from "./group.js";
17
17
  export { Identification, type IdentificationData } from "./identification.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../.generated/models/index.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nexport { Entity } from \"./entity.js\";\n\nexport { Alarm, type AlarmData } from \"./alarm.js\";\nexport { Announcement, type AnnouncementData } from \"./announcement.js\";\nexport { Automation, type AutomationData } from \"./automation.js\";\nexport { Camera, type CameraData } from \"./camera.js\";\nexport { Category, type CategoryData } from \"./category.js\";\nexport { Courtesy, type CourtesyData } from \"./courtesy.js\";\nexport { Credential, type CredentialData } from \"./credential.js\";\nexport { Department, type DepartmentData } from \"./department.js\";\nexport { Dimmer, type DimmerData } from \"./dimmer.js\";\nexport {\n DiscoveredDevice,\n type DiscoveredDeviceData,\n} from \"./discoveredDevice.js\";\nexport { EmailMessage, type EmailMessageData } from \"./emailMessage.js\";\nexport { EnergyReport, type EnergyReportData } from \"./energyReport.js\";\nexport {\n EnergyReportShard,\n type EnergyReportShardData,\n} from \"./energyReportShard.js\";\nexport { Gateway, type GatewayData } from \"./gateway.js\";\nexport { Group, type GroupData } from \"./group.js\";\nexport { Identification, type IdentificationData } from \"./identification.js\";\nexport { Integration, type IntegrationData } from \"./integration.js\";\nexport { Issue, type IssueData } from \"./issue.js\";\nexport { Lock, type LockData } from \"./lock.js\";\nexport { Log, type LogData } from \"./log.js\";\nexport { MediaFile, type MediaFileData } from \"./mediaFile.js\";\nexport { MediaSource, type MediaSourceData } from \"./mediaSource.js\";\nexport { MotionSensor, type MotionSensorData } from \"./motionSensor.js\";\nexport { Notification, type NotificationData } from \"./notification.js\";\nexport { Order, type OrderData } from \"./order.js\";\nexport { Organization, type OrganizationData } from \"./organization.js\";\nexport { Payment, type PaymentData } from \"./payment.js\";\nexport { Policy, type PolicyData } from \"./policy.js\";\nexport { Product, type ProductData } from \"./product.js\";\nexport { Property, type PropertyData } from \"./property.js\";\nexport { Reservation, type ReservationData } from \"./reservation.js\";\nexport { Server, type ServerData } from \"./server.js\";\nexport { Session, type SessionData } from \"./session.js\";\nexport { ShortLink, type ShortLinkData } from \"./shortLink.js\";\nexport { SmsMessage, type SmsMessageData } from \"./smsMessage.js\";\nexport { SOSType, type SOSTypeData } from \"./sosType.js\";\nexport { Space, type SpaceData } from \"./space.js\";\nexport { Switch, type SwitchData } from \"./switch.js\";\nexport { System, type SystemData } from \"./system.js\";\nexport { SystemUser, type SystemUserData } from \"./systemUser.js\";\nexport { Thermostat, type ThermostatData } from \"./thermostat.js\";\nexport { Ticket, type TicketData } from \"./ticket.js\";\nexport { TimeSheet, type TimeSheetData } from \"./timeSheet.js\";\nexport { User, type UserData } from \"./user.js\";\nexport { Vendor, type VendorData } from \"./vendor.js\";\nexport { WindowCovering, type WindowCoveringData } from \"./windowCovering.js\";\n"],"mappings":""}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../.generated/models/index.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nexport { Entity } from \"./entity.js\";\n\nexport { Alarm, type AlarmData } from \"./alarm.js\";\nexport { Announcement, type AnnouncementData } from \"./announcement.js\";\nexport { Automation, type AutomationData } from \"./automation.js\";\nexport { Camera, type CameraData } from \"./camera.js\";\nexport { Category, type CategoryData } from \"./category.js\";\nexport { Courtesy, type CourtesyData } from \"./courtesy.js\";\nexport { Credential, type CredentialData } from \"./credential.js\";\nexport { Department, type DepartmentData } from \"./department.js\";\nexport { Dimmer, type DimmerData } from \"./dimmer.js\";\nexport { DiscoveredDevice, type DiscoveredDeviceData } from \"./discoveredDevice.js\";\nexport { EmailMessage, type EmailMessageData } from \"./emailMessage.js\";\nexport { EnergyReport, type EnergyReportData } from \"./energyReport.js\";\nexport { EnergyReportShard, type EnergyReportShardData } from \"./energyReportShard.js\";\nexport { Gateway, type GatewayData } from \"./gateway.js\";\nexport { Group, type GroupData } from \"./group.js\";\nexport { Identification, type IdentificationData } from \"./identification.js\";\nexport { Integration, type IntegrationData } from \"./integration.js\";\nexport { Issue, type IssueData } from \"./issue.js\";\nexport { Lock, type LockData } from \"./lock.js\";\nexport { Log, type LogData } from \"./log.js\";\nexport { MediaFile, type MediaFileData } from \"./mediaFile.js\";\nexport { MediaSource, type MediaSourceData } from \"./mediaSource.js\";\nexport { MotionSensor, type MotionSensorData } from \"./motionSensor.js\";\nexport { Notification, type NotificationData } from \"./notification.js\";\nexport { Order, type OrderData } from \"./order.js\";\nexport { Organization, type OrganizationData } from \"./organization.js\";\nexport { Payment, type PaymentData } from \"./payment.js\";\nexport { Policy, type PolicyData } from \"./policy.js\";\nexport { Product, type ProductData } from \"./product.js\";\nexport { Property, type PropertyData } from \"./property.js\";\nexport { Reservation, type ReservationData } from \"./reservation.js\";\nexport { Server, type ServerData } from \"./server.js\";\nexport { Session, type SessionData } from \"./session.js\";\nexport { ShortLink, type ShortLinkData } from \"./shortLink.js\";\nexport { SmsMessage, type SmsMessageData } from \"./smsMessage.js\";\nexport { SOSType, type SOSTypeData } from \"./sosType.js\";\nexport { Space, type SpaceData } from \"./space.js\";\nexport { Switch, type SwitchData } from \"./switch.js\";\nexport { System, type SystemData } from \"./system.js\";\nexport { SystemUser, type SystemUserData } from \"./systemUser.js\";\nexport { Thermostat, type ThermostatData } from \"./thermostat.js\";\nexport { Ticket, type TicketData } from \"./ticket.js\";\nexport { TimeSheet, type TimeSheetData } from \"./timeSheet.js\";\nexport { User, type UserData } from \"./user.js\";\nexport { Vendor, type VendorData } from \"./vendor.js\";\nexport { WindowCovering, type WindowCoveringData } from \"./windowCovering.js\";\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"integration.js","names":["validate"],"sources":["../../.generated/models/integration.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateIntegration as validate } from \"../validate.js\";\nimport {\n integrationSchema,\n type IntegrationSchema,\n} from \"../schemas/integration.js\";\n\n/**\n * Data type for Integration constructor - exported for backwards compatibility\n */\nexport type IntegrationData = IntegrationSchema;\n\n/**\n * An entry in the integrations catalog used to display and pre-fill metadata for a driver.\n */\nexport interface Integration extends IntegrationSchema {}\nexport class Integration extends Entity {\n declare schema: typeof integrationSchema;\n declare validator: typeof validate;\n\n constructor(data: IntegrationSchema) {\n super(data);\n this.id = data.id;\n this.type = data.type;\n this.systemName = data.systemName;\n this.systemPhoto = data.systemPhoto;\n if (data.itunesAppId !== undefined) this.itunesAppId = data.itunesAppId;\n if (data.googleAppId !== undefined) this.googleAppId = data.googleAppId;\n this.createdAt = data.createdAt;\n this.updatedAt = data.updatedAt;\n }\n}\n\nObject.defineProperty(Integration.prototype, \"schema\", {\n value: integrationSchema,\n});\n\nObject.defineProperty(Integration.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;;;AAkBA,IAAa,cAAb,cAAiC,OAAO;CAItC,YAAY,MAAyB;EACnC,MAAM,IAAI;EACV,KAAK,KAAK,KAAK;EACf,KAAK,OAAO,KAAK;EACjB,KAAK,aAAa,KAAK;EACvB,KAAK,cAAc,KAAK;EACxB,IAAI,KAAK,gBAAgB,KAAA,GAAW,KAAK,cAAc,KAAK;EAC5D,IAAI,KAAK,gBAAgB,KAAA,GAAW,KAAK,cAAc,KAAK;EAC5D,KAAK,YAAY,KAAK;EACtB,KAAK,YAAY,KAAK;CACxB;AACF;AAEA,OAAO,eAAe,YAAY,WAAW,UAAU,EACrD,OAAO,kBACT,CAAC;AAED,OAAO,eAAe,YAAY,WAAW,aAAa,EACxD,KAAK,WAAY;CACf,OAAOA;AACT,EACF,CAAC"}
1
+ {"version":3,"file":"integration.js","names":["validate"],"sources":["../../.generated/models/integration.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateIntegration as validate } from \"../validate.js\";\nimport { integrationSchema, type IntegrationSchema } from \"../schemas/integration.js\";\n\n/**\n * Data type for Integration constructor - exported for backwards compatibility\n */\nexport type IntegrationData = IntegrationSchema;\n\n/**\n * An entry in the integrations catalog used to display and pre-fill metadata for a driver.\n */\nexport interface Integration extends IntegrationSchema {}\nexport class Integration extends Entity {\n declare schema: typeof integrationSchema;\n declare validator: typeof validate;\n\n constructor(data: IntegrationSchema) {\n super(data);\n this.id = data.id;\n this.type = data.type;\n this.systemName = data.systemName;\n this.systemPhoto = data.systemPhoto;\n if (data.itunesAppId !== undefined) this.itunesAppId = data.itunesAppId;\n if (data.googleAppId !== undefined) this.googleAppId = data.googleAppId;\n this.createdAt = data.createdAt;\n this.updatedAt = data.updatedAt;\n }\n\n\n\n\n\n\n\n\n}\n\nObject.defineProperty(Integration.prototype, \"schema\", {\n value: integrationSchema\n});\n\nObject.defineProperty(Integration.prototype, \"validator\", {\n get: function() { return validate; }\n});\n"],"mappings":";;;;AAeA,IAAa,cAAb,cAAiC,OAAO;CAItC,YAAY,MAAyB;EACnC,MAAM,IAAI;EACV,KAAK,KAAK,KAAK;EACf,KAAK,OAAO,KAAK;EACjB,KAAK,aAAa,KAAK;EACvB,KAAK,cAAc,KAAK;EACxB,IAAI,KAAK,gBAAgB,KAAA,GAAW,KAAK,cAAc,KAAK;EAC5D,IAAI,KAAK,gBAAgB,KAAA,GAAW,KAAK,cAAc,KAAK;EAC5D,KAAK,YAAY,KAAK;EACtB,KAAK,YAAY,KAAK;CACxB;AASF;AAEA,OAAO,eAAe,YAAY,WAAW,UAAU,EACrD,OAAO,kBACT,CAAC;AAED,OAAO,eAAe,YAAY,WAAW,aAAa,EACxD,KAAK,WAAW;CAAE,OAAOA;AAAU,EACrC,CAAC"}