@kohost/api-client 4.0.5 → 4.0.6

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.
@@ -32,13 +32,13 @@ __export(events_exports, {
32
32
  SystemMotionSensorUpdated: () => SystemMotionSensorUpdated,
33
33
  SystemOrganizationUpdated: () => SystemOrganizationUpdated,
34
34
  SystemProductUpdated: () => SystemProductUpdated,
35
- SystemPropertyUpdate: () => SystemPropertyUpdate,
36
- SystemReservationUpdate: () => SystemReservationUpdate,
35
+ SystemPropertyUpdated: () => SystemPropertyUpdated,
36
+ SystemReservationUpdated: () => SystemReservationUpdated,
37
37
  SystemSpaceUpdate: () => SystemSpaceUpdate,
38
- SystemSwitchUpdate: () => SystemSwitchUpdate,
39
- SystemThermostatUpdate: () => SystemThermostatUpdate,
40
- SystemUserUpdate: () => SystemUserUpdate,
41
- SystemWindowCoveringUpdate: () => SystemWindowCoveringUpdate
38
+ SystemSwitchUpdated: () => SystemSwitchUpdated,
39
+ SystemThermostatUpdated: () => SystemThermostatUpdated,
40
+ SystemUserUpdated: () => SystemUserUpdated,
41
+ SystemWindowCoveringUpdated: () => SystemWindowCoveringUpdated
42
42
  });
43
43
 
44
44
  // src/events/event.js
@@ -380,7 +380,7 @@ var SystemProductUpdated = class extends Event {
380
380
  };
381
381
 
382
382
  // src/events/systemPropertyUpdated.js
383
- var SystemPropertyUpdate = class extends Event {
383
+ var SystemPropertyUpdated = class extends Event {
384
384
  constructor(property, context) {
385
385
  super(property, context);
386
386
  }
@@ -393,7 +393,7 @@ var SystemPropertyUpdate = class extends Event {
393
393
  };
394
394
 
395
395
  // src/events/systemReservationUpdated.js
396
- var SystemReservationUpdate = class extends Event {
396
+ var SystemReservationUpdated = class extends Event {
397
397
  constructor(reservation, context) {
398
398
  super(reservation, context);
399
399
  }
@@ -419,7 +419,7 @@ var SystemSpaceUpdate = class extends Event {
419
419
  };
420
420
 
421
421
  // src/events/systemSwitchUpdated.js
422
- var SystemSwitchUpdate = class extends Event {
422
+ var SystemSwitchUpdated = class extends Event {
423
423
  constructor(_switch, context) {
424
424
  super(_switch, context);
425
425
  }
@@ -432,7 +432,7 @@ var SystemSwitchUpdate = class extends Event {
432
432
  };
433
433
 
434
434
  // src/events/systemThermostatUpdated.js
435
- var SystemThermostatUpdate = class extends Event {
435
+ var SystemThermostatUpdated = class extends Event {
436
436
  constructor(thermostat, context) {
437
437
  super(thermostat, context);
438
438
  }
@@ -445,7 +445,7 @@ var SystemThermostatUpdate = class extends Event {
445
445
  };
446
446
 
447
447
  // src/events/systemUserUpdated.js
448
- var SystemUserUpdate = class extends Event {
448
+ var SystemUserUpdated = class extends Event {
449
449
  constructor(user, context) {
450
450
  super(user, context);
451
451
  }
@@ -458,7 +458,7 @@ var SystemUserUpdate = class extends Event {
458
458
  };
459
459
 
460
460
  // src/events/systemWindowCoveringUpdated.js
461
- var SystemWindowCoveringUpdate = class extends Event {
461
+ var SystemWindowCoveringUpdated = class extends Event {
462
462
  constructor(wc, context) {
463
463
  super(wc, context);
464
464
  }
@@ -494,13 +494,13 @@ export {
494
494
  SystemMotionSensorUpdated,
495
495
  SystemOrganizationUpdated,
496
496
  SystemProductUpdated,
497
- SystemPropertyUpdate,
498
- SystemReservationUpdate,
497
+ SystemPropertyUpdated,
498
+ SystemReservationUpdated,
499
499
  SystemSpaceUpdate,
500
- SystemSwitchUpdate,
501
- SystemThermostatUpdate,
502
- SystemUserUpdate,
503
- SystemWindowCoveringUpdate,
500
+ SystemSwitchUpdated,
501
+ SystemThermostatUpdated,
502
+ SystemUserUpdated,
503
+ SystemWindowCoveringUpdated,
504
504
  events_exports
505
505
  };
506
- //# sourceMappingURL=chunk-SHLRCTB4.js.map
506
+ //# sourceMappingURL=chunk-TBEXLKDH.js.map
@@ -0,0 +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-08T15:34:00.338Z\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,EAFnB,OAEmB;AAAA;AAAA;AAAA,EACjB,YAAY,MAAM,UAAU,CAAC,GAAG;AAC9B,SAAK,OAAO,CAAC;AACb,SAAK,UAAU;AACf,QAAI,CAAC,KAAM,OAAM,IAAI,MAAM,wBAAwB;AACnD,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,WA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ACzB,UAAM,MAAM,OAAO;AAAA,EACrB;AAAA,EAEA,WAAW,OAAO;AAChB,WAAO;AAAA,EACT;AAAA,EAEA,WAAW,SAAS;AAClB,WAAO;AAAA,EACT;AACF;;;ACZO,IAAM,8BAAN,cAA0C,MAAM;AAAA,EACrD,YAAY,IAAI,SAAS;AACvB,UAAM,IAAI,OAAO;AAAA,EACnB;AAAA,EAEA,WAAW,OAAO;AAChB,WAAO;AAAA,EACT;AAAA,EAEA,WAAW,SAAS;AAClB,WAAO;AAAA,EACT;AACF;","names":[]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/commands/index.js","../src/defs.js","../src/commands/command.js","../src/commands/checkInReservation.js","../src/commands/checkOutReservation.js","../src/commands/createImageUploadEndpoint.js","../src/commands/createShortLink.js","../src/commands/getCategories.js","../src/commands/getMobileKey.js","../src/commands/getProducts.js","../src/commands/getReservationSpaceCategoryAvailabilities.js","../src/commands/getReservations.js","../src/commands/getRooms.js","../src/commands/getUsers.js","../src/commands/ocrDocument.js","../src/commands/sellProducts.js","../src/commands/sendEmail.js","../src/commands/sendSMS.js","../src/commands/setAlarm.js","../src/commands/setCourtesy.js","../src/commands/setDimmer.js","../src/commands/setLock.js","../src/commands/setMedia.js","../src/commands/setScene.js","../src/commands/setSwitch.js","../src/commands/setThermostat.js","../src/commands/setWindowCovering.js","../src/commands/updateReservation.js","../src/commands/updateUser.js","../src/commands/uploadImage.js"],"sourcesContent":["// This file is auto-generated. Do not edit this file manually.\n// Generated on: 2025-01-08T00:43:35.863Z\n\nexport { CheckInReservation } from \"./checkInReservation\";\nexport { CheckOutReservation } from \"./checkOutReservation\";\nexport { Command } from \"./command\";\nexport { CreateImageUploadEndpoint } from \"./createImageUploadEndpoint\";\nexport { CreateShortLink } from \"./createShortLink\";\nexport { GetCategories } from \"./getCategories\";\nexport { GetMobileKey } from \"./getMobileKey\";\nexport { GetProducts } from \"./getProducts\";\nexport { GetReservationSpaceCategoryAvailabilities } from \"./getReservationSpaceCategoryAvailabilities\";\nexport { GetReservations } from \"./getReservations\";\nexport { GetRooms } from \"./getRooms\";\nexport { GetUsers } from \"./getUsers\";\nexport { OCRDocument } from \"./ocrDocument\";\nexport { SellProducts } from \"./sellProducts\";\nexport { SendEmail } from \"./sendEmail\";\nexport { SendSMS } from \"./sendSMS\";\nexport { SetAlarm } from \"./setAlarm\";\nexport { SetCourtesy } from \"./setCourtesy\";\nexport { SetDimmer } from \"./setDimmer\";\nexport { SetLock } from \"./setLock\";\nexport { SetMedia } from \"./setMedia\";\nexport { SetScene } from \"./setScene\";\nexport { SetSwitch } from \"./setSwitch\";\nexport { SetThermostat } from \"./setThermostat\";\nexport { SetWindowCovering } from \"./setWindowCovering\";\nexport { UpdateReservation } from \"./updateReservation\";\nexport { UpdateUser } from \"./updateUser\";\nexport { UploadImage } from \"./uploadImage\";","export const amqpExchanges = {\n // routes commands based on `command-name` header and in many cases `property-id` header\n Commands: {\n name: \"kohost.commands\",\n type: \"headers\",\n options: {\n durable: true,\n },\n },\n CommandResponses: {\n name: \"kohost.commandResponses\",\n type: \"topic\",\n options: {\n durable: true,\n },\n },\n // routes events based on routing keys\n DriverEvents: {\n name: \"kohost.events.drivers\",\n type: \"topic\",\n options: {\n durable: true,\n },\n },\n AppEvents: {\n name: \"kohost.events.app\",\n type: \"topic\",\n options: {\n durable: true,\n },\n },\n Direct: {\n name: \"kohost.direct\",\n type: \"direct\",\n options: {\n durable: true,\n },\n },\n // dead letter exchange\n dlx: {\n name: \"kohost.dlx\",\n type: \"direct\",\n },\n};\n\nexport const deviceTypes = [\n \"dimmer\",\n \"switch\",\n \"thermostat\",\n \"lock\",\n \"windowCovering\",\n \"courtesy\",\n \"alarm\",\n \"camera\",\n \"mediaSource\",\n \"motionSensor\",\n \"gateway\",\n];\n","import { amqpExchanges } from \"../defs\";\n\nconst Commands = amqpExchanges.Commands;\n\nexport class Command {\n constructor(data) {\n this.data = {};\n if (!data) throw new Error(\"Command data is required\");\n if (typeof data !== \"object\")\n throw new Error(\"Command data must be an object\");\n\n for (const key in data) {\n this.data[key] = data[key];\n }\n }\n\n get name() {\n throw new Error(\"Command name is required\");\n }\n\n static get type() {\n return \"Command\";\n }\n\n static get exchange() {\n return Commands.name;\n }\n\n build() {\n return { data: { ...this.data } };\n }\n}\n","import { Command } from \"./command\";\n\nexport class CheckInReservation extends Command {\n constructor({ id, ...rest }) {\n super({ id, ...rest });\n }\n\n get name() {\n return \"CheckInReservation\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class CheckOutReservation extends Command {\n constructor({ reservationId, userId, ...rest }) {\n super({ reservationId, userId, ...rest });\n }\n\n get name() {\n return \"CheckOutReservation\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class CreateImageUploadEndpoint extends Command {\n constructor({ id, expires, ...rest }) {\n super({ id, expires, ...rest });\n }\n\n get name() {\n return \"CreateImageUploadEndpoint\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class CreateShortLink extends Command {\n constructor({ title, destination, ...rest }) {\n super({ title, destination, ...rest });\n }\n\n get name() {\n return \"CreateShortLink\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class GetCategories extends Command {\n constructor({ id, ...rest }) {\n super({ id, ...rest });\n }\n\n get name() {\n return \"GetCategories\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class GetMobileKey extends Command {\n constructor({\n id,\n phone,\n beginDateTime,\n endDateTime,\n keyToReplace,\n ...rest\n }) {\n super({ id, phone, beginDateTime, endDateTime, keyToReplace, ...rest });\n }\n\n get name() {\n return \"GetMobileKey\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class GetProducts extends Command {\n constructor({ id, externalSystemId, ...rest }) {\n super({ id, externalSystemId, ...rest });\n }\n\n get name() {\n return \"GetProducts\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class GetReservationSpaceCategoryAvailabilities extends Command {\n constructor(options) {\n const { id, ...rest } = options;\n super({ id, ...rest });\n }\n\n get name() {\n return \"GetReservationSpaceCategoryAvailabilities\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class GetReservations extends Command {\n constructor(options) {\n const { id, startDate, endDate, status, ...rest } = options;\n super({ id, startDate, endDate, status, ...rest });\n }\n\n get name() {\n return \"GetReservations\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class GetRooms extends Command {\n constructor({\n id,\n types,\n categories,\n startDate,\n endDate,\n serviceStatus,\n housekeepingStatus,\n ...rest\n }) {\n super({\n id,\n types,\n categories,\n startDate,\n endDate,\n serviceStatus,\n housekeepingStatus,\n ...rest,\n });\n }\n\n get name() {\n return \"GetRooms\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class GetUsers extends Command {\n constructor({ id, ...rest }) {\n super({ id, ...rest });\n }\n\n get name() {\n return \"GetUsers\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class OCRDocument extends Command {\n constructor({ type, image, ...rest }) {\n super({ type, image, ...rest });\n }\n\n get name() {\n return \"OCRDocument\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SellProducts extends Command {\n constructor({ reservationId, userId, products, ...rest }) {\n super({ reservationId, userId, products, ...rest });\n }\n\n get name() {\n return \"SellProducts\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SendEmail extends Command {\n constructor({ text, html, to, from, subject, ...rest }) {\n super({ text, html, to, from, subject, ...rest });\n }\n\n get name() {\n return \"SendEmail\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SendSMS extends Command {\n constructor({ id, body, to, from, media, ...rest }) {\n super({ id, body, to, from, media, ...rest });\n }\n\n get name() {\n return \"SendSMS\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SetAlarm extends Command {\n constructor({ id, zones, areas, code, ...rest }) {\n super({ id, zones, areas, code, ...rest });\n }\n\n get name() {\n return \"SetAlarm\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SetCourtesy extends Command {\n constructor({ id, state, ...rest }) {\n super({ id, state, ...rest });\n }\n\n get name() {\n return \"SetCourtesy\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SetDimmer extends Command {\n constructor({ id, level, ...rest }) {\n super({ id, level, ...rest });\n }\n\n get name() {\n return \"SetDimmer\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SetLock extends Command {\n constructor({ id, state, ...rest }) {\n super({ id, state, ...rest });\n }\n\n get name() {\n return \"SetLock\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SetMedia extends Command {\n constructor({ id, command, ...rest }) {\n super({ id, command, ...rest });\n }\n\n get name() {\n return \"SetMedia\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SetScene extends Command {\n constructor({ id, devices, ...rest }) {\n super({ id, devices, ...rest });\n }\n\n get name() {\n return \"SetScene\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SetSwitch extends Command {\n constructor({ id, state, ...rest }) {\n super({ id, state, ...rest });\n }\n\n get name() {\n return \"SetSwitch\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SetThermostat extends Command {\n constructor({ id, setpoints, hvacMode, fanMode, ...rest }) {\n super({ id, setpoints, hvacMode, fanMode, ...rest });\n }\n\n get name() {\n return \"SetThermostat\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SetWindowCovering extends Command {\n constructor({ id, position, ...rest }) {\n super({ id, position, ...rest });\n }\n\n get name() {\n return \"SetWindowCovering\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class UpdateReservation extends Command {\n constructor({ id, ...rest }) {\n super({ id, ...rest });\n }\n\n get name() {\n return \"UpdateReservation\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class UpdateUser extends Command {\n constructor({\n id,\n email,\n phone,\n identification,\n address,\n note,\n nationality,\n file,\n payment,\n ...rest\n }) {\n super({\n id,\n email,\n phone,\n identification,\n address,\n note,\n nationality,\n file,\n payment,\n ...rest,\n });\n }\n\n get name() {\n return \"UpdateUser\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class UploadImage extends Command {\n constructor({ id, url, file, ...rest }) {\n super({ id, url, file, ...rest });\n }\n\n get name() {\n return \"UploadIm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AA,EACjC;AAAA,EAEA,IAAI,OAAO;AACT,WAAO;AAAA,EACT;AACF;;;ACRO,IAAM,oBAAN,cAAgC,QAAQ;AAAA,EAF/C,OAE+C;AAAA;AAAA;AAAA,EAC7C,YAAY,EAAE,IAAI,GAAG,KAAK,GAAG;AAC3B,UAAM,EAAE,IAAI,GAAG,KAAK,CAAC;AAAA,EACvB;AAAA,EAEA,IAAI,OAAO;AACT,WAAO;AAAA,EACT;AACF;;;ACRO,IAAM,aAAN,cAAyB,QAAQ;AAAA,EAFxC,OAEwC;AAAA;AAAA;AAAA,EACtC,YAAY;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACL,GAAG;AACD,UAAM;AAAA,MACJ;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,GAAG;AAAA,IACL,CAAC;AAAA,EACH;AAAA,EAEA,IAAI,OAAO;AACT,WAAO;AAAA,EACT;AACF;;;AC9BO,IAAM,cAAN,cAA0B,QAAQ;AAAA,EAFzC,OAEyC;AAAA;AAAA;AAAA,EACvC,YAAY,EAAE,IAAI,KAAK,MAAM,GAAG,KAAK,GAAG;AACtC,UAAM,EAAE,IAAI,KAAK,MAAM,GAAG,KAAK,CAAC;AAAA,EAClC;AAAA,EAEA,IAAI,OAAO;AACT,WAAO;AAAA,EACT;AACF;","names":[]}
1
+ {"version":3,"sources":["../src/commands/index.js","../src/defs.js","../src/commands/command.js","../src/commands/checkInReservation.js","../src/commands/checkOutReservation.js","../src/commands/createImageUploadEndpoint.js","../src/commands/createShortLink.js","../src/commands/getCategories.js","../src/commands/getMobileKey.js","../src/commands/getProducts.js","../src/commands/getReservationSpaceCategoryAvailabilities.js","../src/commands/getReservations.js","../src/commands/getRooms.js","../src/commands/getUsers.js","../src/commands/ocrDocument.js","../src/commands/sellProducts.js","../src/commands/sendEmail.js","../src/commands/sendSMS.js","../src/commands/setAlarm.js","../src/commands/setCourtesy.js","../src/commands/setDimmer.js","../src/commands/setLock.js","../src/commands/setMedia.js","../src/commands/setScene.js","../src/commands/setSwitch.js","../src/commands/setThermostat.js","../src/commands/setWindowCovering.js","../src/commands/updateReservation.js","../src/commands/updateUser.js","../src/commands/uploadImage.js"],"sourcesContent":["// This file is auto-generated. Do not edit this file manually.\n// Generated on: 2025-01-08T15:34:00.339Z\n\nexport { CheckInReservation } from \"./checkInReservation\";\nexport { CheckOutReservation } from \"./checkOutReservation\";\nexport { Command } from \"./command\";\nexport { CreateImageUploadEndpoint } from \"./createImageUploadEndpoint\";\nexport { CreateShortLink } from \"./createShortLink\";\nexport { GetCategories } from \"./getCategories\";\nexport { GetMobileKey } from \"./getMobileKey\";\nexport { GetProducts } from \"./getProducts\";\nexport { GetReservationSpaceCategoryAvailabilities } from \"./getReservationSpaceCategoryAvailabilities\";\nexport { GetReservations } from \"./getReservations\";\nexport { GetRooms } from \"./getRooms\";\nexport { GetUsers } from \"./getUsers\";\nexport { OCRDocument } from \"./ocrDocument\";\nexport { SellProducts } from \"./sellProducts\";\nexport { SendEmail } from \"./sendEmail\";\nexport { SendSMS } from \"./sendSMS\";\nexport { SetAlarm } from \"./setAlarm\";\nexport { SetCourtesy } from \"./setCourtesy\";\nexport { SetDimmer } from \"./setDimmer\";\nexport { SetLock } from \"./setLock\";\nexport { SetMedia } from \"./setMedia\";\nexport { SetScene } from \"./setScene\";\nexport { SetSwitch } from \"./setSwitch\";\nexport { SetThermostat } from \"./setThermostat\";\nexport { SetWindowCovering } from \"./setWindowCovering\";\nexport { UpdateReservation } from \"./updateReservation\";\nexport { UpdateUser } from \"./updateUser\";\nexport { UploadImage } from \"./uploadImage\";","export const amqpExchanges = {\n // routes commands based on `command-name` header and in many cases `property-id` header\n Commands: {\n name: \"kohost.commands\",\n type: \"headers\",\n options: {\n durable: true,\n },\n },\n CommandResponses: {\n name: \"kohost.commandResponses\",\n type: \"topic\",\n options: {\n durable: true,\n },\n },\n // routes events based on routing keys\n DriverEvents: {\n name: \"kohost.events.drivers\",\n type: \"topic\",\n options: {\n durable: true,\n },\n },\n AppEvents: {\n name: \"kohost.events.app\",\n type: \"topic\",\n options: {\n durable: true,\n },\n },\n Direct: {\n name: \"kohost.direct\",\n type: \"direct\",\n options: {\n durable: true,\n },\n },\n // dead letter exchange\n dlx: {\n name: \"kohost.dlx\",\n type: \"direct\",\n },\n};\n\nexport const deviceTypes = [\n \"dimmer\",\n \"switch\",\n \"thermostat\",\n \"lock\",\n \"windowCovering\",\n \"courtesy\",\n \"alarm\",\n \"camera\",\n \"mediaSource\",\n \"motionSensor\",\n \"gateway\",\n];\n","import { amqpExchanges } from \"../defs\";\n\nconst Commands = amqpExchanges.Commands;\n\nexport class Command {\n constructor(data) {\n this.data = {};\n if (!data) throw new Error(\"Command data is required\");\n if (typeof data !== \"object\")\n throw new Error(\"Command data must be an object\");\n\n for (const key in data) {\n this.data[key] = data[key];\n }\n }\n\n get name() {\n throw new Error(\"Command name is required\");\n }\n\n static get type() {\n return \"Command\";\n }\n\n static get exchange() {\n return Commands.name;\n }\n\n build() {\n return { data: { ...this.data } };\n }\n}\n","import { Command } from \"./command\";\n\nexport class CheckInReservation extends Command {\n constructor({ id, ...rest }) {\n super({ id, ...rest });\n }\n\n get name() {\n return \"CheckInReservation\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class CheckOutReservation extends Command {\n constructor({ reservationId, userId, ...rest }) {\n super({ reservationId, userId, ...rest });\n }\n\n get name() {\n return \"CheckOutReservation\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class CreateImageUploadEndpoint extends Command {\n constructor({ id, expires, ...rest }) {\n super({ id, expires, ...rest });\n }\n\n get name() {\n return \"CreateImageUploadEndpoint\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class CreateShortLink extends Command {\n constructor({ title, destination, ...rest }) {\n super({ title, destination, ...rest });\n }\n\n get name() {\n return \"CreateShortLink\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class GetCategories extends Command {\n constructor({ id, ...rest }) {\n super({ id, ...rest });\n }\n\n get name() {\n return \"GetCategories\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class GetMobileKey extends Command {\n constructor({\n id,\n phone,\n beginDateTime,\n endDateTime,\n keyToReplace,\n ...rest\n }) {\n super({ id, phone, beginDateTime, endDateTime, keyToReplace, ...rest });\n }\n\n get name() {\n return \"GetMobileKey\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class GetProducts extends Command {\n constructor({ id, externalSystemId, ...rest }) {\n super({ id, externalSystemId, ...rest });\n }\n\n get name() {\n return \"GetProducts\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class GetReservationSpaceCategoryAvailabilities extends Command {\n constructor(options) {\n const { id, ...rest } = options;\n super({ id, ...rest });\n }\n\n get name() {\n return \"GetReservationSpaceCategoryAvailabilities\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class GetReservations extends Command {\n constructor(options) {\n const { id, startDate, endDate, status, ...rest } = options;\n super({ id, startDate, endDate, status, ...rest });\n }\n\n get name() {\n return \"GetReservations\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class GetRooms extends Command {\n constructor({\n id,\n types,\n categories,\n startDate,\n endDate,\n serviceStatus,\n housekeepingStatus,\n ...rest\n }) {\n super({\n id,\n types,\n categories,\n startDate,\n endDate,\n serviceStatus,\n housekeepingStatus,\n ...rest,\n });\n }\n\n get name() {\n return \"GetRooms\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class GetUsers extends Command {\n constructor({ id, ...rest }) {\n super({ id, ...rest });\n }\n\n get name() {\n return \"GetUsers\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class OCRDocument extends Command {\n constructor({ type, image, ...rest }) {\n super({ type, image, ...rest });\n }\n\n get name() {\n return \"OCRDocument\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SellProducts extends Command {\n constructor({ reservationId, userId, products, ...rest }) {\n super({ reservationId, userId, products, ...rest });\n }\n\n get name() {\n return \"SellProducts\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SendEmail extends Command {\n constructor({ text, html, to, from, subject, ...rest }) {\n super({ text, html, to, from, subject, ...rest });\n }\n\n get name() {\n return \"SendEmail\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SendSMS extends Command {\n constructor({ id, body, to, from, media, ...rest }) {\n super({ id, body, to, from, media, ...rest });\n }\n\n get name() {\n return \"SendSMS\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SetAlarm extends Command {\n constructor({ id, zones, areas, code, ...rest }) {\n super({ id, zones, areas, code, ...rest });\n }\n\n get name() {\n return \"SetAlarm\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SetCourtesy extends Command {\n constructor({ id, state, ...rest }) {\n super({ id, state, ...rest });\n }\n\n get name() {\n return \"SetCourtesy\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SetDimmer extends Command {\n constructor({ id, level, ...rest }) {\n super({ id, level, ...rest });\n }\n\n get name() {\n return \"SetDimmer\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SetLock extends Command {\n constructor({ id, state, ...rest }) {\n super({ id, state, ...rest });\n }\n\n get name() {\n return \"SetLock\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SetMedia extends Command {\n constructor({ id, command, ...rest }) {\n super({ id, command, ...rest });\n }\n\n get name() {\n return \"SetMedia\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SetScene extends Command {\n constructor({ id, devices, ...rest }) {\n super({ id, devices, ...rest });\n }\n\n get name() {\n return \"SetScene\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SetSwitch extends Command {\n constructor({ id, state, ...rest }) {\n super({ id, state, ...rest });\n }\n\n get name() {\n return \"SetSwitch\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SetThermostat extends Command {\n constructor({ id, setpoints, hvacMode, fanMode, ...rest }) {\n super({ id, setpoints, hvacMode, fanMode, ...rest });\n }\n\n get name() {\n return \"SetThermostat\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SetWindowCovering extends Command {\n constructor({ id, position, ...rest }) {\n super({ id, position, ...rest });\n }\n\n get name() {\n return \"SetWindowCovering\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class UpdateReservation extends Command {\n constructor({ id, ...rest }) {\n super({ id, ...rest });\n }\n\n get name() {\n return \"UpdateReservation\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class UpdateUser extends Command {\n constructor({\n id,\n email,\n phone,\n identification,\n address,\n note,\n nationality,\n file,\n payment,\n ...rest\n }) {\n super({\n id,\n email,\n phone,\n identification,\n address,\n note,\n nationality,\n file,\n payment,\n ...rest,\n });\n }\n\n get name() {\n return \"UpdateUser\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class UploadImage extends Command {\n constructor({ id, url, file, ...rest }) {\n super({ id, url, file, ...rest });\n }\n\n get name() {\n return \"UploadImage\";\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,IAAM,gBAAgB;AAAA;AAAA,EAE3B,UAAU;AAAA,IACR,MAAM;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AAAA,MACP,SAAS;AAAA,IACX;AAAA,EACF;AAAA,EACA,kBAAkB;AAAA,IAChB,MAAM;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AAAA,MACP,SAAS;AAAA,IACX;AAAA,EACF;AAAA;AAAA,EAEA,cAAc;AAAA,IACZ,MAAM;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AAAA,MACP,SAAS;AAAA,IACX;AAAA,EACF;AAAA,EACA,WAAW;AAAA,IACT,M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AAA,IACL,CAAC;AAAA,EACH;AAAA,EAEA,IAAI,OAAO;AACT,WAAO;AAAA,EACT;AACF;;;AC9BO,IAAM,cAAN,cAA0B,QAAQ;AAAA,EAFzC,OAEyC;AAAA;AAAA;AAAA,EACvC,YAAY,EAAE,IAAI,KAAK,MAAM,GAAG,KAAK,GAAG;AACtC,UAAM,EAAE,IAAI,KAAK,MAAM,GAAG,KAAK,CAAC;AAAA,EAClC;AAAA,EAEA,IAAI,OAAO;AACT,WAAO;AAAA,EACT;AACF;","names":[]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/errors/index.js","../src/errors/appError.js","../src/errors/authenticationError.js","../src/errors/authorizationError.js","../src/errors/conflictError.js","../src/errors/deviceCommError.js","../src/errors/loginError.js","../src/errors/notFoundError.js","../src/errors/requestError.js","../src/errors/systemCommError.js","../src/errors/tokenExpiredError.js","../src/errors/unprocessableRequestError.js","../src/errors/validationError.js"],"sourcesContent":["// This file is auto-generated. Do not edit this file manually.\n// Generated on: 2025-01-08T00:43:35.862Z\n\nexport { AppError } from \"./appError\";\nexport { AuthenticationError } from \"./authenticationError\";\nexport { AuthorizationError } from \"./authorizationError\";\nexport { ConflictError } from \"./conflictError\";\nexport { DeviceCommError } from \"./deviceCommError\";\nexport { LoginError } from \"./loginError\";\nexport { NotFoundError } from \"./notFoundError\";\nexport { RequestError } from \"./requestError\";\nexport { SystemCommError } from \"./systemCommError\";\nexport { TokenExpiredError } from \"./tokenExpiredError\";\nexport { UnprocessableRequestError } from \"./unprocessableRequestError\";\nexport { ValidationError } from \"./validationError\";","export class AppError extends Error {\n constructor(message = \"Internal Server Error\", options) {\n super(message, options);\n this.type = this.constructor.name;\n this.statusCode = 500;\n this.name = \"AppError\";\n Object.setPrototypeOf(this, AppError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class AuthenticationError extends AppError {\n constructor(message = \"Authentication Error\", options = {}) {\n super(message, options);\n this.statusCode = 401;\n this.name = \"AuthenticationError\";\n Object.setPrototypeOf(this, AuthenticationError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class AuthorizationError extends AppError {\n constructor(message = \"Authorization Error\", options = {}) {\n super(message, options);\n this.statusCode = 403;\n this.name = \"AuthorizationError\";\n Object.setPrototypeOf(this, AuthorizationError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class ConflictError extends AppError {\n constructor(message = \"Bad Request\", options = {}) {\n super(message, options);\n this.statusCode = 409;\n this.name = \"ConflictError\";\n Object.setPrototypeOf(this, ConflictError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class DeviceCommError extends AppError {\n constructor(message = \"Device Communication Error\", options = {}) {\n super(message, options);\n this.statusCode = 503;\n this.name = \"DeviceCommError\";\n Object.setPrototypeOf(this, DeviceCommError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class LoginError extends AppError {\n constructor(message = \"Invalid Login information provided\", options = {}) {\n super(message, options);\n this.statusCode = 401;\n this.name = \"LoginError\";\n Object.setPrototypeOf(this, LoginError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class NotFoundError extends AppError {\n constructor(message = \"Resource Not Found\", options = {}) {\n super(message, options);\n this.statusCode = 404;\n this.name = \"NotFoundError\";\n Object.setPrototypeOf(this, NotFoundError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class RequestError extends AppError {\n constructor(message = \"Bad Request\", options = {}) {\n super(message, options);\n this.statusCode = 400;\n this.name = \"RequestError\";\n Object.setPrototypeOf(this, RequestError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class SystemCommError extends AppError {\n constructor(message = \"System Communication Error\", options = {}) {\n super(message, options);\n this.statusCode = 503;\n this.name = \"SystemCommError\";\n Object.setPrototypeOf(this, SystemCommError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class TokenExpiredError extends AppError {\n constructor(message = \"Token Expired\", options = {}) {\n super(message, options);\n this.statusCode = 401;\n this.name = \"TokenExpiredError\";\n Object.setPrototypeOf(this, TokenExpiredError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class UnprocessableRequestError extends AppError {\n constructor(message = \"Unprocessable Request Error\", options = {}) {\n super(message, options);\n this.statusCode = 422;\n this.name = \"UnprocessableRequestError\";\n Object.setPrototypeOf(this, UnprocessableRequestError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class ValidationError extends AppError {\n constructor(message = \"Validation Error\", options = {}) {\n super(message, options);\n this.statusCode = 400;\n this.name = \"ValidationError\";\n Object.setPrototypeOf(this, ValidationError.prototype);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,IAAM,WAAN,MAAM,kBAAiB,MAAM;AAAA,EAApC,OAAoC;AAAA;AAAA;AAAA,EAClC,YAAY,UAAU,yBAAyB,SAAS;AACtD,UAAM,SAAS,OAAO;AACtB,SAAK,OAAO,KAAK,YAAY;AAC7B,SAAK,aAAa;AAClB,SAAK,OAAO;AACZ,WAAO,eAAe,MAAM,UAAS,SAAS;AAAA,EAChD;AACF;;;ACNO,IAAM,sBAAN,MAAM,6BAA4B,SAAS;AAAA,EAFlD,OAEkD;AAAA;AAAA;AAAA,EAChD,YAAY,UAAU,wBAAwB,UAAU,CAAC,GAAG;AAC1D,UAAM,SAAS,OAAO;AACtB,SAAK,aAAa;AAClB,SAAK,OAAO;AACZ,WAAO,eAAe,MAAM,qBAAoB,SAAS;AAAA,EAC3D;AACF;;;ACPO,IAAM,qBAAN,MAAM,4BAA2B,SAAS;AAAA,EAFjD,OAEiD;AAAA;AAAA;AAAA,EAC/C,YAAY,UAAU,uBAAuB,UAAU,CAAC,GAAG;AACzD,UAAM,SAAS,OAAO;AACtB,SAAK,aAAa;AAClB,SAAK,OAAO;AACZ,WAAO,eAAe,MAAM,oBAAmB,SAAS;AAAA,EAC1D;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AAS;AAAA,EAF9C,OAE8C;AAAA;AAAA;AAAA,EAC5C,YAAY,UAAU,8BAA8B,UAAU,CAAC,GAAG;AAChE,UAAM,SAAS,OAAO;AACtB,SAAK,aAAa;AAClB,SAAK,OAAO;AACZ,WAAO,eAAe,MAAM,iBAAgB,SAAS;AAAA,EACvD;AACF;;;ACPO,IAAM,oBAAN,MAAM,2BAA0B,SAAS;AAAA,EAFhD,OAEgD;AAAA;AAAA;AAAA,EAC9C,YAAY,UAAU,iBAAiB,UAAU,CAAC,GAAG;AACnD,UAAM,SAAS,OAAO;AACtB,SAAK,aAAa;AAClB,SAAK,OAAO;AACZ,WAAO,eAAe,MAAM,mBAAkB,SAAS;AAAA,EACzD;AACF;;;ACPO,IAAM,4BAAN,MAAM,mCAAkC,SAAS;AAAA,EAFxD,OAEwD;AAAA;AAAA;AAAA,EACtD,YAAY,UAAU,+BAA+B,UAAU,CAAC,GAAG;AACjE,UAAM,SAAS,OAAO;AACtB,SAAK,aAAa;AAClB,SAAK,OAAO;AACZ,WAAO,eAAe,MAAM,2BAA0B,SAAS;AAAA,EACjE;AACF;;;ACPO,IAAM,kBAAN,MAAM,yBAAwB,SAAS;AAAA,EAF9C,OAE8C;AAAA;AAAA;AAAA,EAC5C,YAAY,UAAU,oBAAoB,UAAU,CAAC,GAAG;AACtD,UAAM,SAAS,OAAO;AACtB,SAAK,aAAa;AAClB,SAAK,OAAO;AACZ,WAAO,eAAe,MAAM,iBAAgB,SAAS;AAAA,EACvD;AACF;","names":[]}
1
+ {"version":3,"sources":["../src/errors/index.js","../src/errors/appError.js","../src/errors/authenticationError.js","../src/errors/authorizationError.js","../src/errors/conflictError.js","../src/errors/deviceCommError.js","../src/errors/loginError.js","../src/errors/notFoundError.js","../src/errors/requestError.js","../src/errors/systemCommError.js","../src/errors/tokenExpiredError.js","../src/errors/unprocessableRequestError.js","../src/errors/validationError.js"],"sourcesContent":["// This file is auto-generated. Do not edit this file manually.\n// Generated on: 2025-01-08T15:34:00.338Z\n\nexport { AppError } from \"./appError\";\nexport { AuthenticationError } from \"./authenticationError\";\nexport { AuthorizationError } from \"./authorizationError\";\nexport { ConflictError } from \"./conflictError\";\nexport { DeviceCommError } from \"./deviceCommError\";\nexport { LoginError } from \"./loginError\";\nexport { NotFoundError } from \"./notFoundError\";\nexport { RequestError } from \"./requestError\";\nexport { SystemCommError } from \"./systemCommError\";\nexport { TokenExpiredError } from \"./tokenExpiredError\";\nexport { UnprocessableRequestError } from \"./unprocessableRequestError\";\nexport { ValidationError } from \"./validationError\";","export class AppError extends Error {\n constructor(message = \"Internal Server Error\", options) {\n super(message, options);\n this.type = this.constructor.name;\n this.statusCode = 500;\n this.name = \"AppError\";\n Object.setPrototypeOf(this, AppError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class AuthenticationError extends AppError {\n constructor(message = \"Authentication Error\", options = {}) {\n super(message, options);\n this.statusCode = 401;\n this.name = \"AuthenticationError\";\n Object.setPrototypeOf(this, AuthenticationError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class AuthorizationError extends AppError {\n constructor(message = \"Authorization Error\", options = {}) {\n super(message, options);\n this.statusCode = 403;\n this.name = \"AuthorizationError\";\n Object.setPrototypeOf(this, AuthorizationError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class ConflictError extends AppError {\n constructor(message = \"Bad Request\", options = {}) {\n super(message, options);\n this.statusCode = 409;\n this.name = \"ConflictError\";\n Object.setPrototypeOf(this, ConflictError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class DeviceCommError extends AppError {\n constructor(message = \"Device Communication Error\", options = {}) {\n super(message, options);\n this.statusCode = 503;\n this.name = \"DeviceCommError\";\n Object.setPrototypeOf(this, DeviceCommError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class LoginError extends AppError {\n constructor(message = \"Invalid Login information provided\", options = {}) {\n super(message, options);\n this.statusCode = 401;\n this.name = \"LoginError\";\n Object.setPrototypeOf(this, LoginError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class NotFoundError extends AppError {\n constructor(message = \"Resource Not Found\", options = {}) {\n super(message, options);\n this.statusCode = 404;\n this.name = \"NotFoundError\";\n Object.setPrototypeOf(this, NotFoundError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class RequestError extends AppError {\n constructor(message = \"Bad Request\", options = {}) {\n super(message, options);\n this.statusCode = 400;\n this.name = \"RequestError\";\n Object.setPrototypeOf(this, RequestError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class SystemCommError extends AppError {\n constructor(message = \"System Communication Error\", options = {}) {\n super(message, options);\n this.statusCode = 503;\n this.name = \"SystemCommError\";\n Object.setPrototypeOf(this, SystemCommError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class TokenExpiredError extends AppError {\n constructor(message = \"Token Expired\", options = {}) {\n super(message, options);\n this.statusCode = 401;\n this.name = \"TokenExpiredError\";\n Object.setPrototypeOf(this, TokenExpiredError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class UnprocessableRequestError extends AppError {\n constructor(message = \"Unprocessable Request Error\", options = {}) {\n super(message, options);\n this.statusCode = 422;\n this.name = \"UnprocessableRequestError\";\n Object.setPrototypeOf(this, UnprocessableRequestError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class ValidationError extends AppError {\n constructor(message = \"Validation Error\", options = {}) {\n super(message, options);\n this.statusCode = 400;\n this.name = \"ValidationError\";\n Object.setPrototypeOf(this, ValidationError.prototype);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,IAAM,WAAN,MAAM,kBAAiB,MAAM;AAAA,EAApC,OAAoC;AAAA;AAAA;AAAA,EAClC,YAAY,UAAU,yBAAyB,SAAS;AACtD,UAAM,SAAS,OAAO;AACtB,SA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AAO,eAAe,MAAM,2BAA0B,SAAS;AAAA,EACjE;AACF;;;ACPO,IAAM,kBAAN,MAAM,yBAAwB,SAAS;AAAA,EAF9C,OAE8C;AAAA;AAAA;AAAA,EAC5C,YAAY,UAAU,oBAAoB,UAAU,CAAC,GAAG;AACtD,UAAM,SAAS,OAAO;AACtB,SAAK,aAAa;AAClB,SAAK,OAAO;AACZ,WAAO,eAAe,MAAM,iBAAgB,SAAS;AAAA,EACvD;AACF;","names":[]}
package/dist/events.cjs CHANGED
@@ -43,13 +43,13 @@ __export(events_exports, {
43
43
  SystemMotionSensorUpdated: () => SystemMotionSensorUpdated,
44
44
  SystemOrganizationUpdated: () => SystemOrganizationUpdated,
45
45
  SystemProductUpdated: () => SystemProductUpdated,
46
- SystemPropertyUpdate: () => SystemPropertyUpdate,
47
- SystemReservationUpdate: () => SystemReservationUpdate,
46
+ SystemPropertyUpdated: () => SystemPropertyUpdated,
47
+ SystemReservationUpdated: () => SystemReservationUpdated,
48
48
  SystemSpaceUpdate: () => SystemSpaceUpdate,
49
- SystemSwitchUpdate: () => SystemSwitchUpdate,
50
- SystemThermostatUpdate: () => SystemThermostatUpdate,
51
- SystemUserUpdate: () => SystemUserUpdate,
52
- SystemWindowCoveringUpdate: () => SystemWindowCoveringUpdate
49
+ SystemSwitchUpdated: () => SystemSwitchUpdated,
50
+ SystemThermostatUpdated: () => SystemThermostatUpdated,
51
+ SystemUserUpdated: () => SystemUserUpdated,
52
+ SystemWindowCoveringUpdated: () => SystemWindowCoveringUpdated
53
53
  });
54
54
  module.exports = __toCommonJS(events_exports);
55
55
 
@@ -438,7 +438,7 @@ var SystemProductUpdated = class extends Event {
438
438
  };
439
439
 
440
440
  // src/events/systemPropertyUpdated.js
441
- var SystemPropertyUpdate = class extends Event {
441
+ var SystemPropertyUpdated = class extends Event {
442
442
  constructor(property, context) {
443
443
  super(property, context);
444
444
  }
@@ -451,7 +451,7 @@ var SystemPropertyUpdate = class extends Event {
451
451
  };
452
452
 
453
453
  // src/events/systemReservationUpdated.js
454
- var SystemReservationUpdate = class extends Event {
454
+ var SystemReservationUpdated = class extends Event {
455
455
  constructor(reservation, context) {
456
456
  super(reservation, context);
457
457
  }
@@ -477,7 +477,7 @@ var SystemSpaceUpdate = class extends Event {
477
477
  };
478
478
 
479
479
  // src/events/systemSwitchUpdated.js
480
- var SystemSwitchUpdate = class extends Event {
480
+ var SystemSwitchUpdated = class extends Event {
481
481
  constructor(_switch, context) {
482
482
  super(_switch, context);
483
483
  }
@@ -490,7 +490,7 @@ var SystemSwitchUpdate = class extends Event {
490
490
  };
491
491
 
492
492
  // src/events/systemThermostatUpdated.js
493
- var SystemThermostatUpdate = class extends Event {
493
+ var SystemThermostatUpdated = class extends Event {
494
494
  constructor(thermostat, context) {
495
495
  super(thermostat, context);
496
496
  }
@@ -503,7 +503,7 @@ var SystemThermostatUpdate = class extends Event {
503
503
  };
504
504
 
505
505
  // src/events/systemUserUpdated.js
506
- var SystemUserUpdate = class extends Event {
506
+ var SystemUserUpdated = class extends Event {
507
507
  constructor(user, context) {
508
508
  super(user, context);
509
509
  }
@@ -516,7 +516,7 @@ var SystemUserUpdate = class extends Event {
516
516
  };
517
517
 
518
518
  // src/events/systemWindowCoveringUpdated.js
519
- var SystemWindowCoveringUpdate = class extends Event {
519
+ var SystemWindowCoveringUpdated = class extends Event {
520
520
  constructor(wc, context) {
521
521
  super(wc, context);
522
522
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/events/index.js","../src/defs.js","../src/events/event.js","../src/events/applicationInUse.js","../src/events/applicationOutOfUse.js","../src/events/emailEvent.js","../src/events/reservationCheckedIn.js","../src/events/reservationCheckedOut.js","../src/events/reservationSpaceChanged.js","../src/events/sceneSet.js","../src/events/shortLinkCreated.js","../src/events/smsEvent.js","../src/events/systemAlarmUpdated.js","../src/events/systemCameraUpdated.js","../src/events/systemCategoryUpdated.js","../src/events/systemCourtesyUpdated.js","../src/events/systemCredentialUpdated.js","../src/events/systemDimmerUpdated.js","../src/events/systemEntityDeleted.js","../src/events/systemGatewayUpdated.js","../src/events/systemLockUpdated.js","../src/events/systemMediaSourceUpdated.js","../src/events/systemMotionSensorUpdated.js","../src/events/systemOrganizationUpdated.js","../src/events/systemProductUpdated.js","../src/events/systemPropertyUpdated.js","../src/events/systemReservationUpdated.js","../src/events/systemSpaceUpdated.js","../src/events/systemSwitchUpdated.js","../src/events/systemThermostatUpdated.js","../src/events/systemUserUpdated.js","../src/events/systemWindowCoveringUpdated.js"],"sourcesContent":["// This file is auto-generated. Do not edit this file manually.\n// Generated on: 2025-01-08T00:43:35.862Z\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 { SystemPropertyUpdate } from \"./systemPropertyUpdated\";\nexport { SystemReservationUpdate } from \"./systemReservationUpdated\";\nexport { SystemSpaceUpdate } from \"./systemSpaceUpdated\";\nexport { SystemSwitchUpdate } from \"./systemSwitchUpdated\";\nexport { SystemThermostatUpdate } from \"./systemThermostatUpdated\";\nexport { SystemUserUpdate } from \"./systemUserUpdated\";\nexport { SystemWindowCoveringUpdate } from \"./systemWindowCoveringUpdated\";","export const amqpExchanges = {\n // routes commands based on `command-name` header and in many cases `property-id` header\n Commands: {\n name: \"kohost.commands\",\n type: \"headers\",\n options: {\n durable: true,\n },\n },\n CommandResponses: {\n name: \"kohost.commandResponses\",\n type: \"topic\",\n options: {\n durable: true,\n },\n },\n // routes events based on routing keys\n DriverEvents: {\n name: \"kohost.events.drivers\",\n type: \"topic\",\n options: {\n durable: true,\n },\n },\n AppEvents: {\n name: \"kohost.events.app\",\n type: \"topic\",\n options: {\n durable: true,\n },\n },\n Direct: {\n name: \"kohost.direct\",\n type: \"direct\",\n options: {\n durable: true,\n },\n },\n // dead letter exchange\n dlx: {\n name: \"kohost.dlx\",\n type: \"direct\",\n },\n};\n\nexport const deviceTypes = [\n \"dimmer\",\n \"switch\",\n \"thermostat\",\n \"lock\",\n \"windowCovering\",\n \"courtesy\",\n \"alarm\",\n \"camera\",\n \"mediaSource\",\n \"motionSensor\",\n \"gateway\",\n];\n","import { amqpExchanges } from \"../defs\";\n\nexport class Event {\n constructor(data, context = {}) {\n this.data = [];\n this.context = context;\n if (!data) throw new Error(\"Event data is required\");\n if (typeof data !== \"object\" && !Array.isArray(data))\n throw new Error(\"Event data must be an object or array\");\n\n if (!Array.isArray(data)) this.data = [data];\n else this.data = data;\n }\n\n get organizationId() {\n return this.context.organizationId || \"*\";\n }\n\n get propertyId() {\n return this.context.propertyId || \"*\";\n }\n\n static get type() {\n return \"Event\";\n }\n\n static get exchange() {\n return amqpExchanges.DriverEvents.name;\n }\n\n static get entity() {\n return \"\";\n }\n\n build() {\n return { data: { ...this.data } };\n }\n\n get routingKey() {\n return `${this.organizationId}.${this.propertyId}.${this.constructor.entity}.${this.constructor.name}`;\n }\n}\n","import { amqpExchanges } from \"../defs\";\nimport { Event } from \"./event\";\n\nexport class ApplicationInUse extends Event {\n constructor(data = {}, context) {\n super(data, context);\n }\n\n static get name() {\n return \"ApplicationInUse\";\n }\n\n static get entity() {\n return \"app\";\n }\n\n static get exchange() {\n return amqpExchanges.AppEvents.name;\n }\n}\n","import { amqpExchanges } from \"../defs\";\nimport { Event } from \"./event\";\n\nexport class ApplicationOutOfUse extends Event {\n constructor(data = {}, context = {}) {\n super(data, context);\n }\n\n static get name() {\n return \"ApplicationOutOfUse\";\n }\n\n static get entity() {\n return \"app\";\n }\n\n static get exchange() {\n return amqpExchanges.AppEvents.name;\n }\n}\n","import { Event } from \"./event\";\n\nexport class EmailEvent extends Event {\n constructor(email, context) {\n super(email, context);\n }\n\n static get name() {\n return \"EmailEvent\";\n }\n\n static get entity() {\n return \"emailMessage\";\n }\n}\n","import { amqpExchanges } from \"../defs\";\nimport { Event } from \"./event\";\n\nexport class ReservationCheckedIn extends Event {\n constructor(reservation, context) {\n super(reservation, context);\n }\n\n static get name() {\n return \"ReservationCheckedIn\";\n }\n\n static get entity() {\n return \"reservation\";\n }\n\n static get exchange() {\n return amqpExchanges.AppEvents.name;\n }\n}\n","import { amqpExchanges } from \"../defs\";\nimport { Event } from \"./event\";\n\nexport class ReservationCheckedOut extends Event {\n constructor(reservation, context) {\n super(reservation, context);\n }\n\n static get name() {\n return \"ReservationCheckedOut\";\n }\n\n static get entity() {\n return \"reservation\";\n }\n\n static get exchange() {\n return amqpExchanges.AppEvents.name;\n }\n}\n","import { amqpExchanges } from \"../defs\";\nimport { Event } from \"./event\";\n\nexport class ReservationSpaceChanged extends Event {\n constructor(reservation, context) {\n super(reservation, context);\n }\n\n static get name() {\n return \"ReservationSpaceChanged\";\n }\n\n static get entity() {\n return \"reservation\";\n }\n\n static get exchange() {\n return amqpExchanges.AppEvents.name;\n }\n}\n","import { Event } from \"./event\";\n\nexport class SceneSet extends Event {\n constructor(scene, context) {\n super(scene, context);\n }\n\n static get name() {\n return \"SceneSet\";\n }\n\n static get entity() {\n return \"scene\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class ShortLinkCreated extends Event {\n constructor(shortLink, context) {\n super(shortLink, context);\n }\n\n static get name() {\n return \"ShortLinkCreated\";\n }\n\n static get entity() {\n return \"shortLink\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SMSEvent extends Event {\n constructor(sms, context) {\n super(sms, context);\n }\n\n static get name() {\n return \"SMSEvent\";\n }\n\n static get entity() {\n return \"smsMessage\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemAlarmUpdated extends Event {\n constructor(alarm, context) {\n super(alarm, context);\n }\n\n static get name() {\n return \"SystemAlarmUpdated\";\n }\n\n static get entity() {\n return \"alarm\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemCameraUpdated extends Event {\n constructor(camera, context) {\n super(camera, context);\n }\n\n static get name() {\n return \"SystemCameraUpdated\";\n }\n\n static get entity() {\n return \"camera\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemCategoryUpdated extends Event {\n constructor(category, context) {\n super(category, context);\n }\n\n static get name() {\n return \"SystemCategoryUpdated\";\n }\n\n static get entity() {\n return \"category\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemCourtesyUpdated extends Event {\n constructor(courtesy, context) {\n super(courtesy, context);\n }\n\n static get name() {\n return \"SystemCourtesyUpdated\";\n }\n\n static get entity() {\n return \"courtesy\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemCredentialUpdated extends Event {\n constructor(cred, context) {\n super(cred, context);\n }\n\n static get name() {\n return \"SystemCredentialUpdated\";\n }\n\n static get entity() {\n return \"credential\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemDimmerUpdated extends Event {\n constructor(dimmer, context) {\n super(dimmer, context);\n }\n\n static get name() {\n return \"SystemDimmerUpdated\";\n }\n\n static get entity() {\n return \"dimmer\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemEntityDeleted extends Event {\n constructor(data, context) {\n super(data, context);\n }\n\n static get name() {\n return \"SystemEntityDeleted\";\n }\n\n static get entity() {\n return \"entity\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemGatewayUpdated extends Event {\n constructor(gateway, context) {\n super(gateway, context);\n }\n\n static get name() {\n return \"SystemGatewayUpdated\";\n }\n\n static get entity() {\n return \"gateway\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemLockUpdated extends Event {\n constructor(lock, context) {\n super(lock, context);\n }\n\n static get name() {\n return \"SystemLockUpdated\";\n }\n\n static get entity() {\n return \"lock\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemMediaSourceUpdated extends Event {\n constructor(mediaSource, context) {\n super(mediaSource, context);\n }\n\n static get name() {\n return \"SystemMediaSourceUpdated\";\n }\n\n static get entity() {\n return \"mediaSource\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemMotionSensorUpdated extends Event {\n constructor(motion, context) {\n super(motion, context);\n }\n\n static get name() {\n return \"SystemMotionSensorUpdated\";\n }\n\n static get entity() {\n return \"motionSensor\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemOrganizationUpdated extends Event {\n constructor(organization, context) {\n super(organization, context);\n }\n\n static get name() {\n return \"SystemOrganizationUpdated\";\n }\n\n static get entity() {\n return \"organization\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemProductUpdated extends Event {\n constructor(product, context) {\n super(product, context);\n }\n\n static get name() {\n return \"SystemProductUpdated\";\n }\n\n static get entity() {\n return \"product\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemPropertyUpdate 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 SystemReservationUpdate 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 SystemSwitchUpdate 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 SystemThermostatUpdate 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 SystemUserUpdate 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 SystemWindowCoveringUpdate extends Event {\n constructor(wc, context) {\n super(wc, context);\n }\n\n static get name() {\n return \"SystemWindowCoveringUpdated\";\n }\n\n static get entity() {\n return \"windowCovering\";\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,IAAM,gBAAgB;AAAA;AAAA,EAE3B,UAAU;AAAA,IACR,MAAM;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AAAA,MACP,SAAS;AAAA,IACX;AAAA,EACF;AAAA,EACA,kBAAkB;AAAA,IAChB,MAAM;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AA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,UAAM,IAAI,OAAO;AAAA,EACnB;AAAA,EAEA,WAAW,OAAO;AAChB,WAAO;AAAA,EACT;AAAA,EAEA,WAAW,SAAS;AAClB,WAAO;AAAA,EACT;AACF;","names":[]}
1
+ {"version":3,"sources":["../src/events/index.js","../src/defs.js","../src/events/event.js","../src/events/applicationInUse.js","../src/events/applicationOutOfUse.js","../src/events/emailEvent.js","../src/events/reservationCheckedIn.js","../src/events/reservationCheckedOut.js","../src/events/reservationSpaceChanged.js","../src/events/sceneSet.js","../src/events/shortLinkCreated.js","../src/events/smsEvent.js","../src/events/systemAlarmUpdated.js","../src/events/systemCameraUpdated.js","../src/events/systemCategoryUpdated.js","../src/events/systemCourtesyUpdated.js","../src/events/systemCredentialUpdated.js","../src/events/systemDimmerUpdated.js","../src/events/systemEntityDeleted.js","../src/events/systemGatewayUpdated.js","../src/events/systemLockUpdated.js","../src/events/systemMediaSourceUpdated.js","../src/events/systemMotionSensorUpdated.js","../src/events/systemOrganizationUpdated.js","../src/events/systemProductUpdated.js","../src/events/systemPropertyUpdated.js","../src/events/systemReservationUpdated.js","../src/events/systemSpaceUpdated.js","../src/events/systemSwitchUpdated.js","../src/events/systemThermostatUpdated.js","../src/events/systemUserUpdated.js","../src/events/systemWindowCoveringUpdated.js"],"sourcesContent":["// This file is auto-generated. Do not edit this file manually.\n// Generated on: 2025-01-08T15:34:00.338Z\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\";","export const amqpExchanges = {\n // routes commands based on `command-name` header and in many cases `property-id` header\n Commands: {\n name: \"kohost.commands\",\n type: \"headers\",\n options: {\n durable: true,\n },\n },\n CommandResponses: {\n name: \"kohost.commandResponses\",\n type: \"topic\",\n options: {\n durable: true,\n },\n },\n // routes events based on routing keys\n DriverEvents: {\n name: \"kohost.events.drivers\",\n type: \"topic\",\n options: {\n durable: true,\n },\n },\n AppEvents: {\n name: \"kohost.events.app\",\n type: \"topic\",\n options: {\n durable: true,\n },\n },\n Direct: {\n name: \"kohost.direct\",\n type: \"direct\",\n options: {\n durable: true,\n },\n },\n // dead letter exchange\n dlx: {\n name: \"kohost.dlx\",\n type: \"direct\",\n },\n};\n\nexport const deviceTypes = [\n \"dimmer\",\n \"switch\",\n \"thermostat\",\n \"lock\",\n \"windowCovering\",\n \"courtesy\",\n \"alarm\",\n \"camera\",\n \"mediaSource\",\n \"motionSensor\",\n \"gateway\",\n];\n","import { amqpExchanges } from \"../defs\";\n\nexport class Event {\n constructor(data, context = {}) {\n this.data = [];\n this.context = context;\n if (!data) throw new Error(\"Event data is required\");\n if (typeof data !== \"object\" && !Array.isArray(data))\n throw new Error(\"Event data must be an object or array\");\n\n if (!Array.isArray(data)) this.data = [data];\n else this.data = data;\n }\n\n get organizationId() {\n return this.context.organizationId || \"*\";\n }\n\n get propertyId() {\n return this.context.propertyId || \"*\";\n }\n\n static get type() {\n return \"Event\";\n }\n\n static get exchange() {\n return amqpExchanges.DriverEvents.name;\n }\n\n static get entity() {\n return \"\";\n }\n\n build() {\n return { data: { ...this.data } };\n }\n\n get routingKey() {\n return `${this.organizationId}.${this.propertyId}.${this.constructor.entity}.${this.constructor.name}`;\n }\n}\n","import { amqpExchanges } from \"../defs\";\nimport { Event } from \"./event\";\n\nexport class ApplicationInUse extends Event {\n constructor(data = {}, context) {\n super(data, context);\n }\n\n static get name() {\n return \"ApplicationInUse\";\n }\n\n static get entity() {\n return \"app\";\n }\n\n static get exchange() {\n return amqpExchanges.AppEvents.name;\n }\n}\n","import { amqpExchanges } from \"../defs\";\nimport { Event } from \"./event\";\n\nexport class ApplicationOutOfUse extends Event {\n constructor(data = {}, context = {}) {\n super(data, context);\n }\n\n static get name() {\n return \"ApplicationOutOfUse\";\n }\n\n static get entity() {\n return \"app\";\n }\n\n static get exchange() {\n return amqpExchanges.AppEvents.name;\n }\n}\n","import { Event } from \"./event\";\n\nexport class EmailEvent extends Event {\n constructor(email, context) {\n super(email, context);\n }\n\n static get name() {\n return \"EmailEvent\";\n }\n\n static get entity() {\n return \"emailMessage\";\n }\n}\n","import { amqpExchanges } from \"../defs\";\nimport { Event } from \"./event\";\n\nexport class ReservationCheckedIn extends Event {\n constructor(reservation, context) {\n super(reservation, context);\n }\n\n static get name() {\n return \"ReservationCheckedIn\";\n }\n\n static get entity() {\n return \"reservation\";\n }\n\n static get exchange() {\n return amqpExchanges.AppEvents.name;\n }\n}\n","import { amqpExchanges } from \"../defs\";\nimport { Event } from \"./event\";\n\nexport class ReservationCheckedOut extends Event {\n constructor(reservation, context) {\n super(reservation, context);\n }\n\n static get name() {\n return \"ReservationCheckedOut\";\n }\n\n static get entity() {\n return \"reservation\";\n }\n\n static get exchange() {\n return amqpExchanges.AppEvents.name;\n }\n}\n","import { amqpExchanges } from \"../defs\";\nimport { Event } from \"./event\";\n\nexport class ReservationSpaceChanged extends Event {\n constructor(reservation, context) {\n super(reservation, context);\n }\n\n static get name() {\n return \"ReservationSpaceChanged\";\n }\n\n static get entity() {\n return \"reservation\";\n }\n\n static get exchange() {\n return amqpExchanges.AppEvents.name;\n }\n}\n","import { Event } from \"./event\";\n\nexport class SceneSet extends Event {\n constructor(scene, context) {\n super(scene, context);\n }\n\n static get name() {\n return \"SceneSet\";\n }\n\n static get entity() {\n return \"scene\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class ShortLinkCreated extends Event {\n constructor(shortLink, context) {\n super(shortLink, context);\n }\n\n static get name() {\n return \"ShortLinkCreated\";\n }\n\n static get entity() {\n return \"shortLink\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SMSEvent extends Event {\n constructor(sms, context) {\n super(sms, context);\n }\n\n static get name() {\n return \"SMSEvent\";\n }\n\n static get entity() {\n return \"smsMessage\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemAlarmUpdated extends Event {\n constructor(alarm, context) {\n super(alarm, context);\n }\n\n static get name() {\n return \"SystemAlarmUpdated\";\n }\n\n static get entity() {\n return \"alarm\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemCameraUpdated extends Event {\n constructor(camera, context) {\n super(camera, context);\n }\n\n static get name() {\n return \"SystemCameraUpdated\";\n }\n\n static get entity() {\n return \"camera\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemCategoryUpdated extends Event {\n constructor(category, context) {\n super(category, context);\n }\n\n static get name() {\n return \"SystemCategoryUpdated\";\n }\n\n static get entity() {\n return \"category\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemCourtesyUpdated extends Event {\n constructor(courtesy, context) {\n super(courtesy, context);\n }\n\n static get name() {\n return \"SystemCourtesyUpdated\";\n }\n\n static get entity() {\n return \"courtesy\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemCredentialUpdated extends Event {\n constructor(cred, context) {\n super(cred, context);\n }\n\n static get name() {\n return \"SystemCredentialUpdated\";\n }\n\n static get entity() {\n return \"credential\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemDimmerUpdated extends Event {\n constructor(dimmer, context) {\n super(dimmer, context);\n }\n\n static get name() {\n return \"SystemDimmerUpdated\";\n }\n\n static get entity() {\n return \"dimmer\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemEntityDeleted extends Event {\n constructor(data, context) {\n super(data, context);\n }\n\n static get name() {\n return \"SystemEntityDeleted\";\n }\n\n static get entity() {\n return \"entity\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemGatewayUpdated extends Event {\n constructor(gateway, context) {\n super(gateway, context);\n }\n\n static get name() {\n return \"SystemGatewayUpdated\";\n }\n\n static get entity() {\n return \"gateway\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemLockUpdated extends Event {\n constructor(lock, context) {\n super(lock, context);\n }\n\n static get name() {\n return \"SystemLockUpdated\";\n }\n\n static get entity() {\n return \"lock\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemMediaSourceUpdated extends Event {\n constructor(mediaSource, context) {\n super(mediaSource, context);\n }\n\n static get name() {\n return \"SystemMediaSourceUpdated\";\n }\n\n static get entity() {\n return \"mediaSource\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemMotionSensorUpdated extends Event {\n constructor(motion, context) {\n super(motion, context);\n }\n\n static get name() {\n return \"SystemMotionSensorUpdated\";\n }\n\n static get entity() {\n return \"motionSensor\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemOrganizationUpdated extends Event {\n constructor(organization, context) {\n super(organization, context);\n }\n\n static get name() {\n return \"SystemOrganizationUpdated\";\n }\n\n static get entity() {\n return \"organization\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemProductUpdated extends Event {\n constructor(product, context) {\n super(product, context);\n }\n\n static get name() {\n return \"SystemProductUpdated\";\n }\n\n static get entity() {\n return \"product\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemPropertyUpdated extends Event {\n constructor(property, context) {\n super(property, context);\n }\n\n static get name() {\n return \"SystemPropertyUpdated\";\n }\n\n static get entity() {\n return \"property\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemReservationUpdated extends Event {\n constructor(reservation, context) {\n super(reservation, context);\n }\n\n static get name() {\n return \"SystemReservationUpdated\";\n }\n\n static get entity() {\n return \"reservation\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class 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 }\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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":[]}
package/dist/events.d.cts CHANGED
@@ -199,11 +199,11 @@ declare class SystemProductUpdated extends Event {
199
199
  constructor(product: any, context: any);
200
200
  }
201
201
 
202
- declare class SystemPropertyUpdate extends Event {
202
+ declare class SystemPropertyUpdated extends Event {
203
203
  constructor(property: any, context: any);
204
204
  }
205
205
 
206
- declare class SystemReservationUpdate extends Event {
206
+ declare class SystemReservationUpdated extends Event {
207
207
  constructor(reservation: any, context: any);
208
208
  }
209
209
 
@@ -211,20 +211,20 @@ declare class SystemSpaceUpdate extends Event {
211
211
  constructor(space: any, context: any);
212
212
  }
213
213
 
214
- declare class SystemSwitchUpdate extends Event {
214
+ declare class SystemSwitchUpdated extends Event {
215
215
  constructor(_switch: any, context: any);
216
216
  }
217
217
 
218
- declare class SystemThermostatUpdate extends Event {
218
+ declare class SystemThermostatUpdated extends Event {
219
219
  constructor(thermostat: any, context: any);
220
220
  }
221
221
 
222
- declare class SystemUserUpdate extends Event {
222
+ declare class SystemUserUpdated extends Event {
223
223
  constructor(user: any, context: any);
224
224
  }
225
225
 
226
- declare class SystemWindowCoveringUpdate extends Event {
226
+ declare class SystemWindowCoveringUpdated extends Event {
227
227
  constructor(wc: any, context: any);
228
228
  }
229
229
 
230
- export { ApplicationInUse, ApplicationOutOfUse, EmailEvent, Event, ReservationCheckedIn, ReservationCheckedOut, ReservationSpaceChanged, SMSEvent, SceneSet, ShortLinkCreated, SystemAlarmUpdated, SystemCameraUpdated, SystemCategoryUpdated, SystemCourtesyUpdated, SystemCredentialUpdated, SystemDimmerUpdated, SystemEntityDeleted, SystemGatewayUpdated, SystemLockUpdated, SystemMediaSourceUpdated, SystemMotionSensorUpdated, SystemOrganizationUpdated, SystemProductUpdated, SystemPropertyUpdate, SystemReservationUpdate, SystemSpaceUpdate, SystemSwitchUpdate, SystemThermostatUpdate, SystemUserUpdate, SystemWindowCoveringUpdate };
230
+ export { ApplicationInUse, ApplicationOutOfUse, EmailEvent, Event, ReservationCheckedIn, ReservationCheckedOut, ReservationSpaceChanged, SMSEvent, SceneSet, ShortLinkCreated, SystemAlarmUpdated, SystemCameraUpdated, SystemCategoryUpdated, SystemCourtesyUpdated, SystemCredentialUpdated, SystemDimmerUpdated, SystemEntityDeleted, SystemGatewayUpdated, SystemLockUpdated, SystemMediaSourceUpdated, SystemMotionSensorUpdated, SystemOrganizationUpdated, SystemProductUpdated, SystemPropertyUpdated, SystemReservationUpdated, SystemSpaceUpdate, SystemSwitchUpdated, SystemThermostatUpdated, SystemUserUpdated, SystemWindowCoveringUpdated };
package/dist/events.d.ts CHANGED
@@ -199,11 +199,11 @@ declare class SystemProductUpdated extends Event {
199
199
  constructor(product: any, context: any);
200
200
  }
201
201
 
202
- declare class SystemPropertyUpdate extends Event {
202
+ declare class SystemPropertyUpdated extends Event {
203
203
  constructor(property: any, context: any);
204
204
  }
205
205
 
206
- declare class SystemReservationUpdate extends Event {
206
+ declare class SystemReservationUpdated extends Event {
207
207
  constructor(reservation: any, context: any);
208
208
  }
209
209
 
@@ -211,20 +211,20 @@ declare class SystemSpaceUpdate extends Event {
211
211
  constructor(space: any, context: any);
212
212
  }
213
213
 
214
- declare class SystemSwitchUpdate extends Event {
214
+ declare class SystemSwitchUpdated extends Event {
215
215
  constructor(_switch: any, context: any);
216
216
  }
217
217
 
218
- declare class SystemThermostatUpdate extends Event {
218
+ declare class SystemThermostatUpdated extends Event {
219
219
  constructor(thermostat: any, context: any);
220
220
  }
221
221
 
222
- declare class SystemUserUpdate extends Event {
222
+ declare class SystemUserUpdated extends Event {
223
223
  constructor(user: any, context: any);
224
224
  }
225
225
 
226
- declare class SystemWindowCoveringUpdate extends Event {
226
+ declare class SystemWindowCoveringUpdated extends Event {
227
227
  constructor(wc: any, context: any);
228
228
  }
229
229
 
230
- export { ApplicationInUse, ApplicationOutOfUse, EmailEvent, Event, ReservationCheckedIn, ReservationCheckedOut, ReservationSpaceChanged, SMSEvent, SceneSet, ShortLinkCreated, SystemAlarmUpdated, SystemCameraUpdated, SystemCategoryUpdated, SystemCourtesyUpdated, SystemCredentialUpdated, SystemDimmerUpdated, SystemEntityDeleted, SystemGatewayUpdated, SystemLockUpdated, SystemMediaSourceUpdated, SystemMotionSensorUpdated, SystemOrganizationUpdated, SystemProductUpdated, SystemPropertyUpdate, SystemReservationUpdate, SystemSpaceUpdate, SystemSwitchUpdate, SystemThermostatUpdate, SystemUserUpdate, SystemWindowCoveringUpdate };
230
+ export { ApplicationInUse, ApplicationOutOfUse, EmailEvent, Event, ReservationCheckedIn, ReservationCheckedOut, ReservationSpaceChanged, SMSEvent, SceneSet, ShortLinkCreated, SystemAlarmUpdated, SystemCameraUpdated, SystemCategoryUpdated, SystemCourtesyUpdated, SystemCredentialUpdated, SystemDimmerUpdated, SystemEntityDeleted, SystemGatewayUpdated, SystemLockUpdated, SystemMediaSourceUpdated, SystemMotionSensorUpdated, SystemOrganizationUpdated, SystemProductUpdated, SystemPropertyUpdated, SystemReservationUpdated, SystemSpaceUpdate, SystemSwitchUpdated, SystemThermostatUpdated, SystemUserUpdated, SystemWindowCoveringUpdated };
package/dist/events.js CHANGED
@@ -22,14 +22,14 @@ import {
22
22
  SystemMotionSensorUpdated,
23
23
  SystemOrganizationUpdated,
24
24
  SystemProductUpdated,
25
- SystemPropertyUpdate,
26
- SystemReservationUpdate,
25
+ SystemPropertyUpdated,
26
+ SystemReservationUpdated,
27
27
  SystemSpaceUpdate,
28
- SystemSwitchUpdate,
29
- SystemThermostatUpdate,
30
- SystemUserUpdate,
31
- SystemWindowCoveringUpdate
32
- } from "./chunk-SHLRCTB4.js";
28
+ SystemSwitchUpdated,
29
+ SystemThermostatUpdated,
30
+ SystemUserUpdated,
31
+ SystemWindowCoveringUpdated
32
+ } from "./chunk-TBEXLKDH.js";
33
33
  import "./chunk-KNSZIQXT.js";
34
34
  import "./chunk-FU4IK6I4.js";
35
35
  export {
@@ -56,12 +56,12 @@ export {
56
56
  SystemMotionSensorUpdated,
57
57
  SystemOrganizationUpdated,
58
58
  SystemProductUpdated,
59
- SystemPropertyUpdate,
60
- SystemReservationUpdate,
59
+ SystemPropertyUpdated,
60
+ SystemReservationUpdated,
61
61
  SystemSpaceUpdate,
62
- SystemSwitchUpdate,
63
- SystemThermostatUpdate,
64
- SystemUserUpdate,
65
- SystemWindowCoveringUpdate
62
+ SystemSwitchUpdated,
63
+ SystemThermostatUpdated,
64
+ SystemUserUpdated,
65
+ SystemWindowCoveringUpdated
66
66
  };
67
67
  //# sourceMappingURL=events.js.map