@kohost/api-client 3.8.0 → 3.8.2
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/Room.js +3 -3
- package/dist/cjs/schemas/definitions.json +0 -3
- package/dist/cjs/schemas/deviceRouter.json +1 -1
- package/dist/esm/Models.js +4 -7
- package/dist/esm/Models.js.map +2 -2
- package/dist/esm/utils.js +4 -7
- package/dist/esm/utils.js.map +2 -2
- package/dist/types/schemas/DeviceRouterSchema.d.ts +1 -1
- package/package.json +1 -1
package/dist/esm/utils.js
CHANGED
|
@@ -7324,9 +7324,6 @@ var require_definitions = __commonJS({
|
|
|
7324
7324
|
name: {
|
|
7325
7325
|
type: "string"
|
|
7326
7326
|
},
|
|
7327
|
-
subType: {
|
|
7328
|
-
type: ["string", "null"]
|
|
7329
|
-
},
|
|
7330
7327
|
supportedNotifications: {
|
|
7331
7328
|
type: "array",
|
|
7332
7329
|
uniqueItems: true,
|
|
@@ -10907,10 +10904,10 @@ var require_Room = __commonJS({
|
|
|
10907
10904
|
return this.mediaSources?.length > 0;
|
|
10908
10905
|
}
|
|
10909
10906
|
get hasLight() {
|
|
10910
|
-
const
|
|
10911
|
-
return sw.
|
|
10907
|
+
const hasDiscriminatorLight = this.switches?.some((sw) => {
|
|
10908
|
+
return sw.discriminator === "light" || sw.discriminator === "fan";
|
|
10912
10909
|
});
|
|
10913
|
-
return this.hasDimmer ||
|
|
10910
|
+
return this.hasDimmer || hasDiscriminatorLight;
|
|
10914
10911
|
}
|
|
10915
10912
|
get occupied() {
|
|
10916
10913
|
const now = /* @__PURE__ */ new Date();
|
|
@@ -12129,7 +12126,7 @@ var require_deviceRouter = __commonJS({
|
|
|
12129
12126
|
title: "Device Router",
|
|
12130
12127
|
description: "A device router contains instructions on where to route devices based on their organization and driver.",
|
|
12131
12128
|
type: "object",
|
|
12132
|
-
required: ["driver", "
|
|
12129
|
+
required: ["driver", "organizationId"],
|
|
12133
12130
|
properties: {
|
|
12134
12131
|
id: {
|
|
12135
12132
|
$ref: "definitions.json#/definitions/id"
|