dt-common-device 11.0.3 → 11.0.4
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/constants/ConnectionProviders.d.ts +1 -0
- package/dist/constants/ConnectionProviders.js +1 -0
- package/dist/entities/connection/IConnection.d.ts +1 -0
- package/dist/entities/connection/IConnection.js +1 -0
- package/dist/issues/issue.types.d.ts +1 -0
- package/dist/issues/issue.types.js +1 -0
- package/dist/queue/utils/rateLimit.utils.js +6 -0
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@ export declare const CONNECTION_PROVIDERS: {
|
|
|
7
7
|
readonly SENSIBO: "Sensibo";
|
|
8
8
|
readonly VERDANT: "Verdant";
|
|
9
9
|
readonly SALTOKS: "SaltoKS";
|
|
10
|
+
readonly SALTOSPACE: "SaltoSpace";
|
|
10
11
|
readonly SCHLAGE: "Schlage";
|
|
11
12
|
readonly SMARTTHINGS: "Smartthings";
|
|
12
13
|
readonly TTLOCK: "TTLock";
|
|
@@ -9,6 +9,7 @@ var ConnectionProvider;
|
|
|
9
9
|
// Locks
|
|
10
10
|
ConnectionProvider["Smartthings"] = "Smartthings";
|
|
11
11
|
ConnectionProvider["SaltoKS"] = "SaltoKS";
|
|
12
|
+
ConnectionProvider["SaltoSpace"] = "SaltoSpace";
|
|
12
13
|
ConnectionProvider["TTLock"] = "TTLock";
|
|
13
14
|
ConnectionProvider["Tuya"] = "Tuya";
|
|
14
15
|
ConnectionProvider["Schlage"] = "Schlage";
|
|
@@ -52,6 +52,7 @@ var EntitySubType;
|
|
|
52
52
|
EntitySubType["DUSAW"] = "DUSAW";
|
|
53
53
|
EntitySubType["YALEWIFI"] = "YALEWIFI";
|
|
54
54
|
EntitySubType["SALTOKS"] = "SALTOKS";
|
|
55
|
+
EntitySubType["SALTOSPACE"] = "SALTOSPACE";
|
|
55
56
|
EntitySubType["SCHLAGE"] = "SCHLAGE";
|
|
56
57
|
EntitySubType["LOCKLY"] = "LOCKLY";
|
|
57
58
|
})(EntitySubType || (exports.EntitySubType = EntitySubType = {}));
|
|
@@ -99,6 +99,12 @@ class RateLimitUtils {
|
|
|
99
99
|
provider: constants_1.CONNECTION_PROVIDERS.SALTOKS,
|
|
100
100
|
maxTimeoutWindowMs: 120000,
|
|
101
101
|
});
|
|
102
|
+
configs.set(constants_1.CONNECTION_PROVIDERS.SALTOSPACE, {
|
|
103
|
+
maxRequests: 5,
|
|
104
|
+
windowMs: 60000,
|
|
105
|
+
provider: constants_1.CONNECTION_PROVIDERS.SALTOSPACE,
|
|
106
|
+
maxTimeoutWindowMs: 120000,
|
|
107
|
+
});
|
|
102
108
|
configs.set(constants_1.CONNECTION_PROVIDERS.VERDANT, {
|
|
103
109
|
maxRequests: 5,
|
|
104
110
|
windowMs: 60000,
|