@kohost/api-client 3.0.0-beta.99 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/dist/cjs/Client/index.js +374 -67
  2. package/dist/cjs/Commands/CreateShortLinkCommand.js +2 -2
  3. package/dist/cjs/Commands/OCRDocumentCommand.js +2 -2
  4. package/dist/cjs/Commands/SetAlarmCommand.js +2 -2
  5. package/dist/cjs/Commands/SetCourtesyCommand.js +2 -2
  6. package/dist/cjs/Commands/SetDimmerCommand.js +2 -2
  7. package/dist/cjs/Commands/SetLockCommand.js +2 -2
  8. package/dist/cjs/Commands/SetSwitchCommand.js +2 -2
  9. package/dist/cjs/Commands/SetThermostatCommand.js +2 -2
  10. package/dist/cjs/Commands/SetWindowCoveringCommand.js +2 -2
  11. package/dist/cjs/Events/ReservationCheckInEvent.js +23 -0
  12. package/dist/cjs/Events/ReservationCheckOutEvent.js +23 -0
  13. package/dist/cjs/Events/index.js +6 -0
  14. package/dist/cjs/SocketIoClient/index.js +23 -4
  15. package/dist/cjs/schemas/AlarmSchema.d.ts +14 -2
  16. package/dist/cjs/schemas/CameraSchema.d.ts +1 -0
  17. package/dist/cjs/schemas/CategorySchema.d.ts +1 -0
  18. package/dist/cjs/schemas/CourtesySchema.d.ts +1 -0
  19. package/dist/cjs/schemas/CredentialSchema.d.ts +2 -1
  20. package/dist/cjs/schemas/DimmerSchema.d.ts +1 -0
  21. package/dist/cjs/schemas/DiscoveredDeviceSchema.d.ts +4 -0
  22. package/dist/cjs/schemas/GatewaySchema.d.ts +1 -0
  23. package/dist/cjs/schemas/LockSchema.d.ts +1 -0
  24. package/dist/cjs/schemas/MediaSourceSchema.d.ts +4 -1
  25. package/dist/cjs/schemas/MotionSensorSchema.d.ts +1 -0
  26. package/dist/cjs/schemas/OrganizationSchema.d.ts +30 -0
  27. package/dist/cjs/schemas/ProductSchema.d.ts +1 -0
  28. package/dist/cjs/schemas/PropertySchema.d.ts +26 -35
  29. package/dist/cjs/schemas/ReservationSchema.d.ts +2 -0
  30. package/dist/cjs/schemas/RoomSchema.d.ts +28 -4
  31. package/dist/cjs/schemas/SceneSchema.d.ts +2 -1
  32. package/dist/cjs/schemas/SpaceSchema.d.ts +1 -0
  33. package/dist/cjs/schemas/SwitchSchema.d.ts +1 -0
  34. package/dist/cjs/schemas/SystemUserSchema.d.ts +1 -0
  35. package/dist/cjs/schemas/ThermostatSchema.d.ts +1 -0
  36. package/dist/cjs/schemas/UserSchema.d.ts +2 -0
  37. package/dist/cjs/schemas/WindowCoveringSchema.d.ts +3 -1
  38. package/dist/cjs/schemas/alarm.json +4 -4
  39. package/dist/cjs/schemas/credential.json +1 -0
  40. package/dist/cjs/schemas/definitions.json +1 -0
  41. package/dist/cjs/schemas/discoveredDevice.json +4 -0
  42. package/dist/cjs/schemas/mediaSource.json +11 -1
  43. package/dist/cjs/schemas/organization.json +109 -0
  44. package/dist/cjs/schemas/property.json +39 -116
  45. package/dist/cjs/schemas/reservation.json +3 -0
  46. package/dist/cjs/schemas/scene.json +3 -0
  47. package/dist/cjs/schemas/windowCovering.json +8 -2
  48. package/dist/esm/Client.js +504 -193
  49. package/dist/esm/Client.js.map +4 -4
  50. package/dist/esm/Commands.js +18 -18
  51. package/dist/esm/Commands.js.map +2 -2
  52. package/dist/esm/Events.js +55 -1
  53. package/dist/esm/Events.js.map +3 -3
  54. package/dist/esm/Models.js +182 -122
  55. package/dist/esm/Models.js.map +2 -2
  56. package/dist/esm/SocketIoClient.js +26 -7
  57. package/dist/esm/SocketIoClient.js.map +2 -2
  58. package/dist/esm/defs.js +162 -131
  59. package/dist/esm/defs.js.map +4 -4
  60. package/dist/esm/utils.js +1 -0
  61. package/dist/esm/utils.js.map +2 -2
  62. package/dist/useCases/{LoginUser.js → CreateScene.js} +2 -2
  63. package/dist/useCases/DescribeAlarmConfig.js +32 -0
  64. package/dist/useCases/{DescribeMyProperty.js → DescribeMyOrganization.js} +2 -2
  65. package/dist/useCases/DescribeMyPasskeyRegistrations.js +32 -0
  66. package/dist/useCases/FinishRegisterPasskey.js +32 -0
  67. package/dist/useCases/{RequestLoginLink.js → ListMyProperties.js} +3 -3
  68. package/dist/useCases/{RequestPWAToken.js → LoginFinish.js} +3 -3
  69. package/dist/useCases/LoginStart.js +32 -0
  70. package/dist/useCases/{RequestMyKeyToken.js → RequestLoginToken.js} +3 -3
  71. package/dist/useCases/SetAlarm.js +32 -0
  72. package/dist/useCases/SetCustomScene.js +32 -0
  73. package/dist/useCases/StartRegisterPasskey.js +32 -0
  74. package/package.json +3 -4
@@ -72,8 +72,8 @@ var require_SetAlarmCommand = __commonJS({
72
72
  static {
73
73
  __name(this, "SetAlarmCommand");
74
74
  }
75
- constructor({ id, zones, areas }) {
76
- super({ id, zones, areas });
75
+ constructor({ id, zones, areas, code, ...rest }) {
76
+ super({ id, zones, areas, code, ...rest });
77
77
  }
78
78
  get name() {
79
79
  return "SetAlarm";
@@ -94,8 +94,8 @@ var require_SetDimmerCommand = __commonJS({
94
94
  static {
95
95
  __name(this, "SetDimmerCommand");
96
96
  }
97
- constructor({ id, level }) {
98
- super({ id, level });
97
+ constructor({ id, level, ...rest }) {
98
+ super({ id, level, ...rest });
99
99
  }
100
100
  get name() {
101
101
  return "SetDimmer";
@@ -116,8 +116,8 @@ var require_SetSwitchCommand = __commonJS({
116
116
  static {
117
117
  __name(this, "SetSwitchCommand");
118
118
  }
119
- constructor({ id, state }) {
120
- super({ id, state });
119
+ constructor({ id, state, ...rest }) {
120
+ super({ id, state, ...rest });
121
121
  }
122
122
  get name() {
123
123
  return "SetSwitch";
@@ -138,8 +138,8 @@ var require_SetThermostatCommand = __commonJS({
138
138
  static {
139
139
  __name(this, "SetThermostatCommand");
140
140
  }
141
- constructor({ id, setpoints, hvacMode, fanMode }) {
142
- super({ id, setpoints, hvacMode, fanMode });
141
+ constructor({ id, setpoints, hvacMode, fanMode, ...rest }) {
142
+ super({ id, setpoints, hvacMode, fanMode, ...rest });
143
143
  }
144
144
  get name() {
145
145
  return "SetThermostat";
@@ -160,8 +160,8 @@ var require_SetLockCommand = __commonJS({
160
160
  static {
161
161
  __name(this, "SetLockCommand");
162
162
  }
163
- constructor({ id, state }) {
164
- super({ id, state });
163
+ constructor({ id, state, ...rest }) {
164
+ super({ id, state, ...rest });
165
165
  }
166
166
  get name() {
167
167
  return "SetLock";
@@ -182,8 +182,8 @@ var require_SetWindowCoveringCommand = __commonJS({
182
182
  static {
183
183
  __name(this, "SetWindowCoveringCommand");
184
184
  }
185
- constructor({ id, position }) {
186
- super({ id, position });
185
+ constructor({ id, position, ...rest }) {
186
+ super({ id, position, ...rest });
187
187
  }
188
188
  get name() {
189
189
  return "SetWindowCovering";
@@ -204,8 +204,8 @@ var require_SetCourtesyCommand = __commonJS({
204
204
  static {
205
205
  __name(this, "SetCourtesyCommand");
206
206
  }
207
- constructor({ id, state }) {
208
- super({ id, state });
207
+ constructor({ id, state, ...rest }) {
208
+ super({ id, state, ...rest });
209
209
  }
210
210
  get name() {
211
211
  return "SetCourtesy";
@@ -309,10 +309,10 @@ var require_OCRDocumentCommand = __commonJS({
309
309
  static {
310
310
  __name(this, "OCRDocumentCommand");
311
311
  }
312
- constructor({ type, image }) {
312
+ constructor({ type, image, ...rest }) {
313
313
  if (!image)
314
314
  throw new RequestError("document image is required");
315
- super({ type, image });
315
+ super({ type, image, ...rest });
316
316
  }
317
317
  get name() {
318
318
  return "OCRDocument";
@@ -756,12 +756,12 @@ var require_CreateShortLinkCommand = __commonJS({
756
756
  static {
757
757
  __name(this, "CreateShortLinkCommand");
758
758
  }
759
- constructor({ title, destination }) {
759
+ constructor({ title, destination, ...rest }) {
760
760
  if (!title)
761
761
  throw new RequestError("title is required");
762
762
  if (!destination)
763
763
  throw new RequestError("destination to is required");
764
- super({ title, destination });
764
+ super({ title, destination, ...rest });
765
765
  }
766
766
  get name() {
767
767
  return "CreateShortLink";
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Commands/Command.js", "../../src/Commands/SetSceneCommand.js", "../../src/Commands/SetAlarmCommand.js", "../../src/Commands/SetDimmerCommand.js", "../../src/Commands/SetSwitchCommand.js", "../../src/Commands/SetThermostatCommand.js", "../../src/Commands/SetLockCommand.js", "../../src/Commands/SetWindowCoveringCommand.js", "../../src/Commands/SetCourtesyCommand.js", "../../src/Commands/SetMediaCommand.js", "../../src/Commands/DiscoverUsersCommand.js", "../../src/Errors/AppError.js", "../../src/Errors/RequestError.js", "../../src/Commands/OCRDocumentCommand.js", "../../src/Commands/CheckInReservationCommand.js", "../../src/Commands/CheckOutReservationCommand.js", "../../src/Commands/SendEmailCommand.js", "../../src/Commands/SendSMSCommand.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/SystemCommError.js", "../../src/Errors/TokenExpiredError.js", "../../src/Errors/UnprocessableRequestError.js", "../../src/Errors/ValidationError.js", "../../src/Errors/index.js", "../../src/Commands/DiscoverReservationsCommand.js", "../../src/Commands/DiscoverReservationSpaceCategoryAvailabilitiesCommand.js", "../../src/Commands/DiscoverRoomsCommand.js", "../../src/Commands/DiscoverCategoriesCommand.js", "../../src/Commands/CreateShortLinkCommand.js", "../../src/Commands/UpdateReservationCommand.js", "../../src/Commands/UpdateUserCommand.js", "../../src/Commands/GetMobileKeyCommand.js", "../../src/Commands/CreateImageUploadEndpointCommand.js", "../../src/Commands/UploadImageCommand.js", "../../src/Commands/GetProductsCommand.js", "../../src/Commands/SellProductsCommand.js", "../../src/Commands/index.js"],
4
- "sourcesContent": ["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 get type() {\n return \"Command\";\n }\n\n get routingKey() {\n return \"\";\n }\n\n get exchange() {\n return \"Commands\";\n }\n\n build() {\n return { data: { ...this.data } };\n }\n}\n\nmodule.exports = Command;\n", "const Command = require(\"./Command\");\n\nclass SetSceneCommand extends Command {\n constructor({ id, devices, ...rest }) {\n super({ id, devices, ...rest });\n }\n\n get name() {\n return \"SetScene\";\n }\n\n get routingKey() {\n return `scene.${this.data.id}.set`;\n }\n}\n\nmodule.exports = SetSceneCommand;\n", "const Command = require(\"./Command\");\n\nclass SetAlarmCommand extends Command {\n constructor({ id, zones, areas }) {\n super({ id, zones, areas });\n }\n\n get name() {\n return \"SetAlarm\";\n }\n\n get routingKey() {\n return `alarm.${this.data.id}.set`;\n }\n}\n\nmodule.exports = SetAlarmCommand;\n", "const Command = require(\"./Command\");\n\nclass SetDimmerCommand extends Command {\n constructor({ id, level }) {\n super({ id, level });\n }\n\n get name() {\n return \"SetDimmer\";\n }\n\n get routingKey() {\n return `dimmer.${this.data.id}.set`;\n }\n}\n\nmodule.exports = SetDimmerCommand;\n", "const Command = require(\"./Command\");\n\nclass SetSwitchCommand extends Command {\n constructor({ id, state }) {\n super({ id, state });\n }\n\n get name() {\n return \"SetSwitch\";\n }\n\n get routingKey() {\n return `switch.${this.data.id}.set`;\n }\n}\n\nmodule.exports = SetSwitchCommand;\n", "const Command = require(\"./Command\");\n\nclass SetThermostatCommand extends Command {\n constructor({ id, setpoints, hvacMode, fanMode }) {\n super({ id, setpoints, hvacMode, fanMode });\n }\n\n get name() {\n return \"SetThermostat\";\n }\n\n get routingKey() {\n return `thermostat.${this.data.id}.set`;\n }\n}\n\nmodule.exports = SetThermostatCommand;\n", "const Command = require(\"./Command\");\n\nclass SetLockCommand extends Command {\n constructor({ id, state }) {\n super({ id, state });\n }\n\n get name() {\n return \"SetLock\";\n }\n\n get routingKey() {\n return `lock.${this.data.id}.set`;\n }\n}\n\nmodule.exports = SetLockCommand;\n", "const Command = require(\"./Command\");\n\nclass SetWindowCoveringCommand extends Command {\n constructor({ id, position }) {\n super({ id, position });\n }\n\n get name() {\n return \"SetWindowCovering\";\n }\n\n get routingKey() {\n return `windowCovering.${this.data.id}.set`;\n }\n}\n\nmodule.exports = SetWindowCoveringCommand;\n", "const Command = require(\"./Command\");\n\nclass SetCourtesyCommand extends Command {\n constructor({ id, state }) {\n super({ id, state });\n }\n\n get name() {\n return \"SetCourtesy\";\n }\n\n get routingKey() {\n return `courtesy.${this.data.id}.set`;\n }\n}\n\nmodule.exports = SetCourtesyCommand;\n", "const Command = require(\"./Command\");\n\nclass SetMediaCommand extends Command {\n constructor({ id, command, ...rest }) {\n super({ id, command, ...rest });\n }\n\n get name() {\n return \"SetMedia\";\n }\n\n get routingKey() {\n return `mediaSource.${this.data.id}.set`;\n }\n}\n\nmodule.exports = SetMediaCommand;\n", "const Command = require(\"./Command\");\n\nclass DiscoverUsersCommand extends Command {\n constructor({ id, ...rest }) {\n super({ id, ...rest });\n }\n\n get name() {\n return \"DiscoverUsers\";\n }\n\n get routingKey() {\n if (typeof this.data.id === \"string\") return `users.${this.data.id}.get`;\n if (Array.isArray(this.data.id)) return \"users.batch.get\";\n return \"users.get\";\n }\n}\n\nmodule.exports = DiscoverUsersCommand;\n", "module.exports = 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 Object.setPrototypeOf(this, AppError.prototype);\n }\n};\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class RequestError extends AppError {\n constructor(message = \"Bad Request\", options = {}) {\n super(message, options);\n this.statusCode = 400;\n Object.setPrototypeOf(this, RequestError.prototype);\n }\n};\n", "const Command = require(\"./Command\");\nconst RequestError = require(\"../Errors/RequestError\");\n\nclass OCRDocumentCommand extends Command {\n constructor({ type, image }) {\n if (!image) throw new RequestError(\"document image is required\");\n super({ type, image });\n }\n\n get name() {\n return \"OCRDocument\";\n }\n}\n\nmodule.exports = OCRDocumentCommand;\n", "const Command = require(\"./Command\");\nconst RequestError = require(\"../Errors/RequestError\");\n\nclass CheckInReservationCommand extends Command {\n constructor({ id, ...rest }) {\n if (!id) throw new RequestError(\"reservation id is required\");\n super({ id, ...rest });\n }\n\n get name() {\n return \"CheckInReservation\";\n }\n\n get routingKey() {\n return `reservation.${this.data.id}.checkin`;\n }\n}\n\nmodule.exports = CheckInReservationCommand;\n", "const Command = require(\"./Command\");\nconst RequestError = require(\"../Errors/RequestError\");\n\nclass CheckOutReservationCommand extends Command {\n constructor({ reservationId, userId, ...rest }) {\n if (!reservationId) throw new RequestError(\"reservation id is required\");\n if (!userId) throw new RequestError(\"user id is required\");\n super({ reservationId, userId, ...rest });\n }\n\n get name() {\n return \"CheckOutReservation\";\n }\n\n get routingKey() {\n return `reservation.${this.data.id}.checkout`;\n }\n}\n\nmodule.exports = CheckOutReservationCommand;\n", "const Command = require(\"./Command\");\nconst RequestError = require(\"../Errors/RequestError\");\n\nclass SendEmailCommand extends Command {\n constructor({ text, html, to, from, subject, ...rest }) {\n if (!to) throw new RequestError(\"email to is required\");\n if (!from) throw new RequestError(\"email from is required\");\n if (!subject) throw new RequestError(\"email subject is required\");\n if (!text && !html)\n throw new RequestError(\"email text or html is required\");\n\n super({ text, html, to, from, subject, ...rest });\n }\n\n get name() {\n return \"SendEmail\";\n }\n\n get routingKey() {\n return \"comm.email.send\";\n }\n}\n\nmodule.exports = SendEmailCommand;\n", "const Command = require(\"./Command\");\nconst RequestError = require(\"../Errors/RequestError\");\n\nclass SendSMSCommand extends Command {\n constructor({ id, body, to, from, media, ...rest }) {\n if (!body && !media)\n throw new RequestError(\"sms body or media is required\");\n if (!to) throw new RequestError(\"sms to is required\");\n if (!from) throw new RequestError(\"sms from is required\");\n super({ id, body, to, from, media, ...rest });\n }\n\n get name() {\n return \"SendSMS\";\n }\n\n get routingKey() {\n return \"comm.sms.send\";\n }\n}\n\nmodule.exports = SendSMSCommand;\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class AuthenticationError extends AppError {\n constructor(message = \"Authentication Error\", options = {}) {\n super(message, options);\n this.statusCode = 401;\n Object.setPrototypeOf(this, AuthenticationError.prototype);\n }\n};\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class AuthorizationError extends AppError {\n constructor(message = \"Authorization Error\", options = {}) {\n super(message, options);\n this.statusCode = 403;\n Object.setPrototypeOf(this, AuthorizationError.prototype);\n }\n};\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class ConflictError extends AppError {\n constructor(message = \"Bad Request\", options = {}) {\n super(message, options);\n this.statusCode = 409;\n Object.setPrototypeOf(this, ConflictError.prototype);\n }\n};\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class DeviceCommError extends AppError {\n constructor(message = \"Device Communication Error\", options = {}) {\n super(message, options);\n this.statusCode = 503;\n Object.setPrototypeOf(this, DeviceCommError.prototype);\n }\n};\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class LoginError extends AppError {\n constructor(message = \"Invalid Login information provided\", options = {}) {\n super(message, options);\n this.statusCode = 401;\n Object.setPrototypeOf(this, LoginError.prototype);\n }\n};\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class NotFoundError extends AppError {\n constructor(message = \"Resource Not Found\", options = {}) {\n super(message, options);\n this.statusCode = 404;\n Object.setPrototypeOf(this, NotFoundError.prototype);\n }\n};\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class SystemCommError extends AppError {\n constructor(message = \"System Communication Error\", options = {}) {\n super(message, options);\n this.statusCode = 503;\n Object.setPrototypeOf(this, SystemCommError.prototype);\n }\n};\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class TokenExpiredError extends AppError {\n constructor(message = \"Token Expired\", options = {}) {\n super(message, options);\n this.statusCode = 401;\n Object.setPrototypeOf(this, TokenExpiredError.prototype);\n }\n};\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class UnprocessableRequestError extends AppError {\n constructor(message = \"Unprocessable Request Error\", options = {}) {\n super(message, options);\n this.statusCode = 422;\n Object.setPrototypeOf(this, UnprocessableRequestError.prototype);\n }\n};\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class ValidationError extends AppError {\n constructor(message = \"Validation Error\", options = {}) {\n super(message, options);\n this.statusCode = 400;\n Object.setPrototypeOf(this, ValidationError.prototype);\n }\n};\n", "const Errors = {\n AppError: require(\"./AppError\"),\n AuthenticationError: require(\"./AuthenticationError\"),\n AuthorizationError: require(\"./AuthorizationError\"),\n ConflictError: require(\"./ConflictError\"),\n DeviceCommError: require(\"./DeviceCommError\"),\n LoginError: require(\"./LoginError\"),\n NotFoundError: require(\"./NotFoundError\"),\n RequestError: require(\"./RequestError\"),\n SystemCommError: require(\"./SystemCommError\"),\n TokenExpiredError: require(\"./TokenExpiredError\"),\n UnprocessableRequestError: require(\"./UnprocessableRequestError\"),\n ValidationError: require(\"./ValidationError\"),\n};\n\nmodule.exports = Errors;\n", "const { RequestError } = require(\"../Errors\");\nconst Command = require(\"./Command\");\n\nclass DiscoverReservationsCommand extends Command {\n constructor(options) {\n if (!options) throw new RequestError(\"options are required\");\n const { id, startDate, endDate, status, ...rest } = options;\n super({ id, startDate, endDate, status, ...rest });\n }\n\n get name() {\n return \"DiscoverReservations\";\n }\n\n get routingKey() {\n return \"reservation.discover\";\n }\n}\n\nmodule.exports = DiscoverReservationsCommand;\n", "const { RequestError } = require(\"../Errors\");\nconst Command = require(\"./Command\");\n\nclass DiscoverReservationSpaceCategoryAvailabilitiesCommand extends Command {\n constructor(options) {\n if (!options) throw new RequestError(\"options are required\");\n const { id, ...rest } = options;\n super({ id, ...rest });\n }\n\n get name() {\n return \"DiscoverReservationSpaceCategoryAvailabilities\";\n }\n\n get routingKey() {\n return \"reservation.discoverRoomUpsells\";\n }\n}\n\nmodule.exports = DiscoverReservationSpaceCategoryAvailabilitiesCommand;\n", "const Command = require(\"./Command\");\n\nclass DiscoverRoomsCommand 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 \"DiscoverRooms\";\n }\n\n get routingKey() {\n if (typeof this.data.id === \"string\") return `rooms.${this.data.id}.get`;\n if (Array.isArray(this.data.id)) return \"rooms.batch.get\";\n return \"rooms.get\";\n }\n}\n\nmodule.exports = DiscoverRoomsCommand;\n", "const Command = require(\"./Command\");\n\nclass DiscoverCategoriesCommand extends Command {\n constructor({ id, ...rest }) {\n super({ id, ...rest });\n }\n\n get name() {\n return \"DiscoverCategories\";\n }\n\n get routingKey() {\n if (typeof this.data.id === \"string\")\n return `categories.${this.data.id}.get`;\n if (Array.isArray(this.data.id)) return \"categories.batch.get\";\n return \"categories.get\";\n }\n}\n\nmodule.exports = DiscoverCategoriesCommand;\n", "const Command = require(\"./Command\");\nconst RequestError = require(\"../Errors/RequestError\");\n\nclass CreateShortLinkCommand extends Command {\n constructor({ title, destination }) {\n if (!title) throw new RequestError(\"title is required\");\n if (!destination) throw new RequestError(\"destination to is required\");\n super({ title, destination });\n }\n\n get name() {\n return \"CreateShortLink\";\n }\n\n get routingKey() {\n return \"comm.shortlink.create\";\n }\n}\n\nmodule.exports = CreateShortLinkCommand;\n", "const Command = require(\"./Command\");\nconst RequestError = require(\"../Errors/RequestError\");\n\nclass UpdateReservationCommand extends Command {\n constructor({ id, ...rest }) {\n if (!id) throw new RequestError(\"document type is required\");\n super({ id, ...rest });\n }\n\n get name() {\n return \"UpdateReservation\";\n }\n\n get routingKey() {\n return `reservation.${this.data.id}.update`;\n }\n}\n\nmodule.exports = UpdateReservationCommand;\n", "const Command = require(\"./Command\");\nconst RequestError = require(\"../Errors/RequestError\");\n\nclass UpdateUserCommand 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 if (!id) throw new RequestError(\"document type is required\");\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 get routingKey() {\n return `user.${this.data.id}.update`;\n }\n}\n\nmodule.exports = UpdateUserCommand;\n", "const Command = require(\"./Command\");\n\nclass GetMobileKeyCommand 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 get routingKey() {\n return `lock.${this.data.id}.set`;\n }\n}\n\nmodule.exports = GetMobileKeyCommand;\n", "const Command = require(\"./Command\");\n\nclass CreateImageUploadEndpointCommand extends Command {\n constructor({ id, expires, ...rest }) {\n super({ id, expires, ...rest });\n }\n\n get name() {\n return \"CreateImageUploadEndpoint\";\n }\n\n get routingKey() {\n return \"image.createUploadEndpoint\";\n }\n}\n\nmodule.exports = CreateImageUploadEndpointCommand;\n", "const Command = require(\"./Command\");\n\nclass UploadImageCommand 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 get routingKey() {\n return `image.${this.data.id}.upload`;\n }\n}\n\nmodule.exports = UploadImageCommand;\n", "const Command = require(\"./Command\");\n\nclass GetProductsCommand extends Command {\n constructor({ id, externalSystemId, ...rest }) {\n super({ id, externalSystemId, ...rest });\n }\n\n get name() {\n return \"GetProducts\";\n }\n\n get routingKey() {\n return `product.${this.data.id}.get`;\n }\n}\n\nmodule.exports = GetProductsCommand;\n", "const Command = require(\"./Command\");\n\nclass SellProductsCommand 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 get routingKey() {\n return `product.${this.data.id}.sell`;\n }\n}\n\nmodule.exports = SellProductsCommand;\n", "const SetSceneCommand = require(\"./SetSceneCommand\");\nconst SetAlarmCommand = require(\"./SetAlarmCommand\");\nconst SetDimmerCommand = require(\"./SetDimmerCommand\");\nconst SetSwitchCommand = require(\"./SetSwitchCommand\");\nconst SetThermostatCommand = require(\"./SetThermostatCommand\");\nconst SetLockCommand = require(\"./SetLockCommand\");\nconst SetWindowCoveringCommand = require(\"./SetWindowCoveringCommand\");\nconst SetCourtesyCommand = require(\"./SetCourtesyCommand\");\nconst SetMediaCommand = require(\"./SetMediaCommand\");\nconst DiscoverUsersCommand = require(\"./DiscoverUsersCommand\");\nconst OCRDocumentCommand = require(\"./OCRDocumentCommand\");\nconst CheckInReservationCommand = require(\"./CheckInReservationCommand\");\nconst CheckOutReservationCommand = require(\"./CheckOutReservationCommand\");\nconst SendEmailCommand = require(\"./SendEmailCommand\");\nconst SendSMSCommand = require(\"./SendSMSCommand\");\nconst DiscoverReservationsCommand = require(\"./DiscoverReservationsCommand\");\nconst DiscoverReservationSpaceCategoryAvailabilitiesCommand = require(\"./DiscoverReservationSpaceCategoryAvailabilitiesCommand\");\nconst DiscoverRoomsCommand = require(\"./DiscoverRoomsCommand\");\nconst DiscoverCategoriesCommand = require(\"./DiscoverCategoriesCommand\");\nconst CreateShortLinkCommand = require(\"./CreateShortLinkCommand\");\nconst UpdateReservationCommand = require(\"./UpdateReservationCommand\");\nconst UpdateUserCommand = require(\"./UpdateUserCommand\");\nconst GetMobileKeyCommand = require(\"./GetMobileKeyCommand\");\nconst CreateImageUploadEndpointCommand = require(\"./CreateImageUploadEndpointCommand\");\nconst UploadImageCommand = require(\"./UploadImageCommand\");\nconst GetProductsCommand = require(\"./GetProductsCommand\");\nconst SellProductsCommand = require(\"./SellProductsCommand\");\n\nmodule.exports = {\n SetSceneCommand,\n SetAlarmCommand,\n SetDimmerCommand,\n SetSwitchCommand,\n SetThermostatCommand,\n SetLockCommand,\n SetWindowCoveringCommand,\n SetCourtesyCommand,\n SetMediaCommand,\n OCRDocumentCommand,\n DiscoverUsersCommand,\n CheckInReservationCommand,\n CheckOutReservationCommand,\n SendSMSCommand,\n SendEmailCommand,\n DiscoverReservationsCommand,\n DiscoverReservationSpaceCategoryAvailabilitiesCommand,\n DiscoverRoomsCommand,\n DiscoverCategoriesCommand,\n CreateShortLinkCommand,\n UpdateReservationCommand,\n UpdateUserCommand,\n GetMobileKeyCommand,\n CreateImageUploadEndpointCommand,\n UploadImageCommand,\n GetProductsCommand,\n SellProductsCommand,\n};\n"],
5
- "mappings": ";;;;;;;;AAAA;AAAA;AAAA,QAAM,UAAN,MAAc;AAAA,MAAd,OAAc;AAAA;AAAA;AAAA,MACZ,YAAY,MAAM;AAChB,aAAK,OAAO,CAAC;AACb,YAAI,CAAC;AAAM,gBAAM,IAAI,MAAM,0BAA0B;AACrD,YAAI,OAAO,SAAS;AAClB,gBAAM,IAAI,MAAM,gCAAgC;AAElD,mBAAW,OAAO,MAAM;AACtB,eAAK,KAAK,GAAG,IAAI,KAAK,GAAG;AAAA,QAC3B;AAAA,MACF;AAAA,MAEA,IAAI,OAAO;AACT,cAAM,IAAI,MAAM,0BAA0B;AAAA,MAC5C;AAAA,MAEA,IAAI,OAAO;AACT,eAAO;AAAA,MACT;AAAA,MAEA,IAAI,aAAa;AACf,eAAO;AAAA,MACT;AAAA,MAEA,IAAI,WAAW;AACb,eAAO;AAAA,MACT;AAAA,MAEA,QAAQ;AACN,eAAO,EAAE,MAAM,EAAE,GAAG,KAAK,KAAK,EAAE;AAAA,MAClC;AAAA,IACF;AAEA,WAAO,UAAU;AAAA;AAAA;;;ACjCjB;AAAA;AAAA,QAAM,UAAU;AAEhB,QAAM,kBAAN,cAA8B,QAAQ;AAAA,MAFtC,OAEsC;AAAA;AAAA;AAAA,MACpC,YAAY,EAAE,IAAI,SAAS,GAAG,KAAK,GAAG;AACpC,cAAM,EAAE,IAAI,SAAS,GAAG,KAAK,CAAC;AAAA,MAChC;AAAA,MAEA,IAAI,OAAO;AACT,eAAO;AAAA,MACT;AAAA,MAEA,IAAI,aAAa;AACf,eAAO,SAAS,KAAK,KAAK,EAAE;AAAA,MAC9B;AAAA,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,WAAW,KAAK,KAAK,EAAE;AAAA,MAChC;AAAA,IACF;AAEA,WAAO,UAAU;AAAA;AAAA;;;AChBjB;AAAA;AAAA,QAAM,kBAAkB;AACxB,QAAM,kBAAkB;AACxB,QAAM,mBAAmB;AACzB,QAAM,mBAAmB;AACzB,QAAM,uBAAuB;AAC7B,QAAM,iBAAiB;AACvB,QAAM,2BAA2B;AACjC,QAAM,qBAAqB;AAC3B,QAAM,kBAAkB;AACxB,QAAM,uBAAuB;AAC7B,QAAM,qBAAqB;AAC3B,QAAM,4BAA4B;AAClC,QAAM,6BAA6B;AACnC,QAAM,mBAAmB;AACzB,QAAM,iBAAiB;AACvB,QAAM,8BAA8B;AACpC,QAAM,wDAAwD;AAC9D,QAAM,uBAAuB;AAC7B,QAAM,4BAA4B;AAClC,QAAM,yBAAyB;AAC/B,QAAM,2BAA2B;AACjC,QAAM,oBAAoB;AAC1B,QAAM,sBAAsB;AAC5B,QAAM,mCAAmC;AACzC,QAAM,qBAAqB;AAC3B,QAAM,qBAAqB;AAC3B,QAAM,sBAAsB;AAE5B,WAAO,UAAU;AAAA,MACf;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA;AAAA;",
4
+ "sourcesContent": ["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 get type() {\n return \"Command\";\n }\n\n get routingKey() {\n return \"\";\n }\n\n get exchange() {\n return \"Commands\";\n }\n\n build() {\n return { data: { ...this.data } };\n }\n}\n\nmodule.exports = Command;\n", "const Command = require(\"./Command\");\n\nclass SetSceneCommand extends Command {\n constructor({ id, devices, ...rest }) {\n super({ id, devices, ...rest });\n }\n\n get name() {\n return \"SetScene\";\n }\n\n get routingKey() {\n return `scene.${this.data.id}.set`;\n }\n}\n\nmodule.exports = SetSceneCommand;\n", "const Command = require(\"./Command\");\n\nclass SetAlarmCommand 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 get routingKey() {\n return `alarm.${this.data.id}.set`;\n }\n}\n\nmodule.exports = SetAlarmCommand;\n", "const Command = require(\"./Command\");\n\nclass SetDimmerCommand extends Command {\n constructor({ id, level, ...rest }) {\n super({ id, level, ...rest });\n }\n\n get name() {\n return \"SetDimmer\";\n }\n\n get routingKey() {\n return `dimmer.${this.data.id}.set`;\n }\n}\n\nmodule.exports = SetDimmerCommand;\n", "const Command = require(\"./Command\");\n\nclass SetSwitchCommand extends Command {\n constructor({ id, state, ...rest }) {\n super({ id, state, ...rest });\n }\n\n get name() {\n return \"SetSwitch\";\n }\n\n get routingKey() {\n return `switch.${this.data.id}.set`;\n }\n}\n\nmodule.exports = SetSwitchCommand;\n", "const Command = require(\"./Command\");\n\nclass SetThermostatCommand 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 get routingKey() {\n return `thermostat.${this.data.id}.set`;\n }\n}\n\nmodule.exports = SetThermostatCommand;\n", "const Command = require(\"./Command\");\n\nclass SetLockCommand extends Command {\n constructor({ id, state, ...rest }) {\n super({ id, state, ...rest });\n }\n\n get name() {\n return \"SetLock\";\n }\n\n get routingKey() {\n return `lock.${this.data.id}.set`;\n }\n}\n\nmodule.exports = SetLockCommand;\n", "const Command = require(\"./Command\");\n\nclass SetWindowCoveringCommand extends Command {\n constructor({ id, position, ...rest }) {\n super({ id, position, ...rest });\n }\n\n get name() {\n return \"SetWindowCovering\";\n }\n\n get routingKey() {\n return `windowCovering.${this.data.id}.set`;\n }\n}\n\nmodule.exports = SetWindowCoveringCommand;\n", "const Command = require(\"./Command\");\n\nclass SetCourtesyCommand extends Command {\n constructor({ id, state, ...rest }) {\n super({ id, state, ...rest });\n }\n\n get name() {\n return \"SetCourtesy\";\n }\n\n get routingKey() {\n return `courtesy.${this.data.id}.set`;\n }\n}\n\nmodule.exports = SetCourtesyCommand;\n", "const Command = require(\"./Command\");\n\nclass SetMediaCommand extends Command {\n constructor({ id, command, ...rest }) {\n super({ id, command, ...rest });\n }\n\n get name() {\n return \"SetMedia\";\n }\n\n get routingKey() {\n return `mediaSource.${this.data.id}.set`;\n }\n}\n\nmodule.exports = SetMediaCommand;\n", "const Command = require(\"./Command\");\n\nclass DiscoverUsersCommand extends Command {\n constructor({ id, ...rest }) {\n super({ id, ...rest });\n }\n\n get name() {\n return \"DiscoverUsers\";\n }\n\n get routingKey() {\n if (typeof this.data.id === \"string\") return `users.${this.data.id}.get`;\n if (Array.isArray(this.data.id)) return \"users.batch.get\";\n return \"users.get\";\n }\n}\n\nmodule.exports = DiscoverUsersCommand;\n", "module.exports = 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 Object.setPrototypeOf(this, AppError.prototype);\n }\n};\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class RequestError extends AppError {\n constructor(message = \"Bad Request\", options = {}) {\n super(message, options);\n this.statusCode = 400;\n Object.setPrototypeOf(this, RequestError.prototype);\n }\n};\n", "const Command = require(\"./Command\");\nconst RequestError = require(\"../Errors/RequestError\");\n\nclass OCRDocumentCommand extends Command {\n constructor({ type, image, ...rest }) {\n if (!image) throw new RequestError(\"document image is required\");\n super({ type, image, ...rest });\n }\n\n get name() {\n return \"OCRDocument\";\n }\n}\n\nmodule.exports = OCRDocumentCommand;\n", "const Command = require(\"./Command\");\nconst RequestError = require(\"../Errors/RequestError\");\n\nclass CheckInReservationCommand extends Command {\n constructor({ id, ...rest }) {\n if (!id) throw new RequestError(\"reservation id is required\");\n super({ id, ...rest });\n }\n\n get name() {\n return \"CheckInReservation\";\n }\n\n get routingKey() {\n return `reservation.${this.data.id}.checkin`;\n }\n}\n\nmodule.exports = CheckInReservationCommand;\n", "const Command = require(\"./Command\");\nconst RequestError = require(\"../Errors/RequestError\");\n\nclass CheckOutReservationCommand extends Command {\n constructor({ reservationId, userId, ...rest }) {\n if (!reservationId) throw new RequestError(\"reservation id is required\");\n if (!userId) throw new RequestError(\"user id is required\");\n super({ reservationId, userId, ...rest });\n }\n\n get name() {\n return \"CheckOutReservation\";\n }\n\n get routingKey() {\n return `reservation.${this.data.id}.checkout`;\n }\n}\n\nmodule.exports = CheckOutReservationCommand;\n", "const Command = require(\"./Command\");\nconst RequestError = require(\"../Errors/RequestError\");\n\nclass SendEmailCommand extends Command {\n constructor({ text, html, to, from, subject, ...rest }) {\n if (!to) throw new RequestError(\"email to is required\");\n if (!from) throw new RequestError(\"email from is required\");\n if (!subject) throw new RequestError(\"email subject is required\");\n if (!text && !html)\n throw new RequestError(\"email text or html is required\");\n\n super({ text, html, to, from, subject, ...rest });\n }\n\n get name() {\n return \"SendEmail\";\n }\n\n get routingKey() {\n return \"comm.email.send\";\n }\n}\n\nmodule.exports = SendEmailCommand;\n", "const Command = require(\"./Command\");\nconst RequestError = require(\"../Errors/RequestError\");\n\nclass SendSMSCommand extends Command {\n constructor({ id, body, to, from, media, ...rest }) {\n if (!body && !media)\n throw new RequestError(\"sms body or media is required\");\n if (!to) throw new RequestError(\"sms to is required\");\n if (!from) throw new RequestError(\"sms from is required\");\n super({ id, body, to, from, media, ...rest });\n }\n\n get name() {\n return \"SendSMS\";\n }\n\n get routingKey() {\n return \"comm.sms.send\";\n }\n}\n\nmodule.exports = SendSMSCommand;\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class AuthenticationError extends AppError {\n constructor(message = \"Authentication Error\", options = {}) {\n super(message, options);\n this.statusCode = 401;\n Object.setPrototypeOf(this, AuthenticationError.prototype);\n }\n};\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class AuthorizationError extends AppError {\n constructor(message = \"Authorization Error\", options = {}) {\n super(message, options);\n this.statusCode = 403;\n Object.setPrototypeOf(this, AuthorizationError.prototype);\n }\n};\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class ConflictError extends AppError {\n constructor(message = \"Bad Request\", options = {}) {\n super(message, options);\n this.statusCode = 409;\n Object.setPrototypeOf(this, ConflictError.prototype);\n }\n};\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class DeviceCommError extends AppError {\n constructor(message = \"Device Communication Error\", options = {}) {\n super(message, options);\n this.statusCode = 503;\n Object.setPrototypeOf(this, DeviceCommError.prototype);\n }\n};\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class LoginError extends AppError {\n constructor(message = \"Invalid Login information provided\", options = {}) {\n super(message, options);\n this.statusCode = 401;\n Object.setPrototypeOf(this, LoginError.prototype);\n }\n};\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class NotFoundError extends AppError {\n constructor(message = \"Resource Not Found\", options = {}) {\n super(message, options);\n this.statusCode = 404;\n Object.setPrototypeOf(this, NotFoundError.prototype);\n }\n};\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class SystemCommError extends AppError {\n constructor(message = \"System Communication Error\", options = {}) {\n super(message, options);\n this.statusCode = 503;\n Object.setPrototypeOf(this, SystemCommError.prototype);\n }\n};\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class TokenExpiredError extends AppError {\n constructor(message = \"Token Expired\", options = {}) {\n super(message, options);\n this.statusCode = 401;\n Object.setPrototypeOf(this, TokenExpiredError.prototype);\n }\n};\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class UnprocessableRequestError extends AppError {\n constructor(message = \"Unprocessable Request Error\", options = {}) {\n super(message, options);\n this.statusCode = 422;\n Object.setPrototypeOf(this, UnprocessableRequestError.prototype);\n }\n};\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class ValidationError extends AppError {\n constructor(message = \"Validation Error\", options = {}) {\n super(message, options);\n this.statusCode = 400;\n Object.setPrototypeOf(this, ValidationError.prototype);\n }\n};\n", "const Errors = {\n AppError: require(\"./AppError\"),\n AuthenticationError: require(\"./AuthenticationError\"),\n AuthorizationError: require(\"./AuthorizationError\"),\n ConflictError: require(\"./ConflictError\"),\n DeviceCommError: require(\"./DeviceCommError\"),\n LoginError: require(\"./LoginError\"),\n NotFoundError: require(\"./NotFoundError\"),\n RequestError: require(\"./RequestError\"),\n SystemCommError: require(\"./SystemCommError\"),\n TokenExpiredError: require(\"./TokenExpiredError\"),\n UnprocessableRequestError: require(\"./UnprocessableRequestError\"),\n ValidationError: require(\"./ValidationError\"),\n};\n\nmodule.exports = Errors;\n", "const { RequestError } = require(\"../Errors\");\nconst Command = require(\"./Command\");\n\nclass DiscoverReservationsCommand extends Command {\n constructor(options) {\n if (!options) throw new RequestError(\"options are required\");\n const { id, startDate, endDate, status, ...rest } = options;\n super({ id, startDate, endDate, status, ...rest });\n }\n\n get name() {\n return \"DiscoverReservations\";\n }\n\n get routingKey() {\n return \"reservation.discover\";\n }\n}\n\nmodule.exports = DiscoverReservationsCommand;\n", "const { RequestError } = require(\"../Errors\");\nconst Command = require(\"./Command\");\n\nclass DiscoverReservationSpaceCategoryAvailabilitiesCommand extends Command {\n constructor(options) {\n if (!options) throw new RequestError(\"options are required\");\n const { id, ...rest } = options;\n super({ id, ...rest });\n }\n\n get name() {\n return \"DiscoverReservationSpaceCategoryAvailabilities\";\n }\n\n get routingKey() {\n return \"reservation.discoverRoomUpsells\";\n }\n}\n\nmodule.exports = DiscoverReservationSpaceCategoryAvailabilitiesCommand;\n", "const Command = require(\"./Command\");\n\nclass DiscoverRoomsCommand 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 \"DiscoverRooms\";\n }\n\n get routingKey() {\n if (typeof this.data.id === \"string\") return `rooms.${this.data.id}.get`;\n if (Array.isArray(this.data.id)) return \"rooms.batch.get\";\n return \"rooms.get\";\n }\n}\n\nmodule.exports = DiscoverRoomsCommand;\n", "const Command = require(\"./Command\");\n\nclass DiscoverCategoriesCommand extends Command {\n constructor({ id, ...rest }) {\n super({ id, ...rest });\n }\n\n get name() {\n return \"DiscoverCategories\";\n }\n\n get routingKey() {\n if (typeof this.data.id === \"string\")\n return `categories.${this.data.id}.get`;\n if (Array.isArray(this.data.id)) return \"categories.batch.get\";\n return \"categories.get\";\n }\n}\n\nmodule.exports = DiscoverCategoriesCommand;\n", "const Command = require(\"./Command\");\nconst RequestError = require(\"../Errors/RequestError\");\n\nclass CreateShortLinkCommand extends Command {\n constructor({ title, destination, ...rest }) {\n if (!title) throw new RequestError(\"title is required\");\n if (!destination) throw new RequestError(\"destination to is required\");\n super({ title, destination, ...rest });\n }\n\n get name() {\n return \"CreateShortLink\";\n }\n\n get routingKey() {\n return \"comm.shortlink.create\";\n }\n}\n\nmodule.exports = CreateShortLinkCommand;\n", "const Command = require(\"./Command\");\nconst RequestError = require(\"../Errors/RequestError\");\n\nclass UpdateReservationCommand extends Command {\n constructor({ id, ...rest }) {\n if (!id) throw new RequestError(\"document type is required\");\n super({ id, ...rest });\n }\n\n get name() {\n return \"UpdateReservation\";\n }\n\n get routingKey() {\n return `reservation.${this.data.id}.update`;\n }\n}\n\nmodule.exports = UpdateReservationCommand;\n", "const Command = require(\"./Command\");\nconst RequestError = require(\"../Errors/RequestError\");\n\nclass UpdateUserCommand 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 if (!id) throw new RequestError(\"document type is required\");\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 get routingKey() {\n return `user.${this.data.id}.update`;\n }\n}\n\nmodule.exports = UpdateUserCommand;\n", "const Command = require(\"./Command\");\n\nclass GetMobileKeyCommand 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 get routingKey() {\n return `lock.${this.data.id}.set`;\n }\n}\n\nmodule.exports = GetMobileKeyCommand;\n", "const Command = require(\"./Command\");\n\nclass CreateImageUploadEndpointCommand extends Command {\n constructor({ id, expires, ...rest }) {\n super({ id, expires, ...rest });\n }\n\n get name() {\n return \"CreateImageUploadEndpoint\";\n }\n\n get routingKey() {\n return \"image.createUploadEndpoint\";\n }\n}\n\nmodule.exports = CreateImageUploadEndpointCommand;\n", "const Command = require(\"./Command\");\n\nclass UploadImageCommand 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 get routingKey() {\n return `image.${this.data.id}.upload`;\n }\n}\n\nmodule.exports = UploadImageCommand;\n", "const Command = require(\"./Command\");\n\nclass GetProductsCommand extends Command {\n constructor({ id, externalSystemId, ...rest }) {\n super({ id, externalSystemId, ...rest });\n }\n\n get name() {\n return \"GetProducts\";\n }\n\n get routingKey() {\n return `product.${this.data.id}.get`;\n }\n}\n\nmodule.exports = GetProductsCommand;\n", "const Command = require(\"./Command\");\n\nclass SellProductsCommand 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 get routingKey() {\n return `product.${this.data.id}.sell`;\n }\n}\n\nmodule.exports = SellProductsCommand;\n", "const SetSceneCommand = require(\"./SetSceneCommand\");\nconst SetAlarmCommand = require(\"./SetAlarmCommand\");\nconst SetDimmerCommand = require(\"./SetDimmerCommand\");\nconst SetSwitchCommand = require(\"./SetSwitchCommand\");\nconst SetThermostatCommand = require(\"./SetThermostatCommand\");\nconst SetLockCommand = require(\"./SetLockCommand\");\nconst SetWindowCoveringCommand = require(\"./SetWindowCoveringCommand\");\nconst SetCourtesyCommand = require(\"./SetCourtesyCommand\");\nconst SetMediaCommand = require(\"./SetMediaCommand\");\nconst DiscoverUsersCommand = require(\"./DiscoverUsersCommand\");\nconst OCRDocumentCommand = require(\"./OCRDocumentCommand\");\nconst CheckInReservationCommand = require(\"./CheckInReservationCommand\");\nconst CheckOutReservationCommand = require(\"./CheckOutReservationCommand\");\nconst SendEmailCommand = require(\"./SendEmailCommand\");\nconst SendSMSCommand = require(\"./SendSMSCommand\");\nconst DiscoverReservationsCommand = require(\"./DiscoverReservationsCommand\");\nconst DiscoverReservationSpaceCategoryAvailabilitiesCommand = require(\"./DiscoverReservationSpaceCategoryAvailabilitiesCommand\");\nconst DiscoverRoomsCommand = require(\"./DiscoverRoomsCommand\");\nconst DiscoverCategoriesCommand = require(\"./DiscoverCategoriesCommand\");\nconst CreateShortLinkCommand = require(\"./CreateShortLinkCommand\");\nconst UpdateReservationCommand = require(\"./UpdateReservationCommand\");\nconst UpdateUserCommand = require(\"./UpdateUserCommand\");\nconst GetMobileKeyCommand = require(\"./GetMobileKeyCommand\");\nconst CreateImageUploadEndpointCommand = require(\"./CreateImageUploadEndpointCommand\");\nconst UploadImageCommand = require(\"./UploadImageCommand\");\nconst GetProductsCommand = require(\"./GetProductsCommand\");\nconst SellProductsCommand = require(\"./SellProductsCommand\");\n\nmodule.exports = {\n SetSceneCommand,\n SetAlarmCommand,\n SetDimmerCommand,\n SetSwitchCommand,\n SetThermostatCommand,\n SetLockCommand,\n SetWindowCoveringCommand,\n SetCourtesyCommand,\n SetMediaCommand,\n OCRDocumentCommand,\n DiscoverUsersCommand,\n CheckInReservationCommand,\n CheckOutReservationCommand,\n SendSMSCommand,\n SendEmailCommand,\n DiscoverReservationsCommand,\n DiscoverReservationSpaceCategoryAvailabilitiesCommand,\n DiscoverRoomsCommand,\n DiscoverCategoriesCommand,\n CreateShortLinkCommand,\n UpdateReservationCommand,\n UpdateUserCommand,\n GetMobileKeyCommand,\n CreateImageUploadEndpointCommand,\n UploadImageCommand,\n GetProductsCommand,\n SellProductsCommand,\n};\n"],
5
+ "mappings": ";;;;;;;;AAAA;AAAA;AAAA,QAAM,UAAN,MAAc;AAAA,MAAd,OAAc;AAAA;AAAA;AAAA,MACZ,YAAY,MAAM;AAChB,aAAK,OAAO,CAAC;AACb,YAAI,CAAC;AAAM,gBAAM,IAAI,MAAM,0BAA0B;AACrD,YAAI,OAAO,SAAS;AAClB,gBAAM,IAAI,MAAM,gCAAgC;AAElD,mBAAW,OAAO,MAAM;AACtB,eAAK,KAAK,GAAG,IAAI,KAAK,GAAG;AAAA,QAC3B;AAAA,MACF;AAAA,MAEA,IAAI,OAAO;AACT,cAAM,IAAI,MAAM,0BAA0B;AAAA,MAC5C;AAAA,MAEA,IAAI,OAAO;AACT,eAAO;AAAA,MACT;AAAA,MAEA,IAAI,aAAa;AACf,eAAO;AAAA,MACT;AAAA,MAEA,IAAI,WAAW;AACb,eAAO;AAAA,MACT;AAAA,MAEA,QAAQ;AACN,eAAO,EAAE,MAAM,EAAE,GAAG,KAAK,KAAK,EAAE;AAAA,MAClC;AAAA,IACF;AAEA,WAAO,UAAU;AAAA;AAAA;;;ACjCjB;AAAA;AAAA,QAAM,UAAU;AAEhB,QAAM,kBAAN,cAA8B,QAAQ;AAAA,MAFtC,OAEsC;AAAA;AAAA;AAAA,MACpC,YAAY,EAAE,IAAI,SAAS,GAAG,KAAK,GAAG;AACpC,cAAM,EAAE,IAAI,SAAS,GAAG,KAAK,CAAC;AAAA,MAChC;AAAA,MAEA,IAAI,OAAO;AACT,eAAO;AAAA,MACT;AAAA,MAEA,IAAI,aA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ACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA;AAAA;",
6
6
  "names": []
7
7
  }
@@ -655,6 +655,56 @@ var require_ApplicationOutOfUseEvent = __commonJS({
655
655
  }
656
656
  });
657
657
 
658
+ // src/Events/ReservationCheckInEvent.js
659
+ var require_ReservationCheckInEvent = __commonJS({
660
+ "src/Events/ReservationCheckInEvent.js"(exports, module) {
661
+ var Event = require_Event();
662
+ var ReservationCheckInEvent = class extends Event {
663
+ static {
664
+ __name(this, "ReservationCheckInEvent");
665
+ }
666
+ constructor(reservation) {
667
+ super(reservation);
668
+ }
669
+ get name() {
670
+ return "ReservationCheckIn";
671
+ }
672
+ get routingKey() {
673
+ return `${this.data[0].organizationId || "#"}.${this.data[0].propertyId || "#"}.reservation.ReservationCheckIn`;
674
+ }
675
+ static get entity() {
676
+ return "reservation";
677
+ }
678
+ };
679
+ module.exports = ReservationCheckInEvent;
680
+ }
681
+ });
682
+
683
+ // src/Events/ReservationCheckOutEvent.js
684
+ var require_ReservationCheckOutEvent = __commonJS({
685
+ "src/Events/ReservationCheckOutEvent.js"(exports, module) {
686
+ var Event = require_Event();
687
+ var ReservationCheckOutEvent = class extends Event {
688
+ static {
689
+ __name(this, "ReservationCheckOutEvent");
690
+ }
691
+ constructor(reservation) {
692
+ super(reservation);
693
+ }
694
+ get name() {
695
+ return "ReservationCheckIn";
696
+ }
697
+ get routingKey() {
698
+ return `${this.data[0].organizationId || "#"}.${this.data[0].propertyId || "#"}.reservation.ReservationCheckOut`;
699
+ }
700
+ static get entity() {
701
+ return "reservation";
702
+ }
703
+ };
704
+ module.exports = ReservationCheckOutEvent;
705
+ }
706
+ });
707
+
658
708
  // src/Events/SystemEntityDeletedEvent.js
659
709
  var require_SystemEntityDeletedEvent = __commonJS({
660
710
  "src/Events/SystemEntityDeletedEvent.js"(exports, module) {
@@ -706,6 +756,8 @@ var require_Events = __commonJS({
706
756
  var ShortLinkCreatedEvent = require_ShortLinkCreatedEvent();
707
757
  var ApplicationInUseEvent = require_ApplicationInUseEvent();
708
758
  var ApplicationOutOfUseEvent = require_ApplicationOutOfUseEvent();
759
+ var ReservationCheckInEvent = require_ReservationCheckInEvent();
760
+ var ReservationCheckOutEvent = require_ReservationCheckOutEvent();
709
761
  var SystemEntityDeletedEvent = require_SystemEntityDeletedEvent();
710
762
  module.exports = {
711
763
  SystemAlarmUpdatedEvent,
@@ -734,7 +786,9 @@ var require_Events = __commonJS({
734
786
  EmailEvent,
735
787
  ShortLinkCreatedEvent,
736
788
  ApplicationInUseEvent,
737
- ApplicationOutOfUseEvent
789
+ ApplicationOutOfUseEvent,
790
+ ReservationCheckInEvent,
791
+ ReservationCheckOutEvent
738
792
  };
739
793
  }
740
794
  });
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/Events/Event.js", "../../src/Events/SystemGatewayUpdatedEvent.js", "../../src/Events/SystemThermostatUpdatedEvent.js", "../../src/Events/SystemDimmerUpdatedEvent.js", "../../src/Events/SystemSwitchUpdatedEvent.js", "../../src/Events/SystemLockUpdatedEvent.js", "../../src/Events/SystemCameraUpdatedEvent.js", "../../src/Events/SystemSceneControllerUpdatedEvent.js", "../../src/Events/SystemWindowCoveringUpdatedEvent.js", "../../src/Events/SystemMediaSourceUpdatedEvent.js", "../../src/Events/SystemCourtesyUpdatedEvent.js", "../../src/Events/SystemAlarmUpdatedEvent.js", "../../src/Events/SystemMotionSensorUpdatedEvent.js", "../../src/Events/SystemPropertyUpdatedEvent.js", "../../src/Events/SystemOrganizationUpdatedEvent.js", "../../src/Events/SystemCredentialUpdatedEvent.js", "../../src/Events/SceneSetEvent.js", "../../src/Events/SystemUserUpdatedEvent.js", "../../src/Events/SystemSpaceUpdatedEvent.js", "../../src/Events/SystemCategoryUpdatedEvent.js", "../../src/Events/SystemProductUpdatedEvent.js", "../../src/Events/SystemReservationUpdatedEvent.js", "../../src/Events/SMSEvent.js", "../../src/Events/EmailEvent.js", "../../src/Events/ShortLinkCreatedEvent.js", "../../src/Events/ApplicationInUseEvent.js", "../../src/Events/ApplicationOutOfUseEvent.js", "../../src/Events/SystemEntityDeletedEvent.js", "../../src/Events/index.js"],
4
- "sourcesContent": ["class Event {\n constructor(data, context) {\n this.data = [];\n this.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 this.data = this.data.map((d) => {\n if (d.eventData) {\n if (!d.eventData.timestamp) d.eventData.timestamp = new Date();\n if (!d.eventData.name) d.eventData.name = this.name;\n if (!d.eventData.type) d.eventData.type = this.type;\n }\n return d;\n });\n\n if (context) {\n for (const key in context) {\n this.context[key] = context[key];\n }\n }\n }\n\n get keyId() {\n if (Array.isArray(this.data)) return \"batch\";\n if (this.data.id) return this.data.id;\n return \"unknown\";\n }\n\n get name() {\n throw new Error(\"Event name is required\");\n }\n\n get type() {\n return \"Event\";\n }\n\n get routingKey() {\n return \"\";\n }\n\n get exchange() {\n return \"DriverEvents\";\n }\n\n build() {\n return { data: { ...this.data } };\n }\n}\n\nmodule.exports = Event;\n", "const Event = require(\"./Event\");\n\nclass SystemGatewayUpdatedEvent extends Event {\n constructor(space) {\n super(space);\n }\n\n get name() {\n return \"SystemGatewayUpdated\";\n }\n\n get routingKey() {\n return `gateway.${this.keyId}.updated`;\n }\n}\n\nmodule.exports = SystemGatewayUpdatedEvent;\n", "const Event = require(\"./Event\");\n\nclass SystemThermostatUpdatedEvent extends Event {\n constructor(thermostat) {\n super(thermostat);\n }\n\n get name() {\n return \"SystemThermostatUpdated\";\n }\n\n get routingKey() {\n return `thermostat.${this.keyId}.updated`;\n }\n}\n\nmodule.exports = SystemThermostatUpdatedEvent;\n", "const Event = require(\"./Event\");\n\nclass SystemDimmerUpdatedEvent extends Event {\n constructor(dimmer) {\n super(dimmer);\n }\n\n get name() {\n return \"SystemDimmerUpdated\";\n }\n\n get routingKey() {\n return `dimmer.${this.keyId}.updated`;\n }\n}\n\nmodule.exports = SystemDimmerUpdatedEvent;\n", "const Event = require(\"./Event\");\n\nclass SystemSwitchUpdatedEvent extends Event {\n constructor(_switch) {\n super(_switch);\n }\n\n get name() {\n return \"SystemSwitchUpdated\";\n }\n\n get routingKey() {\n return `switch.${this.keyId}.updated`; \n }\n}\n\nmodule.exports = SystemSwitchUpdatedEvent;\n", "const Event = require(\"./Event\");\n\nclass SystemLockUpdatedEvent extends Event {\n constructor(lock) {\n super(lock);\n }\n\n get name() {\n return \"SystemLockUpdated\";\n }\n\n get routingKey() {\n return `lock.${this.keyId}.updated`;\n }\n}\n\nmodule.exports = SystemLockUpdatedEvent;\n", "const Event = require(\"./Event\");\n\nclass SystemCameraUpdatedEvent extends Event {\n constructor(camera) {\n super(camera);\n }\n\n get name() {\n return \"SystemCameraUpdated\";\n }\n\n get routingKey() {\n return `camera.${this.keyId}.updated`;\n }\n}\n\nmodule.exports = SystemCameraUpdatedEvent;\n", "const Event = require(\"./Event\");\n\nclass SystemSceneControllerUpdatedEvent extends Event {\n constructor(sceneController) {\n super(sceneController);\n }\n\n get name() {\n return \"SystemSceneControllerUpdated\";\n }\n\n get routingKey() {\n return `sceneController.${this.keyId}.updated`;\n }\n}\n\nmodule.exports = SystemSceneControllerUpdatedEvent;\n", "const Event = require(\"./Event\");\n\nclass SystemWindowCoveringUpdatedEvent extends Event {\n constructor(wc) {\n super(wc);\n }\n\n get name() {\n return \"SystemWindowCoveringUpdated\";\n }\n\n get routingKey() {\n return `windowCovering.${this.keyId}.updated`;\n }\n}\n\nmodule.exports = SystemWindowCoveringUpdatedEvent;\n", "const Event = require(\"./Event\");\n\nclass SystemMediaSourceUpdatedEvent extends Event {\n constructor(mediaSource) {\n super(mediaSource);\n }\n\n get name() {\n return \"SystemMediaSourceUpdated\";\n }\n\n get routingKey() {\n return `mediaSource.${this.keyId}.updated`;\n }\n}\n \nmodule.exports = SystemMediaSourceUpdatedEvent;\n", "const Event = require(\"./Event\");\n\nclass SystemCourtesyUpdatedEvent extends Event {\n constructor(courtesy) {\n super(courtesy);\n }\n\n get name() {\n return \"SystemCourtesyUpdated\";\n }\n\n get routingKey() {\n return `courtesy.${this.keyId}.updated`;\n }\n}\n\nmodule.exports = SystemCourtesyUpdatedEvent;\n", "const Event = require(\"./Event\");\n\nclass SystemAlarmUpdatedEvent extends Event {\n constructor(alarm) {\n super(alarm);\n }\n\n get name() {\n return \"SystemAlarmUpdated\";\n }\n\n get routingKey() {\n return `alarm.${this.keyId}.updated`;\n }\n}\n\nmodule.exports = SystemAlarmUpdatedEvent;\n", "const Event = require(\"./Event\");\n\nclass SystemMotionSensorUpdatedEvent extends Event {\n constructor(mediaSource) {\n super(mediaSource);\n }\n\n get name() {\n return \"SystemMotionSensorUpdated\";\n }\n\n get routingKey() {\n return `mediaSource.${this.keyId}.updated`;\n }\n}\n\nmodule.exports = SystemMotionSensorUpdatedEvent;\n", "const Event = require(\"./Event\");\n\nclass SystemPropertyUpdatedEvent extends Event {\n constructor(property) {\n super(property);\n }\n\n get name() {\n return \"SystemPropertyUpdated\";\n }\n\n get routingKey() {\n return `property.${this.keyId}.updated`;\n }\n}\n\nmodule.exports = SystemPropertyUpdatedEvent;\n", "const Event = require(\"./Event\");\n\nclass SystemOrganizationUpdatedEvent extends Event {\n constructor(organization) {\n super(organization);\n }\n\n get name() {\n return \"SystemOrganizationUpdated\";\n }\n\n get routingKey() {\n return `organization.${this.keyId}.updated`;\n }\n}\n\nmodule.exports = SystemOrganizationUpdatedEvent;\n", "const Event = require(\"./Event\");\n\nclass SystemCredentialUpdatedEvent extends Event {\n constructor(data) {\n super(data);\n }\n\n get name() {\n return \"SystemCredentialUpdated\";\n }\n\n get routingKey() {\n return `credential.${this.keyId}.updated`;\n }\n}\n\nmodule.exports = SystemCredentialUpdatedEvent;\n", "const Event = require(\"./Event\");\n\nclass SceneSetEvent extends Event {\n constructor(scene) {\n super(scene);\n }\n\n get name() {\n return \"SceneSet\";\n }\n\n get routingKey() {\n return `scene.${this.keyId}.updated`;\n }\n}\n\nmodule.exports = SceneSetEvent;\n", "const Event = require(\"./Event\");\n\nclass SystemUserUpdatedEvent extends Event {\n constructor(user) {\n super(user);\n }\n\n get name() {\n return \"SystemUserUpdated\";\n }\n\n get routingKey() {\n return `user.${this.keyId}.updated`;\n }\n}\n\nmodule.exports = SystemUserUpdatedEvent;\n", "const Event = require(\"./Event\");\n\nclass SystemSpaceUpdatedEvent extends Event {\n constructor(space) {\n super(space);\n }\n\n get name() {\n return \"SystemSpaceUpdated\";\n }\n\n get routingKey() {\n return `space.${this.keyId}.updated`;\n }\n}\n\nmodule.exports = SystemSpaceUpdatedEvent;\n", "const Event = require(\"./Event\");\n\nclass SystemCategoryUpdatedEvent extends Event {\n constructor(space) {\n super(space);\n }\n\n get name() {\n return \"SystemCategoryUpdated\";\n }\n\n get routingKey() {\n return `category.${this.keyId}.updated`;\n }\n}\n\nmodule.exports = SystemCategoryUpdatedEvent;\n", "const Event = require(\"./Event\");\n\nclass SystemProductUpdatedEvent extends Event {\n constructor(product) {\n super(product);\n }\n\n get name() {\n return \"SystemProductUpdated\";\n }\n\n get routingKey() {\n return `product.${this.keyId}.updated`;\n }\n}\n\nmodule.exports = SystemProductUpdatedEvent;\n", "const Event = require(\"./Event\");\n\nclass SystemReservationUpdatedEvent extends Event {\n constructor(reservation) {\n super(reservation);\n }\n\n get name() {\n return \"SystemReservationUpdated\";\n }\n\n get routingKey() {\n return `reservation.${this.keyId}.updated`;\n }\n}\n\nmodule.exports = SystemReservationUpdatedEvent;\n", "const Event = require(\"./Event\");\n\nclass SMSEvent extends Event {\n constructor(sms, context) {\n super(sms, context);\n this.status = sms.status;\n }\n\n get name() {\n return \"SMSEvent\";\n }\n\n get routingKey() {\n return `comm.sms.${this.status}`;\n }\n}\n\nmodule.exports = SMSEvent;\n", "const Event = require(\"./Event\");\n\nclass EmailEvent extends Event {\n constructor(email, context) {\n super(email, context);\n this.status = email.status;\n }\n\n get name() {\n return \"EmailEvent\";\n }\n\n get routingKey() {\n return `comm.email.${this.status}`;\n }\n}\n\nmodule.exports = EmailEvent;\n", "const Event = require(\"./Event\");\n\nclass ShortLinkCreatedEvent extends Event {\n constructor(shortLink, context) {\n super(shortLink, context);\n }\n\n get name() {\n return \"ShortLinkCreated\";\n }\n\n get routingKey() {\n return `shortlink.${this.keyId}.created`;\n }\n}\n\nmodule.exports = ShortLinkCreatedEvent;\n", "const Event = require(\"./Event\");\n\nclass ApplicationInUseEvent extends Event {\n constructor({ propertyId, organizationId, ...rest }) {\n if (!propertyId)\n throw new Error(\"propertyId is required for ApplicationInUseEvent\");\n super({ propertyId, organizationId, ...rest });\n this._propertyId = propertyId;\n this._organizationId = organizationId;\n }\n\n get name() {\n return \"ApplicationInUse\";\n }\n\n get exchange() {\n return \"AppEvents\";\n }\n\n get routingKey() {\n return `app.${this._propertyId}.inUse`;\n }\n}\n\nmodule.exports = ApplicationInUseEvent;\n", "const Event = require(\"./Event\");\n\nclass ApplicationOutOfUseEvent extends Event {\n constructor({ propertyId, organizationId, ...rest }) {\n if (!propertyId)\n throw new Error(\"propertyId required for ApplicationOutOfUseEvent\");\n super({ propertyId, organizationId, ...rest });\n this._propertyId = propertyId;\n this._organizationId = organizationId;\n }\n\n get name() {\n return \"ApplicationOutOfUse\";\n }\n\n get exchange() {\n return \"AppEvents\";\n }\n\n get routingKey() {\n return `app.${this._propertyId}.outOfUse`;\n }\n}\n\nmodule.exports = ApplicationOutOfUseEvent;\n", "const Event = require(\"./Event\");\n\nclass SystemEntityDeletedEvent extends Event {\n constructor(data) {\n super(data);\n }\n\n get name() {\n return \"SystemEntityDeleted\";\n }\n\n get routingKey() {\n return `entity.${this.keyId}.deleted`;\n }\n}\n\nmodule.exports = SystemEntityDeletedEvent;\n", "const SystemGatewayUpdatedEvent = require(\"./SystemGatewayUpdatedEvent\");\nconst SystemThermostatUpdatedEvent = require(\"./SystemThermostatUpdatedEvent\");\nconst SystemDimmerUpdatedEvent = require(\"./SystemDimmerUpdatedEvent\");\nconst SystemSwitchUpdatedEvent = require(\"./SystemSwitchUpdatedEvent\");\nconst SystemLockUpdatedEvent = require(\"./SystemLockUpdatedEvent\");\nconst SystemCameraUpdatedEvent = require(\"./SystemCameraUpdatedEvent\");\nconst SystemSceneControllerUpdatedEvent = require(\"./SystemSceneControllerUpdatedEvent\");\nconst SystemWindowCoveringUpdatedEvent = require(\"./SystemWindowCoveringUpdatedEvent\");\nconst SystemMediaSourceUpdatedEvent = require(\"./SystemMediaSourceUpdatedEvent\");\nconst SystemCourtesyUpdatedEvent = require(\"./SystemCourtesyUpdatedEvent\");\nconst SystemAlarmUpdatedEvent = require(\"./SystemAlarmUpdatedEvent\");\nconst SystemMotionSensorUpdatedEvent = require(\"./SystemMotionSensorUpdatedEvent\");\nconst SystemPropertyUpdatedEvent = require(\"./SystemPropertyUpdatedEvent\");\nconst SystemOrganizationUpdatedEvent = require(\"./SystemOrganizationUpdatedEvent\");\nconst SystemCredentialUpdatedEvent = require(\"./SystemCredentialUpdatedEvent\");\n\nconst SceneSetEvent = require(\"./SceneSetEvent\");\n\nconst SystemUserUpdatedEvent = require(\"./SystemUserUpdatedEvent\");\nconst SystemSpaceUpdatedEvent = require(\"./SystemSpaceUpdatedEvent\");\nconst SystemCategoryUpdatedEvent = require(\"./SystemCategoryUpdatedEvent\");\nconst SystemProductUpdatedEvent = require(\"./SystemProductUpdatedEvent\");\n\nconst SystemReservationUpdatedEvent = require(\"./SystemReservationUpdatedEvent\");\n\nconst SMSEvent = require(\"./SMSEvent\");\nconst EmailEvent = require(\"./EmailEvent\");\nconst ShortLinkCreatedEvent = require(\"./ShortLinkCreatedEvent\");\n\nconst ApplicationInUseEvent = require(\"./ApplicationInUseEvent\");\nconst ApplicationOutOfUseEvent = require(\"./ApplicationOutOfUseEvent\");\n\n// Delete Events\nconst SystemEntityDeletedEvent = require(\"./SystemEntityDeletedEvent\");\n\n\nmodule.exports = {\n SystemAlarmUpdatedEvent,\n SystemCredentialUpdatedEvent,\n SystemGatewayUpdatedEvent,\n SystemThermostatUpdatedEvent,\n SystemDimmerUpdatedEvent,\n SystemSwitchUpdatedEvent,\n SystemLockUpdatedEvent,\n SystemCameraUpdatedEvent,\n SystemSceneControllerUpdatedEvent,\n SystemWindowCoveringUpdatedEvent,\n SystemMediaSourceUpdatedEvent,\n SystemMotionSensorUpdatedEvent,\n SystemCourtesyUpdatedEvent,\n SystemUserUpdatedEvent,\n SystemSpaceUpdatedEvent,\n SystemCategoryUpdatedEvent,\n SystemProductUpdatedEvent,\n SystemPropertyUpdatedEvent,\n SystemOrganizationUpdatedEvent,\n SystemReservationUpdatedEvent,\n SystemEntityDeletedEvent,\n SceneSetEvent,\n SMSEvent,\n EmailEvent,\n ShortLinkCreatedEvent,\n ApplicationInUseEvent,\n ApplicationOutOfUseEvent,\n};\n"],
5
- "mappings": ";;;;;;;;AAAA;AAAA;AAAA,QAAM,QAAN,MAAY;AAAA,MAAZ,OAAY;AAAA;AAAA;AAAA,MACV,YAAY,MAAM,SAAS;AACzB,aAAK,OAAO,CAAC;AACb,aAAK,UAAU,CAAC;AAChB,YAAI,CAAC;AAAM,gBAAM,IAAI,MAAM,wBAAwB;AACnD,YAAI,OAAO,SAAS,YAAY,CAAC,MAAM,QAAQ,IAAI;AACjD,gBAAM,IAAI,MAAM,uCAAuC;AAEzD,YAAI,CAAC,MAAM,QAAQ,IAAI;AAAG,eAAK,OAAO,CAAC,IAAI;AAAA;AACtC,eAAK,OAAO;AAEjB,aAAK,OAAO,KAAK,KAAK,IAAI,CAAC,MAAM;AAC/B,cAAI,EAAE,WAAW;AACf,gBAAI,CAAC,EAAE,UAAU;AAAW,gBAAE,UAAU,YAAY,oBAAI,KAAK;AAC7D,gBAAI,CAAC,EAAE,UAAU;AAAM,gBAAE,UAAU,OAAO,KAAK;AAC/C,gBAAI,CAAC,EAAE,UAAU;AAAM,gBAAE,UAAU,OAAO,KAAK;AAAA,UACjD;AACA,iBAAO;AAAA,QACT,CAAC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jB,QAAM,aAAa;AACnB,QAAM,wBAAwB;AAE9B,QAAM,wBAAwB;AAC9B,QAAM,2BAA2B;AAGjC,QAAM,2BAA2B;AAGjC,WAAO,UAAU;AAAA,MACf;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA;AAAA;",
3
+ "sources": ["../../src/Events/Event.js", "../../src/Events/SystemGatewayUpdatedEvent.js", "../../src/Events/SystemThermostatUpdatedEvent.js", "../../src/Events/SystemDimmerUpdatedEvent.js", "../../src/Events/SystemSwitchUpdatedEvent.js", "../../src/Events/SystemLockUpdatedEvent.js", "../../src/Events/SystemCameraUpdatedEvent.js", "../../src/Events/SystemSceneControllerUpdatedEvent.js", "../../src/Events/SystemWindowCoveringUpdatedEvent.js", "../../src/Events/SystemMediaSourceUpdatedEvent.js", "../../src/Events/SystemCourtesyUpdatedEvent.js", "../../src/Events/SystemAlarmUpdatedEvent.js", "../../src/Events/SystemMotionSensorUpdatedEvent.js", "../../src/Events/SystemPropertyUpdatedEvent.js", "../../src/Events/SystemOrganizationUpdatedEvent.js", "../../src/Events/SystemCredentialUpdatedEvent.js", "../../src/Events/SceneSetEvent.js", "../../src/Events/SystemUserUpdatedEvent.js", "../../src/Events/SystemSpaceUpdatedEvent.js", "../../src/Events/SystemCategoryUpdatedEvent.js", "../../src/Events/SystemProductUpdatedEvent.js", "../../src/Events/SystemReservationUpdatedEvent.js", "../../src/Events/SMSEvent.js", "../../src/Events/EmailEvent.js", "../../src/Events/ShortLinkCreatedEvent.js", "../../src/Events/ApplicationInUseEvent.js", "../../src/Events/ApplicationOutOfUseEvent.js", "../../src/Events/ReservationCheckInEvent.js", "../../src/Events/ReservationCheckOutEvent.js", "../../src/Events/SystemEntityDeletedEvent.js", "../../src/Events/index.js"],
4
+ "sourcesContent": ["class Event {\n constructor(data, context) {\n this.data = [];\n this.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 this.data = this.data.map((d) => {\n if (d.eventData) {\n if (!d.eventData.timestamp) d.eventData.timestamp = new Date();\n if (!d.eventData.name) d.eventData.name = this.name;\n if (!d.eventData.type) d.eventData.type = this.type;\n }\n return d;\n });\n\n if (context) {\n for (const key in context) {\n this.context[key] = context[key];\n }\n }\n }\n\n get keyId() {\n if (Array.isArray(this.data)) return \"batch\";\n if (this.data.id) return this.data.id;\n return \"unknown\";\n }\n\n get name() {\n throw new Error(\"Event name is required\");\n }\n\n get type() {\n return \"Event\";\n }\n\n get routingKey() {\n return \"\";\n }\n\n get exchange() {\n return \"DriverEvents\";\n }\n\n build() {\n return { data: { ...this.data } };\n }\n}\n\nmodule.exports = Event;\n", "const Event = require(\"./Event\");\n\nclass SystemGatewayUpdatedEvent extends Event {\n constructor(space) {\n super(space);\n }\n\n get name() {\n return \"SystemGatewayUpdated\";\n }\n\n get routingKey() {\n return `gateway.${this.keyId}.updated`;\n }\n}\n\nmodule.exports = SystemGatewayUpdatedEvent;\n", "const Event = require(\"./Event\");\n\nclass SystemThermostatUpdatedEvent extends Event {\n constructor(thermostat) {\n super(thermostat);\n }\n\n get name() {\n return \"SystemThermostatUpdated\";\n }\n\n get routingKey() {\n return `thermostat.${this.keyId}.updated`;\n }\n}\n\nmodule.exports = SystemThermostatUpdatedEvent;\n", "const Event = require(\"./Event\");\n\nclass SystemDimmerUpdatedEvent extends Event {\n constructor(dimmer) {\n super(dimmer);\n }\n\n get name() {\n return \"SystemDimmerUpdated\";\n }\n\n get routingKey() {\n return `dimmer.${this.keyId}.updated`;\n }\n}\n\nmodule.exports = SystemDimmerUpdatedEvent;\n", "const Event = require(\"./Event\");\n\nclass SystemSwitchUpdatedEvent extends Event {\n constructor(_switch) {\n super(_switch);\n }\n\n get name() {\n return \"SystemSwitchUpdated\";\n }\n\n get routingKey() {\n return `switch.${this.keyId}.updated`; \n }\n}\n\nmodule.exports = SystemSwitchUpdatedEvent;\n", "const Event = require(\"./Event\");\n\nclass SystemLockUpdatedEvent extends Event {\n constructor(lock) {\n super(lock);\n }\n\n get name() {\n return \"SystemLockUpdated\";\n }\n\n get routingKey() {\n return `lock.${this.keyId}.updated`;\n }\n}\n\nmodule.exports = SystemLockUpdatedEvent;\n", "const Event = require(\"./Event\");\n\nclass SystemCameraUpdatedEvent extends Event {\n constructor(camera) {\n super(camera);\n }\n\n get name() {\n return \"SystemCameraUpdated\";\n }\n\n get routingKey() {\n return `camera.${this.keyId}.updated`;\n }\n}\n\nmodule.exports = SystemCameraUpdatedEvent;\n", "const Event = require(\"./Event\");\n\nclass SystemSceneControllerUpdatedEvent extends Event {\n constructor(sceneController) {\n super(sceneController);\n }\n\n get name() {\n return \"SystemSceneControllerUpdated\";\n }\n\n get routingKey() {\n return `sceneController.${this.keyId}.updated`;\n }\n}\n\nmodule.exports = SystemSceneControllerUpdatedEvent;\n", "const Event = require(\"./Event\");\n\nclass SystemWindowCoveringUpdatedEvent extends Event {\n constructor(wc) {\n super(wc);\n }\n\n get name() {\n return \"SystemWindowCoveringUpdated\";\n }\n\n get routingKey() {\n return `windowCovering.${this.keyId}.updated`;\n }\n}\n\nmodule.exports = SystemWindowCoveringUpdatedEvent;\n", "const Event = require(\"./Event\");\n\nclass SystemMediaSourceUpdatedEvent extends Event {\n constructor(mediaSource) {\n super(mediaSource);\n }\n\n get name() {\n return \"SystemMediaSourceUpdated\";\n }\n\n get routingKey() {\n return `mediaSource.${this.keyId}.updated`;\n }\n}\n \nmodule.exports = SystemMediaSourceUpdatedEvent;\n", "const Event = require(\"./Event\");\n\nclass SystemCourtesyUpdatedEvent extends Event {\n constructor(courtesy) {\n super(courtesy);\n }\n\n get name() {\n return \"SystemCourtesyUpdated\";\n }\n\n get routingKey() {\n return `courtesy.${this.keyId}.updated`;\n }\n}\n\nmodule.exports = SystemCourtesyUpdatedEvent;\n", "const Event = require(\"./Event\");\n\nclass SystemAlarmUpdatedEvent extends Event {\n constructor(alarm) {\n super(alarm);\n }\n\n get name() {\n return \"SystemAlarmUpdated\";\n }\n\n get routingKey() {\n return `alarm.${this.keyId}.updated`;\n }\n}\n\nmodule.exports = SystemAlarmUpdatedEvent;\n", "const Event = require(\"./Event\");\n\nclass SystemMotionSensorUpdatedEvent extends Event {\n constructor(mediaSource) {\n super(mediaSource);\n }\n\n get name() {\n return \"SystemMotionSensorUpdated\";\n }\n\n get routingKey() {\n return `mediaSource.${this.keyId}.updated`;\n }\n}\n\nmodule.exports = SystemMotionSensorUpdatedEvent;\n", "const Event = require(\"./Event\");\n\nclass SystemPropertyUpdatedEvent extends Event {\n constructor(property) {\n super(property);\n }\n\n get name() {\n return \"SystemPropertyUpdated\";\n }\n\n get routingKey() {\n return `property.${this.keyId}.updated`;\n }\n}\n\nmodule.exports = SystemPropertyUpdatedEvent;\n", "const Event = require(\"./Event\");\n\nclass SystemOrganizationUpdatedEvent extends Event {\n constructor(organization) {\n super(organization);\n }\n\n get name() {\n return \"SystemOrganizationUpdated\";\n }\n\n get routingKey() {\n return `organization.${this.keyId}.updated`;\n }\n}\n\nmodule.exports = SystemOrganizationUpdatedEvent;\n", "const Event = require(\"./Event\");\n\nclass SystemCredentialUpdatedEvent extends Event {\n constructor(data) {\n super(data);\n }\n\n get name() {\n return \"SystemCredentialUpdated\";\n }\n\n get routingKey() {\n return `credential.${this.keyId}.updated`;\n }\n}\n\nmodule.exports = SystemCredentialUpdatedEvent;\n", "const Event = require(\"./Event\");\n\nclass SceneSetEvent extends Event {\n constructor(scene) {\n super(scene);\n }\n\n get name() {\n return \"SceneSet\";\n }\n\n get routingKey() {\n return `scene.${this.keyId}.updated`;\n }\n}\n\nmodule.exports = SceneSetEvent;\n", "const Event = require(\"./Event\");\n\nclass SystemUserUpdatedEvent extends Event {\n constructor(user) {\n super(user);\n }\n\n get name() {\n return \"SystemUserUpdated\";\n }\n\n get routingKey() {\n return `user.${this.keyId}.updated`;\n }\n}\n\nmodule.exports = SystemUserUpdatedEvent;\n", "const Event = require(\"./Event\");\n\nclass SystemSpaceUpdatedEvent extends Event {\n constructor(space) {\n super(space);\n }\n\n get name() {\n return \"SystemSpaceUpdated\";\n }\n\n get routingKey() {\n return `space.${this.keyId}.updated`;\n }\n}\n\nmodule.exports = SystemSpaceUpdatedEvent;\n", "const Event = require(\"./Event\");\n\nclass SystemCategoryUpdatedEvent extends Event {\n constructor(space) {\n super(space);\n }\n\n get name() {\n return \"SystemCategoryUpdated\";\n }\n\n get routingKey() {\n return `category.${this.keyId}.updated`;\n }\n}\n\nmodule.exports = SystemCategoryUpdatedEvent;\n", "const Event = require(\"./Event\");\n\nclass SystemProductUpdatedEvent extends Event {\n constructor(product) {\n super(product);\n }\n\n get name() {\n return \"SystemProductUpdated\";\n }\n\n get routingKey() {\n return `product.${this.keyId}.updated`;\n }\n}\n\nmodule.exports = SystemProductUpdatedEvent;\n", "const Event = require(\"./Event\");\n\nclass SystemReservationUpdatedEvent extends Event {\n constructor(reservation) {\n super(reservation);\n }\n\n get name() {\n return \"SystemReservationUpdated\";\n }\n\n get routingKey() {\n return `reservation.${this.keyId}.updated`;\n }\n}\n\nmodule.exports = SystemReservationUpdatedEvent;\n", "const Event = require(\"./Event\");\n\nclass SMSEvent extends Event {\n constructor(sms, context) {\n super(sms, context);\n this.status = sms.status;\n }\n\n get name() {\n return \"SMSEvent\";\n }\n\n get routingKey() {\n return `comm.sms.${this.status}`;\n }\n}\n\nmodule.exports = SMSEvent;\n", "const Event = require(\"./Event\");\n\nclass EmailEvent extends Event {\n constructor(email, context) {\n super(email, context);\n this.status = email.status;\n }\n\n get name() {\n return \"EmailEvent\";\n }\n\n get routingKey() {\n return `comm.email.${this.status}`;\n }\n}\n\nmodule.exports = EmailEvent;\n", "const Event = require(\"./Event\");\n\nclass ShortLinkCreatedEvent extends Event {\n constructor(shortLink, context) {\n super(shortLink, context);\n }\n\n get name() {\n return \"ShortLinkCreated\";\n }\n\n get routingKey() {\n return `shortlink.${this.keyId}.created`;\n }\n}\n\nmodule.exports = ShortLinkCreatedEvent;\n", "const Event = require(\"./Event\");\n\nclass ApplicationInUseEvent extends Event {\n constructor({ propertyId, organizationId, ...rest }) {\n if (!propertyId)\n throw new Error(\"propertyId is required for ApplicationInUseEvent\");\n super({ propertyId, organizationId, ...rest });\n this._propertyId = propertyId;\n this._organizationId = organizationId;\n }\n\n get name() {\n return \"ApplicationInUse\";\n }\n\n get exchange() {\n return \"AppEvents\";\n }\n\n get routingKey() {\n return `app.${this._propertyId}.inUse`;\n }\n}\n\nmodule.exports = ApplicationInUseEvent;\n", "const Event = require(\"./Event\");\n\nclass ApplicationOutOfUseEvent extends Event {\n constructor({ propertyId, organizationId, ...rest }) {\n if (!propertyId)\n throw new Error(\"propertyId required for ApplicationOutOfUseEvent\");\n super({ propertyId, organizationId, ...rest });\n this._propertyId = propertyId;\n this._organizationId = organizationId;\n }\n\n get name() {\n return \"ApplicationOutOfUse\";\n }\n\n get exchange() {\n return \"AppEvents\";\n }\n\n get routingKey() {\n return `app.${this._propertyId}.outOfUse`;\n }\n}\n\nmodule.exports = ApplicationOutOfUseEvent;\n", "const Event = require(\"./Event\");\n\nclass ReservationCheckInEvent extends Event {\n constructor(reservation) {\n super(reservation);\n }\n\n get name() {\n return \"ReservationCheckIn\";\n }\n\n get routingKey() {\n return `${this.data[0].organizationId || \"#\"}.${\n this.data[0].propertyId || \"#\"\n }.reservation.ReservationCheckIn`;\n }\n\n static get entity() {\n return \"reservation\";\n }\n}\n\nmodule.exports = ReservationCheckInEvent;\n", "const Event = require(\"./Event\");\n\nclass ReservationCheckOutEvent extends Event {\n constructor(reservation) {\n super(reservation);\n }\n\n get name() {\n return \"ReservationCheckIn\";\n }\n\n get routingKey() {\n return `${this.data[0].organizationId || \"#\"}.${\n this.data[0].propertyId || \"#\"\n }.reservation.ReservationCheckOut`;\n }\n\n static get entity() {\n return \"reservation\";\n }\n}\n\nmodule.exports = ReservationCheckOutEvent;\n", "const Event = require(\"./Event\");\n\nclass SystemEntityDeletedEvent extends Event {\n constructor(data) {\n super(data);\n }\n\n get name() {\n return \"SystemEntityDeleted\";\n }\n\n get routingKey() {\n return `entity.${this.keyId}.deleted`;\n }\n}\n\nmodule.exports = SystemEntityDeletedEvent;\n", "const SystemGatewayUpdatedEvent = require(\"./SystemGatewayUpdatedEvent\");\nconst SystemThermostatUpdatedEvent = require(\"./SystemThermostatUpdatedEvent\");\nconst SystemDimmerUpdatedEvent = require(\"./SystemDimmerUpdatedEvent\");\nconst SystemSwitchUpdatedEvent = require(\"./SystemSwitchUpdatedEvent\");\nconst SystemLockUpdatedEvent = require(\"./SystemLockUpdatedEvent\");\nconst SystemCameraUpdatedEvent = require(\"./SystemCameraUpdatedEvent\");\nconst SystemSceneControllerUpdatedEvent = require(\"./SystemSceneControllerUpdatedEvent\");\nconst SystemWindowCoveringUpdatedEvent = require(\"./SystemWindowCoveringUpdatedEvent\");\nconst SystemMediaSourceUpdatedEvent = require(\"./SystemMediaSourceUpdatedEvent\");\nconst SystemCourtesyUpdatedEvent = require(\"./SystemCourtesyUpdatedEvent\");\nconst SystemAlarmUpdatedEvent = require(\"./SystemAlarmUpdatedEvent\");\nconst SystemMotionSensorUpdatedEvent = require(\"./SystemMotionSensorUpdatedEvent\");\nconst SystemPropertyUpdatedEvent = require(\"./SystemPropertyUpdatedEvent\");\nconst SystemOrganizationUpdatedEvent = require(\"./SystemOrganizationUpdatedEvent\");\nconst SystemCredentialUpdatedEvent = require(\"./SystemCredentialUpdatedEvent\");\n\nconst SceneSetEvent = require(\"./SceneSetEvent\");\n\nconst SystemUserUpdatedEvent = require(\"./SystemUserUpdatedEvent\");\nconst SystemSpaceUpdatedEvent = require(\"./SystemSpaceUpdatedEvent\");\nconst SystemCategoryUpdatedEvent = require(\"./SystemCategoryUpdatedEvent\");\nconst SystemProductUpdatedEvent = require(\"./SystemProductUpdatedEvent\");\n\nconst SystemReservationUpdatedEvent = require(\"./SystemReservationUpdatedEvent\");\n\nconst SMSEvent = require(\"./SMSEvent\");\nconst EmailEvent = require(\"./EmailEvent\");\nconst ShortLinkCreatedEvent = require(\"./ShortLinkCreatedEvent\");\n\nconst ApplicationInUseEvent = require(\"./ApplicationInUseEvent\");\nconst ApplicationOutOfUseEvent = require(\"./ApplicationOutOfUseEvent\");\n\nconst ReservationCheckInEvent = require(\"./ReservationCheckInEvent\");\nconst ReservationCheckOutEvent = require(\"./ReservationCheckOutEvent\");\n\n\n// Delete Events\nconst SystemEntityDeletedEvent = require(\"./SystemEntityDeletedEvent\");\n\n\nmodule.exports = {\n SystemAlarmUpdatedEvent,\n SystemCredentialUpdatedEvent,\n SystemGatewayUpdatedEvent,\n SystemThermostatUpdatedEvent,\n SystemDimmerUpdatedEvent,\n SystemSwitchUpdatedEvent,\n SystemLockUpdatedEvent,\n SystemCameraUpdatedEvent,\n SystemSceneControllerUpdatedEvent,\n SystemWindowCoveringUpdatedEvent,\n SystemMediaSourceUpdatedEvent,\n SystemMotionSensorUpdatedEvent,\n SystemCourtesyUpdatedEvent,\n SystemUserUpdatedEvent,\n SystemSpaceUpdatedEvent,\n SystemCategoryUpdatedEvent,\n SystemProductUpdatedEvent,\n SystemPropertyUpdatedEvent,\n SystemOrganizationUpdatedEvent,\n SystemReservationUpdatedEvent,\n SystemEntityDeletedEvent,\n SceneSetEvent,\n SMSEvent,\n EmailEvent,\n ShortLinkCreatedEvent,\n ApplicationInUseEvent,\n ApplicationOutOfUseEvent,\n ReservationCheckInEvent,\n ReservationCheckOutEvent\n};\n"],
5
+ "mappings": ";;;;;;;;AAAA;AAAA;AAAA,QAAM,QAAN,MAAY;AAAA,MA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