dt-common-device 9.1.2 → 9.1.3

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.
@@ -4,14 +4,15 @@ export declare const CONNECTION_PROVIDERS: {
4
4
  readonly STAYNTOUCH: "Stayntouch";
5
5
  readonly HOTELKEY: "Hotelkey";
6
6
  readonly YANOLJA: "Yanolja";
7
+ readonly SENSIBO: "Sensibo";
8
+ readonly VERDANT: "Verdant";
7
9
  readonly SALTOKS: "SaltoKS";
8
10
  readonly SCHLAGE: "Schlage";
9
- readonly SENSIBO: "Sensibo";
10
11
  readonly SMARTTHINGS: "Smartthings";
11
12
  readonly TTLOCK: "TTLock";
12
13
  readonly TUYA: "Tuya";
13
- readonly VERDANT: "Verdant";
14
14
  readonly YALEWIFI: "YaleWifi";
15
15
  readonly DORMAKABA: "Dormakaba";
16
16
  readonly DUSAW: "Dusaw";
17
+ readonly LOCKLY: "Lockly";
17
18
  };
@@ -8,15 +8,17 @@ exports.CONNECTION_PROVIDERS = {
8
8
  STAYNTOUCH: "Stayntouch",
9
9
  HOTELKEY: "Hotelkey",
10
10
  YANOLJA: "Yanolja",
11
- // DEVICE
11
+ // THERMOSTATS
12
+ SENSIBO: "Sensibo",
13
+ VERDANT: "Verdant",
14
+ // LOCKS
12
15
  SALTOKS: "SaltoKS",
13
16
  SCHLAGE: "Schlage",
14
- SENSIBO: "Sensibo",
15
17
  SMARTTHINGS: "Smartthings",
16
18
  TTLOCK: "TTLock",
17
19
  TUYA: "Tuya",
18
- VERDANT: "Verdant",
19
20
  YALEWIFI: "YaleWifi",
20
21
  DORMAKABA: "Dormakaba",
21
22
  DUSAW: "Dusaw",
23
+ LOCKLY: "Lockly",
22
24
  };
@@ -15,14 +15,16 @@ export interface IConnection {
15
15
  metaData?: any;
16
16
  }
17
17
  export declare enum ConnectionProvider {
18
+ Sensibo = "Sensibo",
19
+ Verdant = "Verdant",
18
20
  Smartthings = "Smartthings",
19
21
  SaltoKS = "SaltoKS",
20
22
  TTLock = "TTLock",
21
23
  Tuya = "Tuya",
22
24
  Schlage = "Schlage",
23
25
  YaleWifi = "YaleWifi",
24
- Sensibo = "Sensibo",
25
26
  Devicethread = "Devicethread",
26
27
  Dormakaba = "Dormakaba",
27
- Dusaw = "Dusaw"
28
+ Dusaw = "Dusaw",
29
+ Lockly = "Lockly"
28
30
  }
@@ -3,14 +3,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ConnectionProvider = void 0;
4
4
  var ConnectionProvider;
5
5
  (function (ConnectionProvider) {
6
+ // Thermostats
7
+ ConnectionProvider["Sensibo"] = "Sensibo";
8
+ ConnectionProvider["Verdant"] = "Verdant";
9
+ // Locks
6
10
  ConnectionProvider["Smartthings"] = "Smartthings";
7
11
  ConnectionProvider["SaltoKS"] = "SaltoKS";
8
12
  ConnectionProvider["TTLock"] = "TTLock";
9
13
  ConnectionProvider["Tuya"] = "Tuya";
10
14
  ConnectionProvider["Schlage"] = "Schlage";
11
15
  ConnectionProvider["YaleWifi"] = "YaleWifi";
12
- ConnectionProvider["Sensibo"] = "Sensibo";
13
16
  ConnectionProvider["Devicethread"] = "Devicethread";
14
17
  ConnectionProvider["Dormakaba"] = "Dormakaba";
15
18
  ConnectionProvider["Dusaw"] = "Dusaw";
19
+ ConnectionProvider["Lockly"] = "Lockly";
16
20
  })(ConnectionProvider || (exports.ConnectionProvider = ConnectionProvider = {}));
@@ -39,7 +39,8 @@ export declare enum EntitySubType {
39
39
  DUSAW = "DUSAW",
40
40
  YALEWIFI = "YALEWIFI",
41
41
  SALTOKS = "SALTOKS",
42
- SCHLAGE = "SCHLAGE"
42
+ SCHLAGE = "SCHLAGE",
43
+ LOCKLY = "LOCKLY"
43
44
  }
44
45
  export declare enum IssueStatus {
45
46
  PENDING = "PENDING",
@@ -49,6 +49,7 @@ var EntitySubType;
49
49
  EntitySubType["YALEWIFI"] = "YALEWIFI";
50
50
  EntitySubType["SALTOKS"] = "SALTOKS";
51
51
  EntitySubType["SCHLAGE"] = "SCHLAGE";
52
+ EntitySubType["LOCKLY"] = "LOCKLY";
52
53
  })(EntitySubType || (exports.EntitySubType = EntitySubType = {}));
53
54
  var IssueStatus;
54
55
  (function (IssueStatus) {
@@ -58,6 +58,11 @@ class RateLimitUtils {
58
58
  windowMs: 60000, // 1 minute
59
59
  provider: constants_1.CONNECTION_PROVIDERS.TTLOCK,
60
60
  });
61
+ configs.set(constants_1.CONNECTION_PROVIDERS.LOCKLY, {
62
+ maxRequests: 10,
63
+ windowMs: 60000, // 1 minute
64
+ provider: constants_1.CONNECTION_PROVIDERS.LOCKLY,
65
+ });
61
66
  configs.set(constants_1.CONNECTION_PROVIDERS.SCHLAGE, {
62
67
  maxRequests: 120,
63
68
  windowMs: 60000, // 1 minute
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dt-common-device",
3
- "version": "9.1.2",
3
+ "version": "9.1.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [