@kohost/api-client 3.0.0-beta.82 → 3.0.0-beta.84

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.
@@ -65,7 +65,7 @@
65
65
  "default": false
66
66
  },
67
67
  "activatedAt": {
68
- "type": "string",
68
+ "type": ["string", "object"],
69
69
  "format": "date-time"
70
70
  },
71
71
  "allowed": {
@@ -24,6 +24,12 @@
24
24
  "userName": {
25
25
  "type": "string"
26
26
  },
27
+ "systemId": {
28
+ "type": "string"
29
+ },
30
+ "systemName": {
31
+ "type": "string"
32
+ },
27
33
  "timestamp": {
28
34
  "$ref": "definitions.json#/definitions/createdAt"
29
35
  },
@@ -50,6 +56,16 @@
50
56
  "systemId": {
51
57
  "type": "string"
52
58
  },
59
+ "systemName": {
60
+ "type": "string"
61
+ },
62
+ "systemPhoto": {
63
+ "anyOf": [
64
+ { "$ref": "mediaFile.json" },
65
+ { "type": "null" },
66
+ { "type": "string" }
67
+ ]
68
+ },
53
69
  "userId": {
54
70
  "type": "string"
55
71
  },
@@ -7621,9 +7621,11 @@ var require_definitions = __commonJS({
7621
7621
  "softwareFailureWithCode",
7622
7622
  "motionDetection",
7623
7623
  "airFilterNeedsCleaned",
7624
+ "airFilterNeedsReplaced",
7624
7625
  "smokeDetected",
7625
7626
  "outsideSafeTemperatureRange",
7626
- "outsideSafeHumidityRange"
7627
+ "outsideSafeHumidityRange",
7628
+ "scheduleMaintenance"
7627
7629
  ]
7628
7630
  }
7629
7631
  },
@@ -8789,6 +8791,12 @@ var require_lock = __commonJS({
8789
8791
  type: ["string", "null"],
8790
8792
  enum: ["locked", "unlocked", null]
8791
8793
  },
8794
+ mode: {
8795
+ type: ["string", "null"],
8796
+ enum: ["normal", "autoLock", null],
8797
+ description: "AutoLock: Lock automatically locks after set time. Normal - Lock needs told to lock or unlock.",
8798
+ default: "normal"
8799
+ },
8792
8800
  batteryLevel: {
8793
8801
  $ref: "definitions.json#/definitions/batteryLevel"
8794
8802
  },
@@ -11297,7 +11305,7 @@ var require_Scene = __commonJS({
11297
11305
  const minAutoDelta = device.minAutoDelta;
11298
11306
  const currentSetpoint = setpoints[currentMode];
11299
11307
  if (currentMode === "heat") {
11300
- let setpointValue = Math.min(
11308
+ let setpointValue = Math.max(
11301
11309
  currentSetpoint.min,
11302
11310
  currentSetpoint.value - delta
11303
11311
  );
@@ -11314,7 +11322,7 @@ var require_Scene = __commonJS({
11314
11322
  };
11315
11323
  }
11316
11324
  if (currentMode === "cool") {
11317
- let setpointValue = Math.max(
11325
+ let setpointValue = Math.min(
11318
11326
  currentSetpoint.max,
11319
11327
  currentSetpoint.value + delta
11320
11328
  );
@@ -11332,11 +11340,11 @@ var require_Scene = __commonJS({
11332
11340
  }
11333
11341
  if (currentMode === "auto") {
11334
11342
  if (!currentSetpoint && setpoints.cool && setpoints.heat) {
11335
- let heatSetpoint = Math.min(
11343
+ let heatSetpoint = Math.max(
11336
11344
  setpoints.heat.min,
11337
11345
  setpoints.heat.value - delta
11338
11346
  );
11339
- let coolSetpoint = Math.max(
11347
+ let coolSetpoint = Math.min(
11340
11348
  setpoints.cool.max,
11341
11349
  setpoints.cool.value + delta
11342
11350
  );
@@ -11678,7 +11686,7 @@ var require_space = __commonJS({
11678
11686
  default: false
11679
11687
  },
11680
11688
  activatedAt: {
11681
- type: "string",
11689
+ type: ["string", "object"],
11682
11690
  format: "date-time"
11683
11691
  },
11684
11692
  allowed: {
@@ -11945,6 +11953,12 @@ var require_ticket = __commonJS({
11945
11953
  userName: {
11946
11954
  type: "string"
11947
11955
  },
11956
+ systemId: {
11957
+ type: "string"
11958
+ },
11959
+ systemName: {
11960
+ type: "string"
11961
+ },
11948
11962
  timestamp: {
11949
11963
  $ref: "definitions.json#/definitions/createdAt"
11950
11964
  },
@@ -11971,6 +11985,16 @@ var require_ticket = __commonJS({
11971
11985
  systemId: {
11972
11986
  type: "string"
11973
11987
  },
11988
+ systemName: {
11989
+ type: "string"
11990
+ },
11991
+ systemPhoto: {
11992
+ anyOf: [
11993
+ { $ref: "mediaFile.json" },
11994
+ { type: "null" },
11995
+ { type: "string" }
11996
+ ]
11997
+ },
11974
11998
  userId: {
11975
11999
  type: "string"
11976
12000
  },