@kohost/api-client 3.0.0-beta.36 → 3.0.0-beta.38
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.
- package/dist/cjs/Models.js +21 -12
- package/dist/cjs/utils.js +5 -2
- package/dist/esm/Events.js.map +1 -1
- package/dist/esm/Models.js +21 -12
- package/dist/esm/Models.js.map +2 -2
- package/dist/esm/utils.js +5 -2
- package/dist/esm/utils.js.map +2 -2
- package/package.json +1 -1
package/dist/cjs/Models.js
CHANGED
|
@@ -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,9 @@ var require_device = __commonJS({
|
|
|
172
173
|
"softwareFailure",
|
|
173
174
|
"hardwareFailureWithCode",
|
|
174
175
|
"softwareFailureWithCode",
|
|
175
|
-
"motionDetection"
|
|
176
|
+
"motionDetection",
|
|
177
|
+
"airFilterNeedsCleaned",
|
|
178
|
+
"smokeDetected"
|
|
176
179
|
]
|
|
177
180
|
}
|
|
178
181
|
},
|
|
@@ -933,16 +936,16 @@ var require_thermostat = __commonJS({
|
|
|
933
936
|
$ref: "#/properties/supportedHvacModes/items"
|
|
934
937
|
},
|
|
935
938
|
hvacState: {
|
|
936
|
-
type: "string",
|
|
937
|
-
enum: ["cooling", "heating", "off"]
|
|
939
|
+
type: ["string", "null"],
|
|
940
|
+
enum: ["cooling", "heating", "off", null]
|
|
938
941
|
},
|
|
939
942
|
fanMode: {
|
|
940
943
|
type: "string",
|
|
941
944
|
$ref: "#/properties/supportedFanModes/items"
|
|
942
945
|
},
|
|
943
946
|
fanState: {
|
|
944
|
-
type: "string",
|
|
945
|
-
enum: ["off", "low", "medium", "high"]
|
|
947
|
+
type: ["string", "null"],
|
|
948
|
+
enum: ["off", "low", "medium", "high", null]
|
|
946
949
|
},
|
|
947
950
|
temperatureScale: {
|
|
948
951
|
type: "string",
|
|
@@ -3125,7 +3128,10 @@ var require_ticket = __commonJS({
|
|
|
3125
3128
|
id: {
|
|
3126
3129
|
type: "string"
|
|
3127
3130
|
},
|
|
3128
|
-
|
|
3131
|
+
userId: {
|
|
3132
|
+
type: "string"
|
|
3133
|
+
},
|
|
3134
|
+
userName: {
|
|
3129
3135
|
type: "string"
|
|
3130
3136
|
},
|
|
3131
3137
|
timestamp: {
|
|
@@ -3142,7 +3148,7 @@ var require_ticket = __commonJS({
|
|
|
3142
3148
|
}
|
|
3143
3149
|
}
|
|
3144
3150
|
},
|
|
3145
|
-
required: ["
|
|
3151
|
+
required: ["userId", "id", "timestamp", "body"]
|
|
3146
3152
|
}
|
|
3147
3153
|
},
|
|
3148
3154
|
requester: {
|
|
@@ -3233,8 +3239,8 @@ var require_ticket2 = __commonJS({
|
|
|
3233
3239
|
return msg;
|
|
3234
3240
|
});
|
|
3235
3241
|
const sorted = sortBy(mapped, ["timestamp"]);
|
|
3236
|
-
const firstMsg = sorted.find((entry) => entry.
|
|
3237
|
-
const firstResponse = sorted.find((entry) => entry.
|
|
3242
|
+
const firstMsg = sorted.find((entry) => entry.userId === requester);
|
|
3243
|
+
const firstResponse = sorted.find((entry) => entry.userId !== requester);
|
|
3238
3244
|
if (firstMsg && firstResponse) {
|
|
3239
3245
|
const firstMsgTime = firstMsg.timestamp.getTime() / 1e3;
|
|
3240
3246
|
const firstResponseTime = firstResponse.timestamp.getTime() / 1e3;
|
|
@@ -3258,12 +3264,12 @@ var require_ticket2 = __commonJS({
|
|
|
3258
3264
|
const requester = this.requester;
|
|
3259
3265
|
const sorted = sortBy(conversation, ["timestamp"]);
|
|
3260
3266
|
const lastFromNonRequester = findLast(sorted, function(c) {
|
|
3261
|
-
return c.
|
|
3267
|
+
return c.userId !== requester;
|
|
3262
3268
|
});
|
|
3263
3269
|
if (!lastFromNonRequester)
|
|
3264
3270
|
return null;
|
|
3265
3271
|
else
|
|
3266
|
-
return lastFromNonRequester.
|
|
3272
|
+
return lastFromNonRequester.userId;
|
|
3267
3273
|
}
|
|
3268
3274
|
});
|
|
3269
3275
|
module2.exports = Ticket2;
|
|
@@ -3446,6 +3452,9 @@ var require_discoveredDevice = __commonJS({
|
|
|
3446
3452
|
},
|
|
3447
3453
|
deviceData: {
|
|
3448
3454
|
type: "object"
|
|
3455
|
+
},
|
|
3456
|
+
ignore: {
|
|
3457
|
+
type: "boolean"
|
|
3449
3458
|
}
|
|
3450
3459
|
}
|
|
3451
3460
|
};
|
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,9 @@ var require_device = __commonJS({
|
|
|
215
216
|
"softwareFailure",
|
|
216
217
|
"hardwareFailureWithCode",
|
|
217
218
|
"softwareFailureWithCode",
|
|
218
|
-
"motionDetection"
|
|
219
|
+
"motionDetection",
|
|
220
|
+
"airFilterNeedsCleaned",
|
|
221
|
+
"smokeDetected"
|
|
219
222
|
]
|
|
220
223
|
}
|
|
221
224
|
},
|
package/dist/esm/Events.js.map
CHANGED
|
@@ -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,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;AAED,YAAI,SAAS;AACX,qBAAW,OAAO,SAAS;AACzB,iBAAK,QAAQ,GAAG,IAAI,QAAQ,GAAG;AAAA,UACjC;AAAA,QACF;AAAA,MACF;AAAA,MAEA,IAAI,QAAQ;AACV,YAAI,MAAM,QAAQ,KAAK,IAAI;AAAG,iBAAO;AACrC,YAAI,KAAK,KAAK;AAAI,iBAAO,KAAK,KAAK;AACnC,eAAO;AA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AC7B;AAAA,IACF;AAZM;AAcN,WAAO,UAAU;AAAA;AAAA;;;AChBjB;AAAA;AAAA,QAAM,4BAA4B;AAClC,QAAM,+BAA+B;AACrC,QAAM,2BAA2B;AACjC,QAAM,2BAA2B;AACjC,QAAM,yBAAyB;AAC/B,QAAM,2BAA2B;AACjC,QAAM,oCAAoC;AAC1C,QAAM,mCAAmC;AACzC,QAAM,gCAAgC;AACtC,QAAM,6BAA6B;AAEnC,QAAM,iCAAiC;AAEvC,QAAM,yBAAyB;AAC/B,QAAM,0BAA0B;AAChC,QAAM,8BAA8B;AACpC,QAAM,4BAA4B;AAElC,QAAM,gCAAgC;AAEtC,QAAM,eAAe;AACrB,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
|
}
|
package/dist/esm/Models.js
CHANGED
|
@@ -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,9 @@ var require_device = __commonJS({
|
|
|
7549
7550
|
"softwareFailure",
|
|
7550
7551
|
"hardwareFailureWithCode",
|
|
7551
7552
|
"softwareFailureWithCode",
|
|
7552
|
-
"motionDetection"
|
|
7553
|
+
"motionDetection",
|
|
7554
|
+
"airFilterNeedsCleaned",
|
|
7555
|
+
"smokeDetected"
|
|
7553
7556
|
]
|
|
7554
7557
|
}
|
|
7555
7558
|
},
|
|
@@ -8365,16 +8368,16 @@ var require_thermostat = __commonJS({
|
|
|
8365
8368
|
$ref: "#/properties/supportedHvacModes/items"
|
|
8366
8369
|
},
|
|
8367
8370
|
hvacState: {
|
|
8368
|
-
type: "string",
|
|
8369
|
-
enum: ["cooling", "heating", "off"]
|
|
8371
|
+
type: ["string", "null"],
|
|
8372
|
+
enum: ["cooling", "heating", "off", null]
|
|
8370
8373
|
},
|
|
8371
8374
|
fanMode: {
|
|
8372
8375
|
type: "string",
|
|
8373
8376
|
$ref: "#/properties/supportedFanModes/items"
|
|
8374
8377
|
},
|
|
8375
8378
|
fanState: {
|
|
8376
|
-
type: "string",
|
|
8377
|
-
enum: ["off", "low", "medium", "high"]
|
|
8379
|
+
type: ["string", "null"],
|
|
8380
|
+
enum: ["off", "low", "medium", "high", null]
|
|
8378
8381
|
},
|
|
8379
8382
|
temperatureScale: {
|
|
8380
8383
|
type: "string",
|
|
@@ -11305,7 +11308,10 @@ var require_ticket = __commonJS({
|
|
|
11305
11308
|
id: {
|
|
11306
11309
|
type: "string"
|
|
11307
11310
|
},
|
|
11308
|
-
|
|
11311
|
+
userId: {
|
|
11312
|
+
type: "string"
|
|
11313
|
+
},
|
|
11314
|
+
userName: {
|
|
11309
11315
|
type: "string"
|
|
11310
11316
|
},
|
|
11311
11317
|
timestamp: {
|
|
@@ -11322,7 +11328,7 @@ var require_ticket = __commonJS({
|
|
|
11322
11328
|
}
|
|
11323
11329
|
}
|
|
11324
11330
|
},
|
|
11325
|
-
required: ["
|
|
11331
|
+
required: ["userId", "id", "timestamp", "body"]
|
|
11326
11332
|
}
|
|
11327
11333
|
},
|
|
11328
11334
|
requester: {
|
|
@@ -13477,8 +13483,8 @@ var require_ticket2 = __commonJS({
|
|
|
13477
13483
|
return msg;
|
|
13478
13484
|
});
|
|
13479
13485
|
const sorted = sortBy(mapped, ["timestamp"]);
|
|
13480
|
-
const firstMsg = sorted.find((entry) => entry.
|
|
13481
|
-
const firstResponse = sorted.find((entry) => entry.
|
|
13486
|
+
const firstMsg = sorted.find((entry) => entry.userId === requester);
|
|
13487
|
+
const firstResponse = sorted.find((entry) => entry.userId !== requester);
|
|
13482
13488
|
if (firstMsg && firstResponse) {
|
|
13483
13489
|
const firstMsgTime = firstMsg.timestamp.getTime() / 1e3;
|
|
13484
13490
|
const firstResponseTime = firstResponse.timestamp.getTime() / 1e3;
|
|
@@ -13502,12 +13508,12 @@ var require_ticket2 = __commonJS({
|
|
|
13502
13508
|
const requester = this.requester;
|
|
13503
13509
|
const sorted = sortBy(conversation, ["timestamp"]);
|
|
13504
13510
|
const lastFromNonRequester = findLast(sorted, function(c) {
|
|
13505
|
-
return c.
|
|
13511
|
+
return c.userId !== requester;
|
|
13506
13512
|
});
|
|
13507
13513
|
if (!lastFromNonRequester)
|
|
13508
13514
|
return null;
|
|
13509
13515
|
else
|
|
13510
|
-
return lastFromNonRequester.
|
|
13516
|
+
return lastFromNonRequester.userId;
|
|
13511
13517
|
}
|
|
13512
13518
|
});
|
|
13513
13519
|
module.exports = Ticket;
|
|
@@ -13690,6 +13696,9 @@ var require_discoveredDevice = __commonJS({
|
|
|
13690
13696
|
},
|
|
13691
13697
|
deviceData: {
|
|
13692
13698
|
type: "object"
|
|
13699
|
+
},
|
|
13700
|
+
ignore: {
|
|
13701
|
+
type: "boolean"
|
|
13693
13702
|
}
|
|
13694
13703
|
}
|
|
13695
13704
|
};
|