@kohost/api-client 3.7.10 → 3.8.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.
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 hasSubTypeLight = this.switches?.some((sw) => {
10911
- return sw.subType === "light" || sw.subType === "fan";
10907
+ const hasDiscriminatorLight = this.switches?.some((sw) => {
10908
+ return sw.discriminator === "light" || sw.discriminator === "fan";
10912
10909
  });
10913
- return this.hasDimmer || hasSubTypeLight;
10910
+ return this.hasDimmer || hasDiscriminatorLight;
10914
10911
  }
10915
10912
  get occupied() {
10916
10913
  const now = /* @__PURE__ */ new Date();
@@ -12054,6 +12051,11 @@ var require_discoveredDevice = __commonJS({
12054
12051
  type: "string"
12055
12052
  },
12056
12053
  type: {
12054
+ type: "string",
12055
+ enum: ["discoveredDevice"],
12056
+ default: "discoveredDevice"
12057
+ },
12058
+ discriminator: {
12057
12059
  $ref: "definitions.json#/definitions/type"
12058
12060
  },
12059
12061
  driver: {
@@ -12065,11 +12067,11 @@ var require_discoveredDevice = __commonJS({
12065
12067
  ignore: {
12066
12068
  type: "boolean"
12067
12069
  },
12068
- organization: {
12070
+ organizationId: {
12069
12071
  type: ["string", "null"],
12070
12072
  description: "Reference (id) to the organization that owns this device"
12071
12073
  },
12072
- property: {
12074
+ propertyId: {
12073
12075
  type: ["string", "null"],
12074
12076
  description: "Reference (id) to the property that this device belongs to"
12075
12077
  }
@@ -12137,7 +12139,7 @@ var require_deviceRouter = __commonJS({
12137
12139
  driver: {
12138
12140
  type: "string"
12139
12141
  },
12140
- organization: {
12142
+ organizationId: {
12141
12143
  type: ["string", "null"],
12142
12144
  description: "Reference (id) to the organization that owns this router"
12143
12145
  },