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.
|
@@ -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:
|
|
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) {
|