@kohost/api-client 3.9.6 → 3.9.8

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.
@@ -0,0 +1,17 @@
1
+ export = Log;
2
+ declare class Log extends Entity {
3
+ /**
4
+ * @typedef {import("../schemas/LogSchema").Log} LogType
5
+ * Create a Product instance.
6
+ * @constructor
7
+ * @param {Log} log - The log object of type Log.
8
+ */
9
+ constructor(log: Log);
10
+ readonly schema: any;
11
+ get validator(): any;
12
+ }
13
+ declare namespace Log {
14
+ let validProperties: string[];
15
+ }
16
+ import Entity = require("./Entity");
17
+ //# sourceMappingURL=Log.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Log.d.ts","sourceRoot":"","sources":["../../../src/Models/Log.js"],"names":[],"mappings":";AAQA;IACE;;;;;OAKG;IACH,iBAFW,GAAG,EAIb;;;CACF"}
@@ -37,5 +37,6 @@ import TimeSheet = require("./TimeSheet");
37
37
  import Policy = require("./Policy");
38
38
  import Issue = require("./Issue");
39
39
  import Vendor = require("./Vendor");
40
- export { Entity, Organization, Property, MediaFile, Gateway, Switch, Alarm, Dimmer, Lock, Courtesy, Camera, MotionSensor, Thermostat, WindowCovering, MediaSource, Identification, Product, User, SystemUser, Room, Space, Category, Ticket, Scene, DiscoveredDevice, DeviceRouter, Reservation, Credential, ShortLink, EnergyReportShard, EnergyReport, SMSMessage, EmailMessage, Order, Announcement, TimeSheet, Policy, Issue, Vendor };
40
+ import Log = require("./Log");
41
+ export { Entity, Organization, Property, MediaFile, Gateway, Switch, Alarm, Dimmer, Lock, Courtesy, Camera, MotionSensor, Thermostat, WindowCovering, MediaSource, Identification, Product, User, SystemUser, Room, Space, Category, Ticket, Scene, DiscoveredDevice, DeviceRouter, Reservation, Credential, ShortLink, EnergyReportShard, EnergyReport, SMSMessage, EmailMessage, Order, Announcement, TimeSheet, Policy, Issue, Vendor, Log };
41
42
  //# sourceMappingURL=index.d.ts.map
@@ -179,10 +179,10 @@ export interface Lock {
179
179
  | "insperia-privacy";
180
180
  state: "locked" | "unlocked" | null;
181
181
  /**
182
- * AutoLock: Lock automatically locks after set time. Normal - Lock needs told to lock or unlock.
182
+ * emergencyOpen and emergencyClose are deprecated and can be removed once Salto, Paxton and Geovision drivers are updated
183
183
  */
184
- mode?: "normal" | "autoLock" | "emergencyOpen" | "emergencyClose" | null;
185
- supportedModes?: ("normal" | "autoLock" | "emergencyOpen" | "emergencyClose")[];
184
+ mode?: "normal" | "autoLock" | "emergencyOpen" | "emergencyClose" | "holdOpen" | "lockdown" | null;
185
+ supportedModes?: ("normal" | "autoLock" | "emergencyOpen" | "emergencyClose" | "holdOpen" | "lockdown" | null)[];
186
186
  batteryLevel?: number;
187
187
  systemId?: string;
188
188
  watts?: number;
@@ -0,0 +1,18 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * This file was automatically generated by json-schema-to-typescript.
4
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
5
+ * and run json-schema-to-typescript to regenerate this file.
6
+ */
7
+
8
+ export interface Log {
9
+ id: string;
10
+ type?: "log";
11
+ timestamp: number;
12
+ message?: string;
13
+ field1?: string;
14
+ field2?: string;
15
+ field3?: string;
16
+ field4?: string;
17
+ [k: string]: unknown;
18
+ }
@@ -577,10 +577,10 @@ export interface Lock {
577
577
  | "insperia-privacy";
578
578
  state: "locked" | "unlocked" | null;
579
579
  /**
580
- * AutoLock: Lock automatically locks after set time. Normal - Lock needs told to lock or unlock.
580
+ * emergencyOpen and emergencyClose are deprecated and can be removed once Salto, Paxton and Geovision drivers are updated
581
581
  */
582
- mode?: "normal" | "autoLock" | "emergencyOpen" | "emergencyClose" | null;
583
- supportedModes?: ("normal" | "autoLock" | "emergencyOpen" | "emergencyClose")[];
582
+ mode?: "normal" | "autoLock" | "emergencyOpen" | "emergencyClose" | "holdOpen" | "lockdown" | null;
583
+ supportedModes?: ("normal" | "autoLock" | "emergencyOpen" | "emergencyClose" | "holdOpen" | "lockdown" | null)[];
584
584
  batteryLevel?: number;
585
585
  systemId?: string;
586
586
  watts?: number;
@@ -47,9 +47,9 @@ export interface Scene {
47
47
  id?: string;
48
48
  state?: "locked" | "unlocked" | null;
49
49
  /**
50
- * AutoLock: Lock automatically locks after set time. Normal - Lock needs told to lock or unlock.
50
+ * emergencyOpen and emergencyClose are deprecated and can be removed once Salto, Paxton and Geovision drivers are updated
51
51
  */
52
- mode?: "normal" | "autoLock" | "emergencyOpen" | "emergencyClose" | null;
52
+ mode?: "normal" | "autoLock" | "emergencyOpen" | "emergencyClose" | "holdOpen" | "lockdown" | null;
53
53
  [k: string]: unknown;
54
54
  }[];
55
55
  };
@@ -1 +1 @@
1
- {"version":3,"file":"entityFactory.d.ts","sourceRoot":"","sources":["../../../src/utils/entityFactory.js"],"names":[],"mappings":"AAEiB,0DAiFhB"}
1
+ {"version":3,"file":"entityFactory.d.ts","sourceRoot":"","sources":["../../../src/utils/entityFactory.js"],"names":[],"mappings":"AAEiB,0DAmFhB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kohost/api-client",
3
- "version": "3.9.6",
3
+ "version": "3.9.8",
4
4
  "description": "API client, models, schemas, commands, and events for Kohost applications",
5
5
  "author": "Ian Rogers",
6
6
  "readme": "README.md",