dt-common-device 13.0.20 → 13.0.23

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.
@@ -19,5 +19,6 @@ export declare const CONNECTION_PROVIDERS: {
19
19
  readonly DORMAKABA: "Dormakaba";
20
20
  readonly DUSAW: "Dusaw";
21
21
  readonly LOCKLY: "Lockly";
22
+ readonly SIFELY: "Sifely";
22
23
  readonly CHECKFRONT: "Checkfront";
23
24
  };
@@ -25,5 +25,6 @@ exports.CONNECTION_PROVIDERS = {
25
25
  DORMAKABA: "Dormakaba",
26
26
  DUSAW: "Dusaw",
27
27
  LOCKLY: "Lockly",
28
+ SIFELY: "Sifely",
28
29
  CHECKFRONT: "Checkfront",
29
30
  };
@@ -52,7 +52,7 @@ class CronicleService {
52
52
  }
53
53
  }
54
54
  async updateJob(payload) {
55
- const { name, apiUrl, method, schedule, cronJobId, target, category, timezone, enabled, } = payload;
55
+ const { name, apiUrl, method, schedule, cronJobId, target, category, timezone, enabled, notes, } = payload;
56
56
  try {
57
57
  const croniclePayload = {};
58
58
  croniclePayload.params = {
@@ -79,6 +79,8 @@ class CronicleService {
79
79
  croniclePayload.params.method = method;
80
80
  if (schedule)
81
81
  croniclePayload.timing = schedule;
82
+ if (notes)
83
+ croniclePayload.notes = notes;
82
84
  const payload = {
83
85
  id: cronJobId,
84
86
  ...croniclePayload,
@@ -106,7 +106,7 @@ class RateLimitUtils {
106
106
  maxTimeoutWindowMs: 120000,
107
107
  });
108
108
  configs.set(constants_1.CONNECTION_PROVIDERS.VERDANT, {
109
- maxRequests: 5,
109
+ maxRequests: 60,
110
110
  windowMs: 60000,
111
111
  provider: constants_1.CONNECTION_PROVIDERS.VERDANT,
112
112
  maxTimeoutWindowMs: 120000,
@@ -135,6 +135,12 @@ class RateLimitUtils {
135
135
  provider: constants_1.CONNECTION_PROVIDERS.MEWS,
136
136
  maxTimeoutWindowMs: 120000,
137
137
  });
138
+ configs.set(constants_1.CONNECTION_PROVIDERS.SIFELY, {
139
+ maxRequests: 15,
140
+ windowMs: 60000, // 1 minute
141
+ provider: constants_1.CONNECTION_PROVIDERS.SIFELY,
142
+ maxTimeoutWindowMs: 120000,
143
+ });
138
144
  return configs;
139
145
  }
140
146
  static async isRateLimitAllowed(connectionId, provider, rateLimitConfigs) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dt-common-device",
3
- "version": "13.0.20",
3
+ "version": "13.0.23",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [