@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.
@@ -126,10 +126,10 @@ class Room extends Entity {
126
126
  }
127
127
 
128
128
  get hasLight() {
129
- const hasSubTypeLight = this.switches?.some((sw) => {
130
- return sw.subType === "light" || sw.subType === "fan";
129
+ const hasDiscriminatorLight = this.switches?.some((sw) => {
130
+ return sw.discriminator === "light" || sw.discriminator === "fan";
131
131
  });
132
- return this.hasDimmer || hasSubTypeLight;
132
+ return this.hasDimmer || hasDiscriminatorLight;
133
133
  }
134
134
 
135
135
  get occupied() {
@@ -154,9 +154,6 @@
154
154
  "name": {
155
155
  "type": "string"
156
156
  },
157
- "subType": {
158
- "type": ["string", "null"]
159
- },
160
157
  "supportedNotifications": {
161
158
  "type": "array",
162
159
  "uniqueItems": true,
@@ -4,7 +4,7 @@
4
4
  "title": "Device Router",
5
5
  "description": "A device router contains instructions on where to route devices based on their organization and driver.",
6
6
  "type": "object",
7
- "required": ["driver", "organization"],
7
+ "required": ["driver", "organizationId"],
8
8
  "properties": {
9
9
  "id": {
10
10
  "$ref": "definitions.json#/definitions/id"
@@ -7281,9 +7281,6 @@ var require_definitions = __commonJS({
7281
7281
  name: {
7282
7282
  type: "string"
7283
7283
  },
7284
- subType: {
7285
- type: ["string", "null"]
7286
- },
7287
7284
  supportedNotifications: {
7288
7285
  type: "array",
7289
7286
  uniqueItems: true,
@@ -10827,10 +10824,10 @@ var require_Room = __commonJS({
10827
10824
  return this.mediaSources?.length > 0;
10828
10825
  }
10829
10826
  get hasLight() {
10830
- const hasSubTypeLight = this.switches?.some((sw) => {
10831
- return sw.subType === "light" || sw.subType === "fan";
10827
+ const hasDiscriminatorLight = this.switches?.some((sw) => {
10828
+ return sw.discriminator === "light" || sw.discriminator === "fan";
10832
10829
  });
10833
- return this.hasDimmer || hasSubTypeLight;
10830
+ return this.hasDimmer || hasDiscriminatorLight;
10834
10831
  }
10835
10832
  get occupied() {
10836
10833
  const now = /* @__PURE__ */ new Date();
@@ -12049,7 +12046,7 @@ var require_deviceRouter = __commonJS({
12049
12046
  title: "Device Router",
12050
12047
  description: "A device router contains instructions on where to route devices based on their organization and driver.",
12051
12048
  type: "object",
12052
- required: ["driver", "organization"],
12049
+ required: ["driver", "organizationId"],
12053
12050
  properties: {
12054
12051
  id: {
12055
12052
  $ref: "definitions.json#/definitions/id"