dt-common-device 4.0.5 → 4.0.6

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.
@@ -1,7 +1,9 @@
1
1
  export interface HeartbeatEventData {
2
- duration?: number;
3
- propertyId?: string;
4
- timestamp?: string;
2
+ propertyId: string;
3
+ statusCheck: boolean;
4
+ batteryCheck: boolean;
5
+ missingCodeCheck: boolean;
6
+ additionalCodeCheck: boolean;
5
7
  [key: string]: any;
6
8
  }
7
9
  export interface ScheduleEventData {
@@ -30,7 +30,7 @@ function validateServiceUrl(url) {
30
30
  function createAxiosInstance(baseURL) {
31
31
  const instance = axios_1.default.create({
32
32
  baseURL,
33
- timeout: 30000, // 30 seconds timeout
33
+ timeout: 60000, // 60 seconds timeout
34
34
  maxRedirects: 5,
35
35
  validateStatus: (status) => status < 500, // Don't throw on 4xx errors
36
36
  headers: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dt-common-device",
3
- "version": "4.0.5",
3
+ "version": "4.0.6",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [