dt-common-device 11.1.1 → 11.1.2

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.
@@ -239,6 +239,10 @@ export declare const DT_EVENT_TYPES: {
239
239
  HEARTBEAT: {
240
240
  DISABLED: string;
241
241
  STARTED: string;
242
+ DEVICE_CHECK: {
243
+ PROGRESS: string;
244
+ COMPLETED: string;
245
+ };
242
246
  DEVICE: {
243
247
  IN_ACTIVE: string;
244
248
  OFFLINE: string;
@@ -242,6 +242,10 @@ exports.DT_EVENT_TYPES = {
242
242
  HEARTBEAT: {
243
243
  DISABLED: "heartbeat.disabled",
244
244
  STARTED: "heartbeat.started",
245
+ DEVICE_CHECK: {
246
+ PROGRESS: "heartbeat.device_check.progress",
247
+ COMPLETED: "heartbeat.device_check.completed",
248
+ },
245
249
  DEVICE: {
246
250
  IN_ACTIVE: "heartbeat.device.in_active",
247
251
  OFFLINE: "heartbeat.device.offline",
@@ -26,10 +26,11 @@ class CronicleService {
26
26
  params: {
27
27
  url: apiUrl,
28
28
  method,
29
- headers: {
29
+ headers: JSON.stringify({
30
30
  "Content-Type": "application/json",
31
31
  "x-api-key": this.cronicleApiKey,
32
- },
32
+ }),
33
+ timeout: 120,
33
34
  },
34
35
  data: payload,
35
36
  timing: {
@@ -40,7 +41,7 @@ class CronicleService {
40
41
  hours: schedule.hours,
41
42
  minutes: schedule.minutes,
42
43
  },
43
- timeout: 120,
44
+ timeout: 0,
44
45
  });
45
46
  }
46
47
  catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dt-common-device",
3
- "version": "11.1.1",
3
+ "version": "11.1.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [