@kohost/api-client 4.0.8 → 4.0.9

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 (49) hide show
  1. package/dist/chunk-36WNTEIW.js +1 -1
  2. package/dist/chunk-EBJTC6MA.js +1 -1
  3. package/dist/chunk-HKJ2B2AA.js +1 -1
  4. package/dist/chunk-IJQVACF3.js +1 -0
  5. package/dist/{chunk-3ZUKHDXQ.js.map → chunk-IJQVACF3.js.map} +1 -1
  6. package/dist/chunk-KNSZIQXT.js +1 -1
  7. package/dist/chunk-W2G36LNI.js +1 -1
  8. package/dist/chunk-XZITDYVM.js +1 -0
  9. package/dist/chunk-XZITDYVM.js.map +1 -0
  10. package/dist/client.cjs +1 -1
  11. package/dist/client.js +1 -1
  12. package/dist/commands.cjs +1 -1
  13. package/dist/commands.cjs.map +1 -1
  14. package/dist/commands.js +1 -1
  15. package/dist/defs.cjs +1 -1
  16. package/dist/defs.js +1 -1
  17. package/dist/errors.cjs +1 -1
  18. package/dist/errors.cjs.map +1 -1
  19. package/dist/errors.js +1 -1
  20. package/dist/events.cjs +1 -1
  21. package/dist/events.cjs.map +1 -1
  22. package/dist/events.js +1 -1
  23. package/dist/index.cjs +1185 -1060
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/index.d.cts +138 -123
  26. package/dist/index.d.ts +138 -123
  27. package/dist/index.js +1185 -1060
  28. package/dist/index.js.map +1 -1
  29. package/dist/models.cjs +1 -1
  30. package/dist/models.cjs.map +1 -1
  31. package/dist/models.d.cts +3 -3
  32. package/dist/models.d.ts +3 -3
  33. package/dist/models.js +1 -1
  34. package/dist/socketIoClient.cjs +1 -1
  35. package/dist/socketIoClient.js +1 -1
  36. package/dist/useCases.cjs +1 -1
  37. package/dist/useCases.cjs.map +1 -1
  38. package/dist/useCases.js +1 -1
  39. package/dist/utils.cjs +1 -1
  40. package/dist/utils.cjs.map +1 -1
  41. package/dist/utils.d.cts +1 -1
  42. package/dist/utils.d.ts +1 -1
  43. package/dist/utils.js +1 -1
  44. package/dist/{windowCovering-dE1qeU57.d.cts → windowCovering-CXcSOjuy.d.cts} +137 -122
  45. package/dist/{windowCovering-dE1qeU57.d.ts → windowCovering-CXcSOjuy.d.ts} +137 -122
  46. package/package.json +1 -1
  47. package/dist/chunk-36O34ETI.js +0 -1
  48. package/dist/chunk-36O34ETI.js.map +0 -1
  49. package/dist/chunk-3ZUKHDXQ.js +0 -1
@@ -1 +1 @@
1
- import{AppError as t}from"./chunk-EBJTC6MA.js";var r=class _AuthenticationError extends t{constructor(t="Authentication Error",r={}){super(t,r),this.statusCode=401,this.name="AuthenticationError",Object.setPrototypeOf(this,_AuthenticationError.prototype)}},o=class _AuthorizationError extends t{constructor(t="Authorization Error",r={}){super(t,r),this.statusCode=403,this.name="AuthorizationError",Object.setPrototypeOf(this,_AuthorizationError.prototype)}},e=class _ConflictError extends t{constructor(t="Bad Request",r={}){super(t,r),this.statusCode=409,this.name="ConflictError",Object.setPrototypeOf(this,_ConflictError.prototype)}},s=class _DeviceCommError extends t{constructor(t="Device Communication Error",r={}){super(t,r),this.statusCode=503,this.name="DeviceCommError",Object.setPrototypeOf(this,_DeviceCommError.prototype)}},i=class _LoginError extends t{constructor(t="Invalid Login information provided",r={}){super(t,r),this.statusCode=401,this.name="LoginError",Object.setPrototypeOf(this,_LoginError.prototype)}},n=class _NotFoundError extends t{constructor(t="Resource Not Found",r={}){super(t,r),this.statusCode=404,this.name="NotFoundError",Object.setPrototypeOf(this,_NotFoundError.prototype)}},c=class _RequestError extends t{constructor(t="Bad Request",r={}){super(t,r),this.statusCode=400,this.name="RequestError",Object.setPrototypeOf(this,_RequestError.prototype)}},u=class _SystemCommError extends t{constructor(t="System Communication Error",r={}){super(t,r),this.statusCode=503,this.name="SystemCommError",Object.setPrototypeOf(this,_SystemCommError.prototype)}},p=class _TokenExpiredError extends t{constructor(t="Token Expired",r={}){super(t,r),this.statusCode=401,this.name="TokenExpiredError",Object.setPrototypeOf(this,_TokenExpiredError.prototype)}},a=class _UnprocessableRequestError extends t{constructor(t="Unprocessable Request Error",r={}){super(t,r),this.statusCode=422,this.name="UnprocessableRequestError",Object.setPrototypeOf(this,_UnprocessableRequestError.prototype)}};export{r as AuthenticationError,o as AuthorizationError,e as ConflictError,s as DeviceCommError,i as LoginError,n as NotFoundError,c as RequestError,u as SystemCommError,p as TokenExpiredError,a as UnprocessableRequestError};//# sourceMappingURL=chunk-36WNTEIW.js.map
1
+ import{AppError}from"./chunk-EBJTC6MA.js";var AuthenticationError=class _AuthenticationError extends AppError{constructor(message="Authentication Error",options={}){super(message,options),this.statusCode=401,this.name="AuthenticationError",Object.setPrototypeOf(this,_AuthenticationError.prototype)}},AuthorizationError=class _AuthorizationError extends AppError{constructor(message="Authorization Error",options={}){super(message,options),this.statusCode=403,this.name="AuthorizationError",Object.setPrototypeOf(this,_AuthorizationError.prototype)}},ConflictError=class _ConflictError extends AppError{constructor(message="Bad Request",options={}){super(message,options),this.statusCode=409,this.name="ConflictError",Object.setPrototypeOf(this,_ConflictError.prototype)}},DeviceCommError=class _DeviceCommError extends AppError{constructor(message="Device Communication Error",options={}){super(message,options),this.statusCode=503,this.name="DeviceCommError",Object.setPrototypeOf(this,_DeviceCommError.prototype)}},LoginError=class _LoginError extends AppError{constructor(message="Invalid Login information provided",options={}){super(message,options),this.statusCode=401,this.name="LoginError",Object.setPrototypeOf(this,_LoginError.prototype)}},NotFoundError=class _NotFoundError extends AppError{constructor(message="Resource Not Found",options={}){super(message,options),this.statusCode=404,this.name="NotFoundError",Object.setPrototypeOf(this,_NotFoundError.prototype)}},RequestError=class _RequestError extends AppError{constructor(message="Bad Request",options={}){super(message,options),this.statusCode=400,this.name="RequestError",Object.setPrototypeOf(this,_RequestError.prototype)}},SystemCommError=class _SystemCommError extends AppError{constructor(message="System Communication Error",options={}){super(message,options),this.statusCode=503,this.name="SystemCommError",Object.setPrototypeOf(this,_SystemCommError.prototype)}},TokenExpiredError=class _TokenExpiredError extends AppError{constructor(message="Token Expired",options={}){super(message,options),this.statusCode=401,this.name="TokenExpiredError",Object.setPrototypeOf(this,_TokenExpiredError.prototype)}},UnprocessableRequestError=class _UnprocessableRequestError extends AppError{constructor(message="Unprocessable Request Error",options={}){super(message,options),this.statusCode=422,this.name="UnprocessableRequestError",Object.setPrototypeOf(this,_UnprocessableRequestError.prototype)}};export{AuthenticationError,AuthorizationError,ConflictError,DeviceCommError,LoginError,NotFoundError,RequestError,SystemCommError,TokenExpiredError,UnprocessableRequestError};//# sourceMappingURL=chunk-36WNTEIW.js.map
@@ -1 +1 @@
1
- var r=class _AppError extends Error{constructor(r="Internal Server Error",t){super(r,t),this.type=this.constructor.name,this.statusCode=500,this.name="AppError",Object.setPrototypeOf(this,_AppError.prototype)}},t=class _ValidationError extends r{constructor(r="Validation Error",t={}){super(r,t),this.statusCode=400,this.name="ValidationError",Object.setPrototypeOf(this,_ValidationError.prototype)}};export{r as AppError,t as ValidationError};//# sourceMappingURL=chunk-EBJTC6MA.js.map
1
+ var AppError=class _AppError extends Error{constructor(message="Internal Server Error",options){super(message,options),this.type=this.constructor.name,this.statusCode=500,this.name="AppError",Object.setPrototypeOf(this,_AppError.prototype)}},ValidationError=class _ValidationError extends AppError{constructor(message="Validation Error",options={}){super(message,options),this.statusCode=400,this.name="ValidationError",Object.setPrototypeOf(this,_ValidationError.prototype)}};export{AppError,ValidationError};//# sourceMappingURL=chunk-EBJTC6MA.js.map
@@ -1 +1 @@
1
- var e=Object.defineProperty,r=Object.getOwnPropertyNames,__commonJS=(e,t)=>function __require(){return t||(0,e[r(e)[0]])((t={exports:{}}).exports,t),t.exports},__export=(r,t)=>{for(var o in t)e(r,o,{get:t[o],enumerable:!0})};export{__commonJS,__export};//# sourceMappingURL=chunk-HKJ2B2AA.js.map
1
+ var __defProp=Object.defineProperty,__getOwnPropNames=Object.getOwnPropertyNames,__commonJS=(cb,mod)=>function __require(){return mod||(0,cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports},__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})};export{__commonJS,__export};//# sourceMappingURL=chunk-HKJ2B2AA.js.map
@@ -0,0 +1 @@
1
+ import{amqpExchanges}from"./chunk-KNSZIQXT.js";import{__export}from"./chunk-HKJ2B2AA.js";var events_exports={};__export(events_exports,{ApplicationInUse:()=>ApplicationInUse,ApplicationOutOfUse:()=>ApplicationOutOfUse,EmailEvent:()=>EmailEvent,Event:()=>Event,ReservationCheckedIn:()=>ReservationCheckedIn,ReservationCheckedOut:()=>ReservationCheckedOut,ReservationSpaceChanged:()=>ReservationSpaceChanged,SMSEvent:()=>SMSEvent,SceneSet:()=>SceneSet,ShortLinkCreated:()=>ShortLinkCreated,SystemAlarmUpdated:()=>SystemAlarmUpdated,SystemCameraUpdated:()=>SystemCameraUpdated,SystemCategoryUpdated:()=>SystemCategoryUpdated,SystemCourtesyUpdated:()=>SystemCourtesyUpdated,SystemCredentialUpdated:()=>SystemCredentialUpdated,SystemDimmerUpdated:()=>SystemDimmerUpdated,SystemEntityDeleted:()=>SystemEntityDeleted,SystemGatewayUpdated:()=>SystemGatewayUpdated,SystemLockUpdated:()=>SystemLockUpdated,SystemMediaSourceUpdated:()=>SystemMediaSourceUpdated,SystemMotionSensorUpdated:()=>SystemMotionSensorUpdated,SystemOrganizationUpdated:()=>SystemOrganizationUpdated,SystemProductUpdated:()=>SystemProductUpdated,SystemPropertyUpdated:()=>SystemPropertyUpdated,SystemReservationUpdated:()=>SystemReservationUpdated,SystemSpaceUpdate:()=>SystemSpaceUpdate,SystemSwitchUpdated:()=>SystemSwitchUpdated,SystemThermostatUpdated:()=>SystemThermostatUpdated,SystemUserUpdated:()=>SystemUserUpdated,SystemWindowCoveringUpdated:()=>SystemWindowCoveringUpdated});var Event=class{constructor(data,context={}){if(this.data=[],this.context=context,!data)throw new Error("Event data is required");if("object"!=typeof data&&!Array.isArray(data))throw new Error("Event data must be an object or array");Array.isArray(data)?this.data=data:this.data=[data]}get organizationId(){return this.context.organizationId||"*"}get propertyId(){return this.context.propertyId||"*"}static get type(){return"Event"}static get exchange(){return amqpExchanges.DriverEvents.name}static get entity(){return""}build(){return{data:{...this.data}}}get routingKey(){return`${this.organizationId}.${this.propertyId}.${this.constructor.entity}.${this.constructor.name}`}},ApplicationInUse=class extends Event{constructor(data={},context){super(data,context)}static get name(){return"ApplicationInUse"}static get entity(){return"app"}static get exchange(){return amqpExchanges.AppEvents.name}},ApplicationOutOfUse=class extends Event{constructor(data={},context={}){super(data,context)}static get name(){return"ApplicationOutOfUse"}static get entity(){return"app"}static get exchange(){return amqpExchanges.AppEvents.name}},EmailEvent=class extends Event{constructor(email,context){super(email,context)}static get name(){return"EmailEvent"}static get entity(){return"emailMessage"}},ReservationCheckedIn=class extends Event{constructor(reservation,context){super(reservation,context)}static get name(){return"ReservationCheckedIn"}static get entity(){return"reservation"}static get exchange(){return amqpExchanges.AppEvents.name}},ReservationCheckedOut=class extends Event{constructor(reservation,context){super(reservation,context)}static get name(){return"ReservationCheckedOut"}static get entity(){return"reservation"}static get exchange(){return amqpExchanges.AppEvents.name}},ReservationSpaceChanged=class extends Event{constructor(reservation,context){super(reservation,context)}static get name(){return"ReservationSpaceChanged"}static get entity(){return"reservation"}static get exchange(){return amqpExchanges.AppEvents.name}},SceneSet=class extends Event{constructor(scene,context){super(scene,context)}static get name(){return"SceneSet"}static get entity(){return"scene"}},ShortLinkCreated=class extends Event{constructor(shortLink,context){super(shortLink,context)}static get name(){return"ShortLinkCreated"}static get entity(){return"shortLink"}},SMSEvent=class extends Event{constructor(sms,context){super(sms,context)}static get name(){return"SMSEvent"}static get entity(){return"smsMessage"}},SystemAlarmUpdated=class extends Event{constructor(alarm,context){super(alarm,context)}static get name(){return"SystemAlarmUpdated"}static get entity(){return"alarm"}},SystemCameraUpdated=class extends Event{constructor(camera,context){super(camera,context)}static get name(){return"SystemCameraUpdated"}static get entity(){return"camera"}},SystemCategoryUpdated=class extends Event{constructor(category,context){super(category,context)}static get name(){return"SystemCategoryUpdated"}static get entity(){return"category"}},SystemCourtesyUpdated=class extends Event{constructor(courtesy,context){super(courtesy,context)}static get name(){return"SystemCourtesyUpdated"}static get entity(){return"courtesy"}},SystemCredentialUpdated=class extends Event{constructor(cred,context){super(cred,context)}static get name(){return"SystemCredentialUpdated"}static get entity(){return"credential"}},SystemDimmerUpdated=class extends Event{constructor(dimmer,context){super(dimmer,context)}static get name(){return"SystemDimmerUpdated"}static get entity(){return"dimmer"}},SystemEntityDeleted=class extends Event{constructor(data,context){super(data,context)}static get name(){return"SystemEntityDeleted"}static get entity(){return"entity"}},SystemGatewayUpdated=class extends Event{constructor(gateway,context){super(gateway,context)}static get name(){return"SystemGatewayUpdated"}static get entity(){return"gateway"}},SystemLockUpdated=class extends Event{constructor(lock,context){super(lock,context)}static get name(){return"SystemLockUpdated"}static get entity(){return"lock"}},SystemMediaSourceUpdated=class extends Event{constructor(mediaSource,context){super(mediaSource,context)}static get name(){return"SystemMediaSourceUpdated"}static get entity(){return"mediaSource"}},SystemMotionSensorUpdated=class extends Event{constructor(motion,context){super(motion,context)}static get name(){return"SystemMotionSensorUpdated"}static get entity(){return"motionSensor"}},SystemOrganizationUpdated=class extends Event{constructor(organization,context){super(organization,context)}static get name(){return"SystemOrganizationUpdated"}static get entity(){return"organization"}},SystemProductUpdated=class extends Event{constructor(product,context){super(product,context)}static get name(){return"SystemProductUpdated"}static get entity(){return"product"}},SystemPropertyUpdated=class extends Event{constructor(property,context){super(property,context)}static get name(){return"SystemPropertyUpdated"}static get entity(){return"property"}},SystemReservationUpdated=class extends Event{constructor(reservation,context){super(reservation,context)}static get name(){return"SystemReservationUpdated"}static get entity(){return"reservation"}},SystemSpaceUpdate=class extends Event{constructor(space,context){super(space,context)}static get name(){return"SystemSpaceUpdated"}static get entity(){return"space"}},SystemSwitchUpdated=class extends Event{constructor(_switch,context){super(_switch,context)}static get name(){return"SystemSwitchUpdated"}static get entity(){return"switch"}},SystemThermostatUpdated=class extends Event{constructor(thermostat,context){super(thermostat,context)}static get name(){return"SystemThermostatUpdated"}static get entity(){return"thermostat"}},SystemUserUpdated=class extends Event{constructor(user,context){super(user,context)}static get name(){return"SystemUserUpdated"}static get entity(){return"user"}},SystemWindowCoveringUpdated=class extends Event{constructor(wc,context){super(wc,context)}static get name(){return"SystemWindowCoveringUpdated"}static get entity(){return"windowCovering"}};export{Event,ApplicationInUse,ApplicationOutOfUse,EmailEvent,ReservationCheckedIn,ReservationCheckedOut,ReservationSpaceChanged,SceneSet,ShortLinkCreated,SMSEvent,SystemAlarmUpdated,SystemCameraUpdated,SystemCategoryUpdated,SystemCourtesyUpdated,SystemCredentialUpdated,SystemDimmerUpdated,SystemEntityDeleted,SystemGatewayUpdated,SystemLockUpdated,SystemMediaSourceUpdated,SystemMotionSensorUpdated,SystemOrganizationUpdated,SystemProductUpdated,SystemPropertyUpdated,SystemReservationUpdated,SystemSpaceUpdate,SystemSwitchUpdated,SystemThermostatUpdated,SystemUserUpdated,SystemWindowCoveringUpdated,events_exports};//# sourceMappingURL=chunk-IJQVACF3.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/events/index.js","../src/events/event.js","../src/events/applicationInUse.js","../src/events/applicationOutOfUse.js","../src/events/emailEvent.js","../src/events/reservationCheckedIn.js","../src/events/reservationCheckedOut.js","../src/events/reservationSpaceChanged.js","../src/events/sceneSet.js","../src/events/shortLinkCreated.js","../src/events/smsEvent.js","../src/events/systemAlarmUpdated.js","../src/events/systemCameraUpdated.js","../src/events/systemCategoryUpdated.js","../src/events/systemCourtesyUpdated.js","../src/events/systemCredentialUpdated.js","../src/events/systemDimmerUpdated.js","../src/events/systemEntityDeleted.js","../src/events/systemGatewayUpdated.js","../src/events/systemLockUpdated.js","../src/events/systemMediaSourceUpdated.js","../src/events/systemMotionSensorUpdated.js","../src/events/systemOrganizationUpdated.js","../src/events/systemProductUpdated.js","../src/events/systemPropertyUpdated.js","../src/events/systemReservationUpdated.js","../src/events/systemSpaceUpdated.js","../src/events/systemSwitchUpdated.js","../src/events/systemThermostatUpdated.js","../src/events/systemUserUpdated.js","../src/events/systemWindowCoveringUpdated.js"],"sourcesContent":["// This file is auto-generated. Do not edit this file manually.\n// Generated on: 2025-01-14T14:06:45.928Z\n\nexport { ApplicationInUse } from \"./applicationInUse\";\nexport { ApplicationOutOfUse } from \"./applicationOutOfUse\";\nexport { EmailEvent } from \"./emailEvent\";\nexport { Event } from \"./event\";\nexport { ReservationCheckedIn } from \"./reservationCheckedIn\";\nexport { ReservationCheckedOut } from \"./reservationCheckedOut\";\nexport { ReservationSpaceChanged } from \"./reservationSpaceChanged\";\nexport { SceneSet } from \"./sceneSet\";\nexport { ShortLinkCreated } from \"./shortLinkCreated\";\nexport { SMSEvent } from \"./smsEvent\";\nexport { SystemAlarmUpdated } from \"./systemAlarmUpdated\";\nexport { SystemCameraUpdated } from \"./systemCameraUpdated\";\nexport { SystemCategoryUpdated } from \"./systemCategoryUpdated\";\nexport { SystemCourtesyUpdated } from \"./systemCourtesyUpdated\";\nexport { SystemCredentialUpdated } from \"./systemCredentialUpdated\";\nexport { SystemDimmerUpdated } from \"./systemDimmerUpdated\";\nexport { SystemEntityDeleted } from \"./systemEntityDeleted\";\nexport { SystemGatewayUpdated } from \"./systemGatewayUpdated\";\nexport { SystemLockUpdated } from \"./systemLockUpdated\";\nexport { SystemMediaSourceUpdated } from \"./systemMediaSourceUpdated\";\nexport { SystemMotionSensorUpdated } from \"./systemMotionSensorUpdated\";\nexport { SystemOrganizationUpdated } from \"./systemOrganizationUpdated\";\nexport { SystemProductUpdated } from \"./systemProductUpdated\";\nexport { SystemPropertyUpdated } from \"./systemPropertyUpdated\";\nexport { SystemReservationUpdated } from \"./systemReservationUpdated\";\nexport { SystemSpaceUpdate } from \"./systemSpaceUpdated\";\nexport { SystemSwitchUpdated } from \"./systemSwitchUpdated\";\nexport { SystemThermostatUpdated } from \"./systemThermostatUpdated\";\nexport { SystemUserUpdated } from \"./systemUserUpdated\";\nexport { SystemWindowCoveringUpdated } from \"./systemWindowCoveringUpdated\";","import { amqpExchanges } from \"../defs\";\n\nexport class Event {\n constructor(data, context = {}) {\n this.data = [];\n this.context = context;\n if (!data) throw new Error(\"Event data is required\");\n if (typeof data !== \"object\" && !Array.isArray(data))\n throw new Error(\"Event data must be an object or array\");\n\n if (!Array.isArray(data)) this.data = [data];\n else this.data = data;\n }\n\n get organizationId() {\n return this.context.organizationId || \"*\";\n }\n\n get propertyId() {\n return this.context.propertyId || \"*\";\n }\n\n static get type() {\n return \"Event\";\n }\n\n static get exchange() {\n return amqpExchanges.DriverEvents.name;\n }\n\n static get entity() {\n return \"\";\n }\n\n build() {\n return { data: { ...this.data } };\n }\n\n get routingKey() {\n return `${this.organizationId}.${this.propertyId}.${this.constructor.entity}.${this.constructor.name}`;\n }\n}\n","import { amqpExchanges } from \"../defs\";\nimport { Event } from \"./event\";\n\nexport class ApplicationInUse extends Event {\n constructor(data = {}, context) {\n super(data, context);\n }\n\n static get name() {\n return \"ApplicationInUse\";\n }\n\n static get entity() {\n return \"app\";\n }\n\n static get exchange() {\n return amqpExchanges.AppEvents.name;\n }\n}\n","import { amqpExchanges } from \"../defs\";\nimport { Event } from \"./event\";\n\nexport class ApplicationOutOfUse extends Event {\n constructor(data = {}, context = {}) {\n super(data, context);\n }\n\n static get name() {\n return \"ApplicationOutOfUse\";\n }\n\n static get entity() {\n return \"app\";\n }\n\n static get exchange() {\n return amqpExchanges.AppEvents.name;\n }\n}\n","import { Event } from \"./event\";\n\nexport class EmailEvent extends Event {\n constructor(email, context) {\n super(email, context);\n }\n\n static get name() {\n return \"EmailEvent\";\n }\n\n static get entity() {\n return \"emailMessage\";\n }\n}\n","import { amqpExchanges } from \"../defs\";\nimport { Event } from \"./event\";\n\nexport class ReservationCheckedIn extends Event {\n constructor(reservation, context) {\n super(reservation, context);\n }\n\n static get name() {\n return \"ReservationCheckedIn\";\n }\n\n static get entity() {\n return \"reservation\";\n }\n\n static get exchange() {\n return amqpExchanges.AppEvents.name;\n }\n}\n","import { amqpExchanges } from \"../defs\";\nimport { Event } from \"./event\";\n\nexport class ReservationCheckedOut extends Event {\n constructor(reservation, context) {\n super(reservation, context);\n }\n\n static get name() {\n return \"ReservationCheckedOut\";\n }\n\n static get entity() {\n return \"reservation\";\n }\n\n static get exchange() {\n return amqpExchanges.AppEvents.name;\n }\n}\n","import { amqpExchanges } from \"../defs\";\nimport { Event } from \"./event\";\n\nexport class ReservationSpaceChanged extends Event {\n constructor(reservation, context) {\n super(reservation, context);\n }\n\n static get name() {\n return \"ReservationSpaceChanged\";\n }\n\n static get entity() {\n return \"reservation\";\n }\n\n static get exchange() {\n return amqpExchanges.AppEvents.name;\n }\n}\n","import { Event } from \"./event\";\n\nexport class SceneSet extends Event {\n constructor(scene, context) {\n super(scene, context);\n }\n\n static get name() {\n return \"SceneSet\";\n }\n\n static get entity() {\n return \"scene\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class ShortLinkCreated extends Event {\n constructor(shortLink, context) {\n super(shortLink, context);\n }\n\n static get name() {\n return \"ShortLinkCreated\";\n }\n\n static get entity() {\n return \"shortLink\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SMSEvent extends Event {\n constructor(sms, context) {\n super(sms, context);\n }\n\n static get name() {\n return \"SMSEvent\";\n }\n\n static get entity() {\n return \"smsMessage\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemAlarmUpdated extends Event {\n constructor(alarm, context) {\n super(alarm, context);\n }\n\n static get name() {\n return \"SystemAlarmUpdated\";\n }\n\n static get entity() {\n return \"alarm\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemCameraUpdated extends Event {\n constructor(camera, context) {\n super(camera, context);\n }\n\n static get name() {\n return \"SystemCameraUpdated\";\n }\n\n static get entity() {\n return \"camera\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemCategoryUpdated extends Event {\n constructor(category, context) {\n super(category, context);\n }\n\n static get name() {\n return \"SystemCategoryUpdated\";\n }\n\n static get entity() {\n return \"category\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemCourtesyUpdated extends Event {\n constructor(courtesy, context) {\n super(courtesy, context);\n }\n\n static get name() {\n return \"SystemCourtesyUpdated\";\n }\n\n static get entity() {\n return \"courtesy\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemCredentialUpdated extends Event {\n constructor(cred, context) {\n super(cred, context);\n }\n\n static get name() {\n return \"SystemCredentialUpdated\";\n }\n\n static get entity() {\n return \"credential\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemDimmerUpdated extends Event {\n constructor(dimmer, context) {\n super(dimmer, context);\n }\n\n static get name() {\n return \"SystemDimmerUpdated\";\n }\n\n static get entity() {\n return \"dimmer\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemEntityDeleted extends Event {\n constructor(data, context) {\n super(data, context);\n }\n\n static get name() {\n return \"SystemEntityDeleted\";\n }\n\n static get entity() {\n return \"entity\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemGatewayUpdated extends Event {\n constructor(gateway, context) {\n super(gateway, context);\n }\n\n static get name() {\n return \"SystemGatewayUpdated\";\n }\n\n static get entity() {\n return \"gateway\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemLockUpdated extends Event {\n constructor(lock, context) {\n super(lock, context);\n }\n\n static get name() {\n return \"SystemLockUpdated\";\n }\n\n static get entity() {\n return \"lock\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemMediaSourceUpdated extends Event {\n constructor(mediaSource, context) {\n super(mediaSource, context);\n }\n\n static get name() {\n return \"SystemMediaSourceUpdated\";\n }\n\n static get entity() {\n return \"mediaSource\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemMotionSensorUpdated extends Event {\n constructor(motion, context) {\n super(motion, context);\n }\n\n static get name() {\n return \"SystemMotionSensorUpdated\";\n }\n\n static get entity() {\n return \"motionSensor\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemOrganizationUpdated extends Event {\n constructor(organization, context) {\n super(organization, context);\n }\n\n static get name() {\n return \"SystemOrganizationUpdated\";\n }\n\n static get entity() {\n return \"organization\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemProductUpdated extends Event {\n constructor(product, context) {\n super(product, context);\n }\n\n static get name() {\n return \"SystemProductUpdated\";\n }\n\n static get entity() {\n return \"product\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemPropertyUpdated extends Event {\n constructor(property, context) {\n super(property, context);\n }\n\n static get name() {\n return \"SystemPropertyUpdated\";\n }\n\n static get entity() {\n return \"property\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemReservationUpdated extends Event {\n constructor(reservation, context) {\n super(reservation, context);\n }\n\n static get name() {\n return \"SystemReservationUpdated\";\n }\n\n static get entity() {\n return \"reservation\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemSpaceUpdate extends Event {\n constructor(space, context) {\n super(space, context);\n }\n\n static get name() {\n return \"SystemSpaceUpdated\";\n }\n\n static get entity() {\n return \"space\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemSwitchUpdated extends Event {\n constructor(_switch, context) {\n super(_switch, context);\n }\n\n static get name() {\n return \"SystemSwitchUpdated\";\n }\n\n static get entity() {\n return \"switch\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemThermostatUpdated extends Event {\n constructor(thermostat, context) {\n super(thermostat, context);\n }\n\n static get name() {\n return \"SystemThermostatUpdated\";\n }\n\n static get entity() {\n return \"thermostat\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemUserUpdated extends Event {\n constructor(user, context) {\n super(user, context);\n }\n\n static get name() {\n return \"SystemUserUpdated\";\n }\n\n static get entity() {\n return \"user\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemWindowCoveringUpdated extends Event {\n constructor(wc, context) {\n super(wc, context);\n }\n\n static get name() {\n return \"SystemWindowCoveringUpdated\";\n }\n\n static get entity() {\n return \"windowCovering\";\n }\n}\n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B;AAAA,EAEA,WAAW,OAAO;AAChB,WAAO;AAAA,EACT;AAAA,EAEA,WAAW,SAAS;AAClB,WAAO;AAAA,EACT;AACF;;;ACZO,IAAM,oBAAN,cAAgC,MAAM;AAAA,EAC3C,YAAY,OAAO,SAAS;AAC1B,UAAM,OAAO,OAAO;AAAA,EACtB;AAAA,EAEA,WAAW,OAAO;AAChB,WAAO;AAAA,EACT;AAAA,EAEA,WAAW,SAAS;AAClB,WAAO;AAAA,EACT;AACF;;;ACZO,IAAM,sBAAN,cAAkC,MAAM;AAAA,EAC7C,YAAY,SAAS,SAAS;AAC5B,UAAM,SAAS,OAAO;AAAA,EACxB;AAAA,EAEA,WAAW,OAAO;AAChB,WAAO;AAAA,EACT;AAAA,EAEA,WAAW,SAAS;AAClB,WAAO;AAAA,EACT;AACF;;;ACZO,IAAM,0BAAN,cAAsC,MAAM;AAAA,EACjD,YAAY,YAAY,SAAS;AAC/B,UAAM,YAAY,OAAO;AAAA,EAC3B;AAAA,EAEA,WAAW,OAAO;AAChB,WAAO;AAAA,EACT;AAAA,EAEA,WAAW,SAAS;AAClB,WAAO;AAAA,EACT;AACF;;;ACZO,IAAM,oBAAN,cAAgC,MAAM;AAAA,EAC3C,YAAY,MAAM,SAAS;AACzB,UAAM,MAAM,OAAO;AAAA,EACrB;AAAA,EAEA,WAAW,OAAO;AAChB,WAAO;AAAA,EACT;AAAA,EAEA,WAAW,SAAS;AAClB,WAAO;AAAA,EACT;AACF;;;ACZO,IAAM,8BAAN,cAA0C,MAAM;AAAA,EACrD,YAAY,IAAI,SAAS;AACvB,UAAM,IAAI,OAAO;AAAA,EACnB;AAAA,EAEA,WAAW,OAAO;AAChB,WAAO;AAAA,EACT;AAAA,EAEA,WAAW,SAAS;AAClB,WAAO;AAAA,EACT;AACF;","names":[]}
1
+ {"version":3,"sources":["../src/events/index.js","../src/events/event.js","../src/events/applicationInUse.js","../src/events/applicationOutOfUse.js","../src/events/emailEvent.js","../src/events/reservationCheckedIn.js","../src/events/reservationCheckedOut.js","../src/events/reservationSpaceChanged.js","../src/events/sceneSet.js","../src/events/shortLinkCreated.js","../src/events/smsEvent.js","../src/events/systemAlarmUpdated.js","../src/events/systemCameraUpdated.js","../src/events/systemCategoryUpdated.js","../src/events/systemCourtesyUpdated.js","../src/events/systemCredentialUpdated.js","../src/events/systemDimmerUpdated.js","../src/events/systemEntityDeleted.js","../src/events/systemGatewayUpdated.js","../src/events/systemLockUpdated.js","../src/events/systemMediaSourceUpdated.js","../src/events/systemMotionSensorUpdated.js","../src/events/systemOrganizationUpdated.js","../src/events/systemProductUpdated.js","../src/events/systemPropertyUpdated.js","../src/events/systemReservationUpdated.js","../src/events/systemSpaceUpdated.js","../src/events/systemSwitchUpdated.js","../src/events/systemThermostatUpdated.js","../src/events/systemUserUpdated.js","../src/events/systemWindowCoveringUpdated.js"],"sourcesContent":["// This file is auto-generated. Do not edit this file manually.\n// Generated on: 2025-01-15T17:12:31.266Z\n\nexport { ApplicationInUse } from \"./applicationInUse\";\nexport { ApplicationOutOfUse } from \"./applicationOutOfUse\";\nexport { EmailEvent } from \"./emailEvent\";\nexport { Event } from \"./event\";\nexport { ReservationCheckedIn } from \"./reservationCheckedIn\";\nexport { ReservationCheckedOut } from \"./reservationCheckedOut\";\nexport { ReservationSpaceChanged } from \"./reservationSpaceChanged\";\nexport { SceneSet } from \"./sceneSet\";\nexport { ShortLinkCreated } from \"./shortLinkCreated\";\nexport { SMSEvent } from \"./smsEvent\";\nexport { SystemAlarmUpdated } from \"./systemAlarmUpdated\";\nexport { SystemCameraUpdated } from \"./systemCameraUpdated\";\nexport { SystemCategoryUpdated } from \"./systemCategoryUpdated\";\nexport { SystemCourtesyUpdated } from \"./systemCourtesyUpdated\";\nexport { SystemCredentialUpdated } from \"./systemCredentialUpdated\";\nexport { SystemDimmerUpdated } from \"./systemDimmerUpdated\";\nexport { SystemEntityDeleted } from \"./systemEntityDeleted\";\nexport { SystemGatewayUpdated } from \"./systemGatewayUpdated\";\nexport { SystemLockUpdated } from \"./systemLockUpdated\";\nexport { SystemMediaSourceUpdated } from \"./systemMediaSourceUpdated\";\nexport { SystemMotionSensorUpdated } from \"./systemMotionSensorUpdated\";\nexport { SystemOrganizationUpdated } from \"./systemOrganizationUpdated\";\nexport { SystemProductUpdated } from \"./systemProductUpdated\";\nexport { SystemPropertyUpdated } from \"./systemPropertyUpdated\";\nexport { SystemReservationUpdated } from \"./systemReservationUpdated\";\nexport { SystemSpaceUpdate } from \"./systemSpaceUpdated\";\nexport { SystemSwitchUpdated } from \"./systemSwitchUpdated\";\nexport { SystemThermostatUpdated } from \"./systemThermostatUpdated\";\nexport { SystemUserUpdated } from \"./systemUserUpdated\";\nexport { SystemWindowCoveringUpdated } from \"./systemWindowCoveringUpdated\";","import { amqpExchanges } from \"../defs\";\n\nexport class Event {\n constructor(data, context = {}) {\n this.data = [];\n this.context = context;\n if (!data) throw new Error(\"Event data is required\");\n if (typeof data !== \"object\" && !Array.isArray(data))\n throw new Error(\"Event data must be an object or array\");\n\n if (!Array.isArray(data)) this.data = [data];\n else this.data = data;\n }\n\n get organizationId() {\n return this.context.organizationId || \"*\";\n }\n\n get propertyId() {\n return this.context.propertyId || \"*\";\n }\n\n static get type() {\n return \"Event\";\n }\n\n static get exchange() {\n return amqpExchanges.DriverEvents.name;\n }\n\n static get entity() {\n return \"\";\n }\n\n build() {\n return { data: { ...this.data } };\n }\n\n get routingKey() {\n return `${this.organizationId}.${this.propertyId}.${this.constructor.entity}.${this.constructor.name}`;\n }\n}\n","import { amqpExchanges } from \"../defs\";\nimport { Event } from \"./event\";\n\nexport class ApplicationInUse extends Event {\n constructor(data = {}, context) {\n super(data, context);\n }\n\n static get name() {\n return \"ApplicationInUse\";\n }\n\n static get entity() {\n return \"app\";\n }\n\n static get exchange() {\n return amqpExchanges.AppEvents.name;\n }\n}\n","import { amqpExchanges } from \"../defs\";\nimport { Event } from \"./event\";\n\nexport class ApplicationOutOfUse extends Event {\n constructor(data = {}, context = {}) {\n super(data, context);\n }\n\n static get name() {\n return \"ApplicationOutOfUse\";\n }\n\n static get entity() {\n return \"app\";\n }\n\n static get exchange() {\n return amqpExchanges.AppEvents.name;\n }\n}\n","import { Event } from \"./event\";\n\nexport class EmailEvent extends Event {\n constructor(email, context) {\n super(email, context);\n }\n\n static get name() {\n return \"EmailEvent\";\n }\n\n static get entity() {\n return \"emailMessage\";\n }\n}\n","import { amqpExchanges } from \"../defs\";\nimport { Event } from \"./event\";\n\nexport class ReservationCheckedIn extends Event {\n constructor(reservation, context) {\n super(reservation, context);\n }\n\n static get name() {\n return \"ReservationCheckedIn\";\n }\n\n static get entity() {\n return \"reservation\";\n }\n\n static get exchange() {\n return amqpExchanges.AppEvents.name;\n }\n}\n","import { amqpExchanges } from \"../defs\";\nimport { Event } from \"./event\";\n\nexport class ReservationCheckedOut extends Event {\n constructor(reservation, context) {\n super(reservation, context);\n }\n\n static get name() {\n return \"ReservationCheckedOut\";\n }\n\n static get entity() {\n return \"reservation\";\n }\n\n static get exchange() {\n return amqpExchanges.AppEvents.name;\n }\n}\n","import { amqpExchanges } from \"../defs\";\nimport { Event } from \"./event\";\n\nexport class ReservationSpaceChanged extends Event {\n constructor(reservation, context) {\n super(reservation, context);\n }\n\n static get name() {\n return \"ReservationSpaceChanged\";\n }\n\n static get entity() {\n return \"reservation\";\n }\n\n static get exchange() {\n return amqpExchanges.AppEvents.name;\n }\n}\n","import { Event } from \"./event\";\n\nexport class SceneSet extends Event {\n constructor(scene, context) {\n super(scene, context);\n }\n\n static get name() {\n return \"SceneSet\";\n }\n\n static get entity() {\n return \"scene\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class ShortLinkCreated extends Event {\n constructor(shortLink, context) {\n super(shortLink, context);\n }\n\n static get name() {\n return \"ShortLinkCreated\";\n }\n\n static get entity() {\n return \"shortLink\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SMSEvent extends Event {\n constructor(sms, context) {\n super(sms, context);\n }\n\n static get name() {\n return \"SMSEvent\";\n }\n\n static get entity() {\n return \"smsMessage\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemAlarmUpdated extends Event {\n constructor(alarm, context) {\n super(alarm, context);\n }\n\n static get name() {\n return \"SystemAlarmUpdated\";\n }\n\n static get entity() {\n return \"alarm\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemCameraUpdated extends Event {\n constructor(camera, context) {\n super(camera, context);\n }\n\n static get name() {\n return \"SystemCameraUpdated\";\n }\n\n static get entity() {\n return \"camera\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemCategoryUpdated extends Event {\n constructor(category, context) {\n super(category, context);\n }\n\n static get name() {\n return \"SystemCategoryUpdated\";\n }\n\n static get entity() {\n return \"category\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemCourtesyUpdated extends Event {\n constructor(courtesy, context) {\n super(courtesy, context);\n }\n\n static get name() {\n return \"SystemCourtesyUpdated\";\n }\n\n static get entity() {\n return \"courtesy\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemCredentialUpdated extends Event {\n constructor(cred, context) {\n super(cred, context);\n }\n\n static get name() {\n return \"SystemCredentialUpdated\";\n }\n\n static get entity() {\n return \"credential\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemDimmerUpdated extends Event {\n constructor(dimmer, context) {\n super(dimmer, context);\n }\n\n static get name() {\n return \"SystemDimmerUpdated\";\n }\n\n static get entity() {\n return \"dimmer\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemEntityDeleted extends Event {\n constructor(data, context) {\n super(data, context);\n }\n\n static get name() {\n return \"SystemEntityDeleted\";\n }\n\n static get entity() {\n return \"entity\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemGatewayUpdated extends Event {\n constructor(gateway, context) {\n super(gateway, context);\n }\n\n static get name() {\n return \"SystemGatewayUpdated\";\n }\n\n static get entity() {\n return \"gateway\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemLockUpdated extends Event {\n constructor(lock, context) {\n super(lock, context);\n }\n\n static get name() {\n return \"SystemLockUpdated\";\n }\n\n static get entity() {\n return \"lock\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemMediaSourceUpdated extends Event {\n constructor(mediaSource, context) {\n super(mediaSource, context);\n }\n\n static get name() {\n return \"SystemMediaSourceUpdated\";\n }\n\n static get entity() {\n return \"mediaSource\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemMotionSensorUpdated extends Event {\n constructor(motion, context) {\n super(motion, context);\n }\n\n static get name() {\n return \"SystemMotionSensorUpdated\";\n }\n\n static get entity() {\n return \"motionSensor\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemOrganizationUpdated extends Event {\n constructor(organization, context) {\n super(organization, context);\n }\n\n static get name() {\n return \"SystemOrganizationUpdated\";\n }\n\n static get entity() {\n return \"organization\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemProductUpdated extends Event {\n constructor(product, context) {\n super(product, context);\n }\n\n static get name() {\n return \"SystemProductUpdated\";\n }\n\n static get entity() {\n return \"product\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemPropertyUpdated extends Event {\n constructor(property, context) {\n super(property, context);\n }\n\n static get name() {\n return \"SystemPropertyUpdated\";\n }\n\n static get entity() {\n return \"property\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemReservationUpdated extends Event {\n constructor(reservation, context) {\n super(reservation, context);\n }\n\n static get name() {\n return \"SystemReservationUpdated\";\n }\n\n static get entity() {\n return \"reservation\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemSpaceUpdate extends Event {\n constructor(space, context) {\n super(space, context);\n }\n\n static get name() {\n return \"SystemSpaceUpdated\";\n }\n\n static get entity() {\n return \"space\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemSwitchUpdated extends Event {\n constructor(_switch, context) {\n super(_switch, context);\n }\n\n static get name() {\n return \"SystemSwitchUpdated\";\n }\n\n static get entity() {\n return \"switch\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemThermostatUpdated extends Event {\n constructor(thermostat, context) {\n super(thermostat, context);\n }\n\n static get name() {\n return \"SystemThermostatUpdated\";\n }\n\n static get entity() {\n return \"thermostat\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemUserUpdated extends Event {\n constructor(user, context) {\n super(user, context);\n }\n\n static get name() {\n return \"SystemUserUpdated\";\n }\n\n static get entity() {\n return \"user\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemWindowCoveringUpdated extends Event {\n constructor(wc, context) {\n super(wc, context);\n }\n\n static get name() {\n return \"SystemWindowCoveringUpdated\";\n }\n\n static get entity() {\n return \"windowCovering\";\n }\n}\n"],"mappings":";;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACEO,IAAM,QAAN,MAAY;AAAA,EACjB,YAAY,MAAM,UAAU,CAAC,GAAG;AAC9B,SAAK,OAAO,CAAC;AACb,SAAK,UAAU;AACf,QAAI,CAAC,KAAM,OAAM,IAAI,MAAM,wBAAwB;AACnD,QAAI,OAAO,SAAS,YAAY,CAAC,MAAM,QAAQ,IAAI;AACjD,YAAM,IAAI,MAAM,uCAAuC;AAEzD,QAAI,CAAC,MAAM,QAAQ,IAAI,EAAG,MAAK,OAAO,CAAC,IAAI;AAAA,QACtC,MAAK,OAAO;AAAA,EACnB;AAAA,EAEA,IAAI,iBAAiB;AACnB,WAAO,KAAK,QAAQ,kBAAkB;AAAA,EACxC;AAAA,EAEA,IAAI,aAAa;AACf,WAAO,KAAK,QAAQ,cAAc;AAAA,EACpC;AAAA,EAEA,WAAW,OAAO;AAChB,WAAO;AAAA,EACT;AAAA,EAEA,WAAW,WAAW;AACpB,WAAO,cAAc,aAAa;AAAA,E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AAAA,EAEA,WAAW,OAAO;AAChB,WAAO;AAAA,EACT;AAAA,EAEA,WAAW,SAAS;AAClB,WAAO;AAAA,EACT;AACF;;;ACZO,IAAM,8BAAN,cAA0C,MAAM;AAAA,EACrD,YAAY,IAAI,SAAS;AACvB,UAAM,IAAI,OAAO;AAAA,EACnB;AAAA,EAEA,WAAW,OAAO;AAChB,WAAO;AAAA,EACT;AAAA,EAEA,WAAW,SAAS;AAClB,WAAO;AAAA,EACT;AACF;","names":[]}
@@ -1 +1 @@
1
- var e={Commands:{name:"kohost.commands",type:"headers",options:{durable:!0}},CommandResponses:{name:"kohost.commandResponses",type:"topic",options:{durable:!0}},DriverEvents:{name:"kohost.events.drivers",type:"topic",options:{durable:!0}},AppEvents:{name:"kohost.events.app",type:"topic",options:{durable:!0}},Direct:{name:"kohost.direct",type:"direct",options:{durable:!0}},dlx:{name:"kohost.dlx",type:"direct"}},o=["dimmer","switch","thermostat","lock","windowCovering","courtesy","alarm","camera","mediaSource","motionSensor","gateway"];export{e as amqpExchanges,o as deviceTypes};//# sourceMappingURL=chunk-KNSZIQXT.js.map
1
+ var amqpExchanges={Commands:{name:"kohost.commands",type:"headers",options:{durable:!0}},CommandResponses:{name:"kohost.commandResponses",type:"topic",options:{durable:!0}},DriverEvents:{name:"kohost.events.drivers",type:"topic",options:{durable:!0}},AppEvents:{name:"kohost.events.app",type:"topic",options:{durable:!0}},Direct:{name:"kohost.direct",type:"direct",options:{durable:!0}},dlx:{name:"kohost.dlx",type:"direct"}},deviceTypes=["dimmer","switch","thermostat","lock","windowCovering","courtesy","alarm","camera","mediaSource","motionSensor","gateway"];export{amqpExchanges,deviceTypes};//# sourceMappingURL=chunk-KNSZIQXT.js.map
@@ -1 +1 @@
1
- var e=class _RefreshTokenCommand{constructor(e,a={}){const t=_RefreshTokenCommand.params;let{data:r,query:s,headers:o}=e??{};void 0===r&&(r=null),void 0===s&&(s=null),void 0===o&&(o=null);let n=_RefreshTokenCommand.url;if(t&&r)for(const e of t){const a=":"+e;n=n.replace(a,r[e])}if(n.match(/:[a-zA-Z0-9]+/g)){const e=n.match(/:[a-zA-Z0-9]+/g);if(e){const a=e.map((e=>e.replace(":","")));throw new Error("Missing parameters: "+a.join(", "))}}this.url=n,this.data=r,this.query=s,this.headers=o,this.config={method:_RefreshTokenCommand.method,url:n,data:r,params:s,headers:o,...a}}static params=[];static url="/auth/refresh";static method="post"};export{e as RefreshTokenCommand};//# sourceMappingURL=chunk-W2G36LNI.js.map
1
+ var RefreshTokenCommand=class _RefreshTokenCommand{constructor(commandConfig,options={}){const pathParams=_RefreshTokenCommand.params;let{data:data,query:query,headers:headers}=commandConfig??{};void 0===data&&(data=null),void 0===query&&(query=null),void 0===headers&&(headers=null);let url=_RefreshTokenCommand.url;if(pathParams&&data)for(const param of pathParams){const urlParam=":"+param;url=url.replace(urlParam,data[param])}if(url.match(/:[a-zA-Z0-9]+/g)){const missingParams=url.match(/:[a-zA-Z0-9]+/g);if(missingParams){const missing=missingParams.map((param=>param.replace(":","")));throw new Error("Missing parameters: "+missing.join(", "))}}this.url=url,this.data=data,this.query=query,this.headers=headers,this.config={method:_RefreshTokenCommand.method,url:url,data:data,params:query,headers:headers,...options}}static params=[];static url="/auth/refresh";static method="post"};export{RefreshTokenCommand};//# sourceMappingURL=chunk-W2G36LNI.js.map