dt-common-device 11.1.7 → 11.1.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.
@@ -4,6 +4,8 @@ export declare const CONNECTION_PROVIDERS: {
4
4
  readonly STAYNTOUCH: "Stayntouch";
5
5
  readonly HOTELKEY: "Hotelkey";
6
6
  readonly YANOLJA: "Yanolja";
7
+ readonly SMOOBU: "Smoobu";
8
+ readonly WEBREZPRO: "Webrezpro";
7
9
  readonly SENSIBO: "Sensibo";
8
10
  readonly VERDANT: "Verdant";
9
11
  readonly SALTOKS: "SaltoKS";
@@ -8,6 +8,8 @@ exports.CONNECTION_PROVIDERS = {
8
8
  STAYNTOUCH: "Stayntouch",
9
9
  HOTELKEY: "Hotelkey",
10
10
  YANOLJA: "Yanolja",
11
+ SMOOBU: "Smoobu",
12
+ WEBREZPRO: "Webrezpro",
11
13
  // THERMOSTATS
12
14
  SENSIBO: "Sensibo",
13
15
  VERDANT: "Verdant",
@@ -2,7 +2,9 @@ export declare enum PmsProvider {
2
2
  Cloudbeds = "Cloudbeds",
3
3
  StayNTouch = "StayNTouch",
4
4
  HotelKey = "HotelKey",
5
- Yanolja = "Yanolja"
5
+ Yanolja = "Yanolja",
6
+ SMOOBU = "Smoobu",
7
+ WEBREZPRO = "Webrezpro"
6
8
  }
7
9
  export interface IPmsSchedule {
8
10
  id: string;
@@ -7,4 +7,6 @@ var PmsProvider;
7
7
  PmsProvider["StayNTouch"] = "StayNTouch";
8
8
  PmsProvider["HotelKey"] = "HotelKey";
9
9
  PmsProvider["Yanolja"] = "Yanolja";
10
+ PmsProvider["SMOOBU"] = "Smoobu";
11
+ PmsProvider["WEBREZPRO"] = "Webrezpro";
10
12
  })(PmsProvider || (exports.PmsProvider = PmsProvider = {}));
@@ -33,6 +33,8 @@ export declare enum EntitySubType {
33
33
  HOTELKEY = "HOTELKEY",
34
34
  YANOLJA = "YANOLJA",
35
35
  SKYTOUCH = "SKYTOUCH",
36
+ SMOOBU = "SMOOBU",
37
+ WEBREZPRO = "WEBREZPRO",
36
38
  SMARTTHINGS = "SMARTTHINGS",
37
39
  TTLOCK = "TTLOCK",
38
40
  TUYA = "TUYA",
@@ -42,6 +42,8 @@ var EntitySubType;
42
42
  EntitySubType["HOTELKEY"] = "HOTELKEY";
43
43
  EntitySubType["YANOLJA"] = "YANOLJA";
44
44
  EntitySubType["SKYTOUCH"] = "SKYTOUCH";
45
+ EntitySubType["SMOOBU"] = "SMOOBU";
46
+ EntitySubType["WEBREZPRO"] = "WEBREZPRO";
45
47
  // DEVICE PROVIDERS
46
48
  EntitySubType["SMARTTHINGS"] = "SMARTTHINGS";
47
49
  EntitySubType["TTLOCK"] = "TTLOCK";
@@ -111,6 +111,18 @@ class RateLimitUtils {
111
111
  provider: constants_1.CONNECTION_PROVIDERS.VERDANT,
112
112
  maxTimeoutWindowMs: 120000,
113
113
  });
114
+ configs.set(constants_1.CONNECTION_PROVIDERS.SMOOBU, {
115
+ maxRequests: 1000,
116
+ windowMs: 60000,
117
+ provider: constants_1.CONNECTION_PROVIDERS.SMOOBU,
118
+ maxTimeoutWindowMs: 120000,
119
+ });
120
+ configs.set(constants_1.CONNECTION_PROVIDERS.WEBREZPRO, {
121
+ maxRequests: 10,
122
+ windowMs: 60000,
123
+ provider: constants_1.CONNECTION_PROVIDERS.WEBREZPRO,
124
+ maxTimeoutWindowMs: 120000,
125
+ });
114
126
  return configs;
115
127
  }
116
128
  static async isRateLimitAllowed(connectionId, provider, rateLimitConfigs) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dt-common-device",
3
- "version": "11.1.7",
3
+ "version": "11.1.8",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [