@kohost/api-client 3.0.0-beta.37 → 3.0.0-beta.39

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.
@@ -91,8 +91,9 @@ var require_common = __commonJS({
91
91
  "crestron",
92
92
  "ecobee",
93
93
  "igor",
94
+ "inncom",
94
95
  "kohost-k7",
95
- "kohost",
96
+ "kohost-pms",
96
97
  "lg",
97
98
  "lirc",
98
99
  "mews",
@@ -172,7 +173,11 @@ var require_device = __commonJS({
172
173
  "softwareFailure",
173
174
  "hardwareFailureWithCode",
174
175
  "softwareFailureWithCode",
175
- "motionDetection"
176
+ "motionDetection",
177
+ "airFilterNeedsCleaned",
178
+ "smokeDetected",
179
+ "outsideSafeTemperatureRange",
180
+ "outsideSafeHumidityRange"
176
181
  ]
177
182
  }
178
183
  },
@@ -186,6 +191,9 @@ var require_device = __commonJS({
186
191
  timestamp: {
187
192
  type: "number",
188
193
  minimum: 1655907956593
194
+ },
195
+ description: {
196
+ type: "string"
189
197
  }
190
198
  }
191
199
  },
@@ -905,9 +913,6 @@ var require_thermostat = __commonJS({
905
913
  $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/type",
906
914
  default: "thermostat"
907
915
  },
908
- subType: {
909
- $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/subType"
910
- },
911
916
  driver: {
912
917
  $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/driver"
913
918
  },
@@ -933,16 +938,16 @@ var require_thermostat = __commonJS({
933
938
  $ref: "#/properties/supportedHvacModes/items"
934
939
  },
935
940
  hvacState: {
936
- type: "string",
937
- enum: ["cooling", "heating", "off"]
941
+ type: ["string", "null"],
942
+ enum: ["cooling", "heating", "off", null]
938
943
  },
939
944
  fanMode: {
940
945
  type: "string",
941
946
  $ref: "#/properties/supportedFanModes/items"
942
947
  },
943
948
  fanState: {
944
- type: "string",
945
- enum: ["off", "low", "medium", "high"]
949
+ type: ["string", "null"],
950
+ enum: ["off", "low", "medium", "high", "on", null]
946
951
  },
947
952
  temperatureScale: {
948
953
  type: "string",
@@ -984,6 +989,10 @@ var require_thermostat = __commonJS({
984
989
  }
985
990
  },
986
991
  minAutoDelta: {
992
+ type: "number",
993
+ default: 3
994
+ },
995
+ cycleRate: {
987
996
  type: "number"
988
997
  },
989
998
  batteryLevel: {
@@ -3125,7 +3134,10 @@ var require_ticket = __commonJS({
3125
3134
  id: {
3126
3135
  type: "string"
3127
3136
  },
3128
- user: {
3137
+ userId: {
3138
+ type: "string"
3139
+ },
3140
+ userName: {
3129
3141
  type: "string"
3130
3142
  },
3131
3143
  timestamp: {
@@ -3142,7 +3154,7 @@ var require_ticket = __commonJS({
3142
3154
  }
3143
3155
  }
3144
3156
  },
3145
- required: ["user", "id", "timestamp", "body"]
3157
+ required: ["userId", "id", "timestamp", "body"]
3146
3158
  }
3147
3159
  },
3148
3160
  requester: {
@@ -3233,8 +3245,8 @@ var require_ticket2 = __commonJS({
3233
3245
  return msg;
3234
3246
  });
3235
3247
  const sorted = sortBy(mapped, ["timestamp"]);
3236
- const firstMsg = sorted.find((entry) => entry.user === requester);
3237
- const firstResponse = sorted.find((entry) => entry.user !== requester);
3248
+ const firstMsg = sorted.find((entry) => entry.userId === requester);
3249
+ const firstResponse = sorted.find((entry) => entry.userId !== requester);
3238
3250
  if (firstMsg && firstResponse) {
3239
3251
  const firstMsgTime = firstMsg.timestamp.getTime() / 1e3;
3240
3252
  const firstResponseTime = firstResponse.timestamp.getTime() / 1e3;
@@ -3258,12 +3270,12 @@ var require_ticket2 = __commonJS({
3258
3270
  const requester = this.requester;
3259
3271
  const sorted = sortBy(conversation, ["timestamp"]);
3260
3272
  const lastFromNonRequester = findLast(sorted, function(c) {
3261
- return c.user !== requester;
3273
+ return c.userId !== requester;
3262
3274
  });
3263
3275
  if (!lastFromNonRequester)
3264
3276
  return null;
3265
3277
  else
3266
- return lastFromNonRequester.user;
3278
+ return lastFromNonRequester.userId;
3267
3279
  }
3268
3280
  });
3269
3281
  module2.exports = Ticket2;
package/dist/cjs/utils.js CHANGED
@@ -134,8 +134,9 @@ var require_common = __commonJS({
134
134
  "crestron",
135
135
  "ecobee",
136
136
  "igor",
137
+ "inncom",
137
138
  "kohost-k7",
138
- "kohost",
139
+ "kohost-pms",
139
140
  "lg",
140
141
  "lirc",
141
142
  "mews",
@@ -215,7 +216,11 @@ var require_device = __commonJS({
215
216
  "softwareFailure",
216
217
  "hardwareFailureWithCode",
217
218
  "softwareFailureWithCode",
218
- "motionDetection"
219
+ "motionDetection",
220
+ "airFilterNeedsCleaned",
221
+ "smokeDetected",
222
+ "outsideSafeTemperatureRange",
223
+ "outsideSafeHumidityRange"
219
224
  ]
220
225
  }
221
226
  },
@@ -229,6 +234,9 @@ var require_device = __commonJS({
229
234
  timestamp: {
230
235
  type: "number",
231
236
  minimum: 1655907956593
237
+ },
238
+ description: {
239
+ type: "string"
232
240
  }
233
241
  }
234
242
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
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/SystemMotionSensorUpdatedEvent.js", "../../src/Events/SystemUserUpdatedEvent.js", "../../src/Events/SystemSpaceUpdatedEvent.js", "../../src/Events/SystemSpaceTypeUpdatedEvent.js", "../../src/Events/SystemProductUpdatedEvent.js", "../../src/Events/SystemReservationUpdatedEvent.js", "../../src/Events/SMSSentEvent.js", "../../src/Events/EmailSentEvent.js", "../../src/Events/ShortLinkCreatedEvent.js", "../../src/Events/ApplicationInUseEvent.js", "../../src/Events/ApplicationOutOfUseEvent.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 \"Events\";\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 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 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 SystemSpaceTypeUpdatedEvent extends Event {\n constructor(space) {\n super(space);\n }\n\n get name() {\n return \"SystemSpaceTypeUpdated\";\n }\n\n get routingKey() {\n\n return `spaceType.${this.keyId}.updated`; \n }\n}\n\nmodule.exports = SystemSpaceTypeUpdatedEvent; \n \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 SMSSentEvent extends Event {\n constructor(email, context) {\n super(email, context);\n }\n\n get name() {\n return \"SMSSent\";\n }\n\n get routingKey() {\n return \"comm.sms.sent\";\n }\n}\n\nmodule.exports = SMSSentEvent;\n", "const Event = require(\"./Event\");\n\nclass EmailSentEvent extends Event {\n constructor(email, context) {\n super(email, context);\n }\n\n get name() {\n return \"EmailSent\";\n }\n\n get routingKey() {\n return \"comm.email.sent\";\n }\n}\n\nmodule.exports = EmailSentEvent;\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 }) {\n super({ propertyId });\n }\n\n get name() {\n return \"ApplicationInUse\";\n }\n\n get routingKey() {\n return `app.${this.data[0].propertyId}.inUse`;\n }\n}\n\nmodule.exports = ApplicationInUseEvent;\n", "const Event = require(\"./Event\");\n\nclass ApplicationOutOfUseEvent extends Event {\n constructor({ propertyId }) {\n super({ propertyId });\n }\n\n get name() {\n return \"ApplicationOutOfUse\";\n }\n\n get routingKey() {\n return `app.${this.data[0].propertyId}.notInUse`;\n }\n}\n\nmodule.exports = ApplicationOutOfUseEvent;\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\");\n\nconst SystemMotionSensorUpdatedEvent = require(\"./SystemMotionSensorUpdatedEvent\");\n\nconst SystemUserUpdatedEvent = require(\"./SystemUserUpdatedEvent\");\nconst SystemSpaceUpdatedEvent = require(\"./SystemSpaceUpdatedEvent\");\nconst SystemSpaceTypeUpdatedEvent = require(\"./SystemSpaceTypeUpdatedEvent\");\nconst SystemProductUpdatedEvent = require(\"./SystemProductUpdatedEvent\");\n\nconst SystemReservationUpdatedEvent = require(\"./SystemReservationUpdatedEvent\");\n\nconst SMSSentEvent = require(\"./SMSSentEvent\");\nconst EmailSentEvent = require(\"./EmailSentEvent\");\nconst ShortLinkCreatedEvent = require(\"./ShortLinkCreatedEvent\");\n\nconst ApplicationInUseEvent = require(\"./ApplicationInUseEvent\");\nconst ApplicationOutOfUseEvent = require(\"./ApplicationOutOfUseEvent\");\n\nmodule.exports = {\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 SystemSpaceTypeUpdatedEvent,\n SystemProductUpdatedEvent,\n SystemReservationUpdatedEvent,\n SMSSentEvent,\n EmailSentEvent,\n ShortLinkCreatedEvent,\n ApplicationInUseEvent,\n ApplicationOutOfUseEvent,\n};\n"],
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 \"Events\";\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 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 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 SystemSpaceTypeUpdatedEvent extends Event {\n constructor(space) {\n super(space);\n }\n\n get name() {\n return \"SystemSpaceTypeUpdated\";\n }\n\n get routingKey() {\n\n return `spaceType.${this.keyId}.updated`; \n }\n}\n\nmodule.exports = SystemSpaceTypeUpdatedEvent; \n \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 SMSSentEvent extends Event {\n constructor(email, context) {\n super(email, context);\n }\n\n get name() {\n return \"SMSSent\";\n }\n\n get routingKey() {\n return \"comm.sms.sent\";\n }\n}\n\nmodule.exports = SMSSentEvent;\n", "const Event = require(\"./Event\");\n\nclass EmailSentEvent extends Event {\n constructor(email, context) {\n super(email, context);\n }\n\n get name() {\n return \"EmailSent\";\n }\n\n get routingKey() {\n return \"comm.email.sent\";\n }\n}\n\nmodule.exports = EmailSentEvent;\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 }) {\n super({ propertyId });\n }\n\n get name() {\n return \"ApplicationInUse\";\n }\n\n get routingKey() {\n return `app.${this.data[0].propertyId}.inUse`;\n }\n}\n\nmodule.exports = ApplicationInUseEvent;\n", "const Event = require(\"./Event\");\n\nclass ApplicationOutOfUseEvent extends Event {\n constructor({ propertyId }) {\n super({ propertyId });\n }\n\n get name() {\n return \"ApplicationOutOfUse\";\n }\n\n get routingKey() {\n return `app.${this.data[0].propertyId}.notInUse`;\n }\n}\n\nmodule.exports = ApplicationOutOfUseEvent;\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\");\n\nconst SystemMotionSensorUpdatedEvent = require(\"./SystemMotionSensorUpdatedEvent\");\n\nconst SystemUserUpdatedEvent = require(\"./SystemUserUpdatedEvent\");\nconst SystemSpaceUpdatedEvent = require(\"./SystemSpaceUpdatedEvent\");\nconst SystemSpaceTypeUpdatedEvent = require(\"./SystemSpaceTypeUpdatedEvent\");\nconst SystemProductUpdatedEvent = require(\"./SystemProductUpdatedEvent\");\n\nconst SystemReservationUpdatedEvent = require(\"./SystemReservationUpdatedEvent\");\n\nconst SMSSentEvent = require(\"./SMSSentEvent\");\nconst EmailSentEvent = require(\"./EmailSentEvent\");\nconst ShortLinkCreatedEvent = require(\"./ShortLinkCreatedEvent\");\n\nconst ApplicationInUseEvent = require(\"./ApplicationInUseEvent\");\nconst ApplicationOutOfUseEvent = require(\"./ApplicationOutOfUseEvent\");\n\nmodule.exports = {\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 SystemSpaceTypeUpdatedEvent,\n SystemProductUpdatedEvent,\n SystemReservationUpdatedEvent,\n SMSSentEvent,\n EmailSentEvent,\n ShortLinkCreatedEvent,\n ApplicationInUseEvent,\n ApplicationOutOfUseEvent,\n};\n"],
5
5
  "mappings": ";;;;;;;;AAAA;AAAA;AAAA,QAAM,QAAN,MAAY;AAAA,MACV,YAAY,MAAM,SAAS;AACzB,aAAK,OAAO,CAAC;AACb,aAAK,UAAU,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ACrB,QAAM,iBAAiB;AACvB,QAAM,wBAAwB;AAE9B,QAAM,wBAAwB;AAC9B,QAAM,2BAA2B;AAEjC,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,IACF;AAAA;AAAA;",
6
6
  "names": []
7
7
  }
@@ -7468,8 +7468,9 @@ var require_common = __commonJS({
7468
7468
  "crestron",
7469
7469
  "ecobee",
7470
7470
  "igor",
7471
+ "inncom",
7471
7472
  "kohost-k7",
7472
- "kohost",
7473
+ "kohost-pms",
7473
7474
  "lg",
7474
7475
  "lirc",
7475
7476
  "mews",
@@ -7549,7 +7550,11 @@ var require_device = __commonJS({
7549
7550
  "softwareFailure",
7550
7551
  "hardwareFailureWithCode",
7551
7552
  "softwareFailureWithCode",
7552
- "motionDetection"
7553
+ "motionDetection",
7554
+ "airFilterNeedsCleaned",
7555
+ "smokeDetected",
7556
+ "outsideSafeTemperatureRange",
7557
+ "outsideSafeHumidityRange"
7553
7558
  ]
7554
7559
  }
7555
7560
  },
@@ -7563,6 +7568,9 @@ var require_device = __commonJS({
7563
7568
  timestamp: {
7564
7569
  type: "number",
7565
7570
  minimum: 1655907956593
7571
+ },
7572
+ description: {
7573
+ type: "string"
7566
7574
  }
7567
7575
  }
7568
7576
  },
@@ -8337,9 +8345,6 @@ var require_thermostat = __commonJS({
8337
8345
  $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/type",
8338
8346
  default: "thermostat"
8339
8347
  },
8340
- subType: {
8341
- $ref: "https://api.kohost.io/schemas/v3/definitions/device.json#/definitions/subType"
8342
- },
8343
8348
  driver: {
8344
8349
  $ref: "https://api.kohost.io/schemas/v3/definitions/common.json#/definitions/driver"
8345
8350
  },
@@ -8365,16 +8370,16 @@ var require_thermostat = __commonJS({
8365
8370
  $ref: "#/properties/supportedHvacModes/items"
8366
8371
  },
8367
8372
  hvacState: {
8368
- type: "string",
8369
- enum: ["cooling", "heating", "off"]
8373
+ type: ["string", "null"],
8374
+ enum: ["cooling", "heating", "off", null]
8370
8375
  },
8371
8376
  fanMode: {
8372
8377
  type: "string",
8373
8378
  $ref: "#/properties/supportedFanModes/items"
8374
8379
  },
8375
8380
  fanState: {
8376
- type: "string",
8377
- enum: ["off", "low", "medium", "high"]
8381
+ type: ["string", "null"],
8382
+ enum: ["off", "low", "medium", "high", "on", null]
8378
8383
  },
8379
8384
  temperatureScale: {
8380
8385
  type: "string",
@@ -8416,6 +8421,10 @@ var require_thermostat = __commonJS({
8416
8421
  }
8417
8422
  },
8418
8423
  minAutoDelta: {
8424
+ type: "number",
8425
+ default: 3
8426
+ },
8427
+ cycleRate: {
8419
8428
  type: "number"
8420
8429
  },
8421
8430
  batteryLevel: {
@@ -11305,7 +11314,10 @@ var require_ticket = __commonJS({
11305
11314
  id: {
11306
11315
  type: "string"
11307
11316
  },
11308
- user: {
11317
+ userId: {
11318
+ type: "string"
11319
+ },
11320
+ userName: {
11309
11321
  type: "string"
11310
11322
  },
11311
11323
  timestamp: {
@@ -11322,7 +11334,7 @@ var require_ticket = __commonJS({
11322
11334
  }
11323
11335
  }
11324
11336
  },
11325
- required: ["user", "id", "timestamp", "body"]
11337
+ required: ["userId", "id", "timestamp", "body"]
11326
11338
  }
11327
11339
  },
11328
11340
  requester: {
@@ -13477,8 +13489,8 @@ var require_ticket2 = __commonJS({
13477
13489
  return msg;
13478
13490
  });
13479
13491
  const sorted = sortBy(mapped, ["timestamp"]);
13480
- const firstMsg = sorted.find((entry) => entry.user === requester);
13481
- const firstResponse = sorted.find((entry) => entry.user !== requester);
13492
+ const firstMsg = sorted.find((entry) => entry.userId === requester);
13493
+ const firstResponse = sorted.find((entry) => entry.userId !== requester);
13482
13494
  if (firstMsg && firstResponse) {
13483
13495
  const firstMsgTime = firstMsg.timestamp.getTime() / 1e3;
13484
13496
  const firstResponseTime = firstResponse.timestamp.getTime() / 1e3;
@@ -13502,12 +13514,12 @@ var require_ticket2 = __commonJS({
13502
13514
  const requester = this.requester;
13503
13515
  const sorted = sortBy(conversation, ["timestamp"]);
13504
13516
  const lastFromNonRequester = findLast(sorted, function(c) {
13505
- return c.user !== requester;
13517
+ return c.userId !== requester;
13506
13518
  });
13507
13519
  if (!lastFromNonRequester)
13508
13520
  return null;
13509
13521
  else
13510
- return lastFromNonRequester.user;
13522
+ return lastFromNonRequester.userId;
13511
13523
  }
13512
13524
  });
13513
13525
  module.exports = Ticket;