@kohost/api-client 3.1.12 → 3.1.14

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.
@@ -81,7 +81,7 @@ class KohostAMQPClient {
81
81
  message = errMessage;
82
82
  options = rest;
83
83
  } else {
84
- message = "Unknown Error";
84
+ message = err.message || "Unknown Error";
85
85
  }
86
86
 
87
87
  debug("parseError", type, message, options);
@@ -29,6 +29,7 @@ export type SupportedNotifications = (
29
29
  | "outsideSafeHumidityRange"
30
30
  | "scheduleMaintenance"
31
31
  | "doorAjar"
32
+ | "communicationFailure"
32
33
  )[];
33
34
  export type Notification = {
34
35
  name?:
@@ -54,7 +55,8 @@ export type Notification = {
54
55
  | "outsideSafeTemperatureRange"
55
56
  | "outsideSafeHumidityRange"
56
57
  | "scheduleMaintenance"
57
- | "doorAjar";
58
+ | "doorAjar"
59
+ | "communicationFailure";
58
60
  timestamp?: number;
59
61
  description?: string;
60
62
  [k: string]: unknown;
@@ -82,7 +84,8 @@ export type Notification = {
82
84
  | "outsideSafeTemperatureRange"
83
85
  | "outsideSafeHumidityRange"
84
86
  | "scheduleMaintenance"
85
- | "doorAjar";
87
+ | "doorAjar"
88
+ | "communicationFailure";
86
89
  timestamp?: number;
87
90
  description?: string;
88
91
  [k: string]: unknown;
@@ -29,6 +29,7 @@ export type SupportedNotifications = (
29
29
  | "outsideSafeHumidityRange"
30
30
  | "scheduleMaintenance"
31
31
  | "doorAjar"
32
+ | "communicationFailure"
32
33
  )[];
33
34
  export type Notification = {
34
35
  name?:
@@ -54,7 +55,8 @@ export type Notification = {
54
55
  | "outsideSafeTemperatureRange"
55
56
  | "outsideSafeHumidityRange"
56
57
  | "scheduleMaintenance"
57
- | "doorAjar";
58
+ | "doorAjar"
59
+ | "communicationFailure";
58
60
  timestamp?: number;
59
61
  description?: string;
60
62
  [k: string]: unknown;
@@ -82,7 +84,8 @@ export type Notification = {
82
84
  | "outsideSafeTemperatureRange"
83
85
  | "outsideSafeHumidityRange"
84
86
  | "scheduleMaintenance"
85
- | "doorAjar";
87
+ | "doorAjar"
88
+ | "communicationFailure";
86
89
  timestamp?: number;
87
90
  description?: string;
88
91
  [k: string]: unknown;
@@ -29,6 +29,7 @@ export type SupportedNotifications = (
29
29
  | "outsideSafeHumidityRange"
30
30
  | "scheduleMaintenance"
31
31
  | "doorAjar"
32
+ | "communicationFailure"
32
33
  )[];
33
34
  export type Notification = {
34
35
  name?:
@@ -54,7 +55,8 @@ export type Notification = {
54
55
  | "outsideSafeTemperatureRange"
55
56
  | "outsideSafeHumidityRange"
56
57
  | "scheduleMaintenance"
57
- | "doorAjar";
58
+ | "doorAjar"
59
+ | "communicationFailure";
58
60
  timestamp?: number;
59
61
  description?: string;
60
62
  [k: string]: unknown;
@@ -82,7 +84,8 @@ export type Notification = {
82
84
  | "outsideSafeTemperatureRange"
83
85
  | "outsideSafeHumidityRange"
84
86
  | "scheduleMaintenance"
85
- | "doorAjar";
87
+ | "doorAjar"
88
+ | "communicationFailure";
86
89
  timestamp?: number;
87
90
  description?: string;
88
91
  [k: string]: unknown;
@@ -29,6 +29,7 @@ export type SupportedNotifications = (
29
29
  | "outsideSafeHumidityRange"
30
30
  | "scheduleMaintenance"
31
31
  | "doorAjar"
32
+ | "communicationFailure"
32
33
  )[];
33
34
  export type Notification = {
34
35
  name?:
@@ -54,7 +55,8 @@ export type Notification = {
54
55
  | "outsideSafeTemperatureRange"
55
56
  | "outsideSafeHumidityRange"
56
57
  | "scheduleMaintenance"
57
- | "doorAjar";
58
+ | "doorAjar"
59
+ | "communicationFailure";
58
60
  timestamp?: number;
59
61
  description?: string;
60
62
  [k: string]: unknown;
@@ -82,7 +84,8 @@ export type Notification = {
82
84
  | "outsideSafeTemperatureRange"
83
85
  | "outsideSafeHumidityRange"
84
86
  | "scheduleMaintenance"
85
- | "doorAjar";
87
+ | "doorAjar"
88
+ | "communicationFailure";
86
89
  timestamp?: number;
87
90
  description?: string;
88
91
  [k: string]: unknown;
@@ -29,6 +29,7 @@ export type SupportedNotifications = (
29
29
  | "outsideSafeHumidityRange"
30
30
  | "scheduleMaintenance"
31
31
  | "doorAjar"
32
+ | "communicationFailure"
32
33
  )[];
33
34
  export type Notification = {
34
35
  name?:
@@ -54,7 +55,8 @@ export type Notification = {
54
55
  | "outsideSafeTemperatureRange"
55
56
  | "outsideSafeHumidityRange"
56
57
  | "scheduleMaintenance"
57
- | "doorAjar";
58
+ | "doorAjar"
59
+ | "communicationFailure";
58
60
  timestamp?: number;
59
61
  description?: string;
60
62
  [k: string]: unknown;
@@ -82,7 +84,8 @@ export type Notification = {
82
84
  | "outsideSafeTemperatureRange"
83
85
  | "outsideSafeHumidityRange"
84
86
  | "scheduleMaintenance"
85
- | "doorAjar";
87
+ | "doorAjar"
88
+ | "communicationFailure";
86
89
  timestamp?: number;
87
90
  description?: string;
88
91
  [k: string]: unknown;
@@ -29,6 +29,7 @@ export type SupportedNotifications = (
29
29
  | "outsideSafeHumidityRange"
30
30
  | "scheduleMaintenance"
31
31
  | "doorAjar"
32
+ | "communicationFailure"
32
33
  )[];
33
34
  export type Notification = {
34
35
  name?:
@@ -54,7 +55,8 @@ export type Notification = {
54
55
  | "outsideSafeTemperatureRange"
55
56
  | "outsideSafeHumidityRange"
56
57
  | "scheduleMaintenance"
57
- | "doorAjar";
58
+ | "doorAjar"
59
+ | "communicationFailure";
58
60
  timestamp?: number;
59
61
  description?: string;
60
62
  [k: string]: unknown;
@@ -82,7 +84,8 @@ export type Notification = {
82
84
  | "outsideSafeTemperatureRange"
83
85
  | "outsideSafeHumidityRange"
84
86
  | "scheduleMaintenance"
85
- | "doorAjar";
87
+ | "doorAjar"
88
+ | "communicationFailure";
86
89
  timestamp?: number;
87
90
  description?: string;
88
91
  [k: string]: unknown;
@@ -29,6 +29,7 @@ export type SupportedNotifications = (
29
29
  | "outsideSafeHumidityRange"
30
30
  | "scheduleMaintenance"
31
31
  | "doorAjar"
32
+ | "communicationFailure"
32
33
  )[];
33
34
  export type Notification = {
34
35
  name?:
@@ -54,7 +55,8 @@ export type Notification = {
54
55
  | "outsideSafeTemperatureRange"
55
56
  | "outsideSafeHumidityRange"
56
57
  | "scheduleMaintenance"
57
- | "doorAjar";
58
+ | "doorAjar"
59
+ | "communicationFailure";
58
60
  timestamp?: number;
59
61
  description?: string;
60
62
  [k: string]: unknown;
@@ -82,7 +84,8 @@ export type Notification = {
82
84
  | "outsideSafeTemperatureRange"
83
85
  | "outsideSafeHumidityRange"
84
86
  | "scheduleMaintenance"
85
- | "doorAjar";
87
+ | "doorAjar"
88
+ | "communicationFailure";
86
89
  timestamp?: number;
87
90
  description?: string;
88
91
  [k: string]: unknown;
@@ -29,6 +29,7 @@ export type SupportedNotifications = (
29
29
  | "outsideSafeHumidityRange"
30
30
  | "scheduleMaintenance"
31
31
  | "doorAjar"
32
+ | "communicationFailure"
32
33
  )[];
33
34
  export type Notification = {
34
35
  name?:
@@ -54,7 +55,8 @@ export type Notification = {
54
55
  | "outsideSafeTemperatureRange"
55
56
  | "outsideSafeHumidityRange"
56
57
  | "scheduleMaintenance"
57
- | "doorAjar";
58
+ | "doorAjar"
59
+ | "communicationFailure";
58
60
  timestamp?: number;
59
61
  description?: string;
60
62
  [k: string]: unknown;
@@ -82,7 +84,8 @@ export type Notification = {
82
84
  | "outsideSafeTemperatureRange"
83
85
  | "outsideSafeHumidityRange"
84
86
  | "scheduleMaintenance"
85
- | "doorAjar";
87
+ | "doorAjar"
88
+ | "communicationFailure";
86
89
  timestamp?: number;
87
90
  description?: string;
88
91
  [k: string]: unknown;
@@ -29,6 +29,7 @@ export type SupportedNotifications = (
29
29
  | "outsideSafeHumidityRange"
30
30
  | "scheduleMaintenance"
31
31
  | "doorAjar"
32
+ | "communicationFailure"
32
33
  )[];
33
34
  export type Notification = {
34
35
  name?:
@@ -54,7 +55,8 @@ export type Notification = {
54
55
  | "outsideSafeTemperatureRange"
55
56
  | "outsideSafeHumidityRange"
56
57
  | "scheduleMaintenance"
57
- | "doorAjar";
58
+ | "doorAjar"
59
+ | "communicationFailure";
58
60
  timestamp?: number;
59
61
  description?: string;
60
62
  [k: string]: unknown;
@@ -82,7 +84,8 @@ export type Notification = {
82
84
  | "outsideSafeTemperatureRange"
83
85
  | "outsideSafeHumidityRange"
84
86
  | "scheduleMaintenance"
85
- | "doorAjar";
87
+ | "doorAjar"
88
+ | "communicationFailure";
86
89
  timestamp?: number;
87
90
  description?: string;
88
91
  [k: string]: unknown;
@@ -232,7 +235,8 @@ export interface Switch {
232
235
  | "outsideSafeTemperatureRange"
233
236
  | "outsideSafeHumidityRange"
234
237
  | "scheduleMaintenance"
235
- | "doorAjar";
238
+ | "doorAjar"
239
+ | "communicationFailure";
236
240
  timestamp?: number;
237
241
  description?: string;
238
242
  [k: string]: unknown;
@@ -355,7 +359,8 @@ export interface Thermostat {
355
359
  | "outsideSafeTemperatureRange"
356
360
  | "outsideSafeHumidityRange"
357
361
  | "scheduleMaintenance"
358
- | "doorAjar";
362
+ | "doorAjar"
363
+ | "communicationFailure";
359
364
  timestamp?: number;
360
365
  description?: string;
361
366
  [k: string]: unknown;
@@ -444,7 +449,8 @@ export interface Lock {
444
449
  | "outsideSafeTemperatureRange"
445
450
  | "outsideSafeHumidityRange"
446
451
  | "scheduleMaintenance"
447
- | "doorAjar";
452
+ | "doorAjar"
453
+ | "communicationFailure";
448
454
  timestamp?: number;
449
455
  description?: string;
450
456
  [k: string]: unknown;
@@ -540,7 +546,8 @@ export interface WindowCovering {
540
546
  | "outsideSafeTemperatureRange"
541
547
  | "outsideSafeHumidityRange"
542
548
  | "scheduleMaintenance"
543
- | "doorAjar";
549
+ | "doorAjar"
550
+ | "communicationFailure";
544
551
  timestamp?: number;
545
552
  description?: string;
546
553
  [k: string]: unknown;
@@ -631,7 +638,8 @@ export interface Courtesy {
631
638
  | "outsideSafeTemperatureRange"
632
639
  | "outsideSafeHumidityRange"
633
640
  | "scheduleMaintenance"
634
- | "doorAjar";
641
+ | "doorAjar"
642
+ | "communicationFailure";
635
643
  timestamp?: number;
636
644
  description?: string;
637
645
  [k: string]: unknown;
@@ -723,7 +731,8 @@ export interface Camera {
723
731
  | "outsideSafeTemperatureRange"
724
732
  | "outsideSafeHumidityRange"
725
733
  | "scheduleMaintenance"
726
- | "doorAjar";
734
+ | "doorAjar"
735
+ | "communicationFailure";
727
736
  timestamp?: number;
728
737
  description?: string;
729
738
  [k: string]: unknown;
@@ -950,7 +959,8 @@ export interface MediaSource {
950
959
  | "outsideSafeTemperatureRange"
951
960
  | "outsideSafeHumidityRange"
952
961
  | "scheduleMaintenance"
953
- | "doorAjar";
962
+ | "doorAjar"
963
+ | "communicationFailure";
954
964
  timestamp?: number;
955
965
  description?: string;
956
966
  [k: string]: unknown;
@@ -1038,7 +1048,8 @@ export interface MotionSensor {
1038
1048
  | "outsideSafeTemperatureRange"
1039
1049
  | "outsideSafeHumidityRange"
1040
1050
  | "scheduleMaintenance"
1041
- | "doorAjar";
1051
+ | "doorAjar"
1052
+ | "communicationFailure";
1042
1053
  timestamp?: number;
1043
1054
  description?: string;
1044
1055
  [k: string]: unknown;
@@ -1096,7 +1107,8 @@ export interface Alarm {
1096
1107
  | "outsideSafeTemperatureRange"
1097
1108
  | "outsideSafeHumidityRange"
1098
1109
  | "scheduleMaintenance"
1099
- | "doorAjar";
1110
+ | "doorAjar"
1111
+ | "communicationFailure";
1100
1112
  timestamp?: number;
1101
1113
  description?: string;
1102
1114
  [k: string]: unknown;
@@ -29,6 +29,7 @@ export type SupportedNotifications = (
29
29
  | "outsideSafeHumidityRange"
30
30
  | "scheduleMaintenance"
31
31
  | "doorAjar"
32
+ | "communicationFailure"
32
33
  )[];
33
34
  export type Notification = {
34
35
  name?:
@@ -54,7 +55,8 @@ export type Notification = {
54
55
  | "outsideSafeTemperatureRange"
55
56
  | "outsideSafeHumidityRange"
56
57
  | "scheduleMaintenance"
57
- | "doorAjar";
58
+ | "doorAjar"
59
+ | "communicationFailure";
58
60
  timestamp?: number;
59
61
  description?: string;
60
62
  [k: string]: unknown;
@@ -82,7 +84,8 @@ export type Notification = {
82
84
  | "outsideSafeTemperatureRange"
83
85
  | "outsideSafeHumidityRange"
84
86
  | "scheduleMaintenance"
85
- | "doorAjar";
87
+ | "doorAjar"
88
+ | "communicationFailure";
86
89
  timestamp?: number;
87
90
  description?: string;
88
91
  [k: string]: unknown;
@@ -29,6 +29,7 @@ export type SupportedNotifications = (
29
29
  | "outsideSafeHumidityRange"
30
30
  | "scheduleMaintenance"
31
31
  | "doorAjar"
32
+ | "communicationFailure"
32
33
  )[];
33
34
  export type Notification = {
34
35
  name?:
@@ -54,7 +55,8 @@ export type Notification = {
54
55
  | "outsideSafeTemperatureRange"
55
56
  | "outsideSafeHumidityRange"
56
57
  | "scheduleMaintenance"
57
- | "doorAjar";
58
+ | "doorAjar"
59
+ | "communicationFailure";
58
60
  timestamp?: number;
59
61
  description?: string;
60
62
  [k: string]: unknown;
@@ -82,7 +84,8 @@ export type Notification = {
82
84
  | "outsideSafeTemperatureRange"
83
85
  | "outsideSafeHumidityRange"
84
86
  | "scheduleMaintenance"
85
- | "doorAjar";
87
+ | "doorAjar"
88
+ | "communicationFailure";
86
89
  timestamp?: number;
87
90
  description?: string;
88
91
  [k: string]: unknown;
@@ -29,6 +29,7 @@ export type SupportedNotifications = (
29
29
  | "outsideSafeHumidityRange"
30
30
  | "scheduleMaintenance"
31
31
  | "doorAjar"
32
+ | "communicationFailure"
32
33
  )[];
33
34
  export type Notification = {
34
35
  name?:
@@ -54,7 +55,8 @@ export type Notification = {
54
55
  | "outsideSafeTemperatureRange"
55
56
  | "outsideSafeHumidityRange"
56
57
  | "scheduleMaintenance"
57
- | "doorAjar";
58
+ | "doorAjar"
59
+ | "communicationFailure";
58
60
  timestamp?: number;
59
61
  description?: string;
60
62
  [k: string]: unknown;
@@ -82,7 +84,8 @@ export type Notification = {
82
84
  | "outsideSafeTemperatureRange"
83
85
  | "outsideSafeHumidityRange"
84
86
  | "scheduleMaintenance"
85
- | "doorAjar";
87
+ | "doorAjar"
88
+ | "communicationFailure";
86
89
  timestamp?: number;
87
90
  description?: string;
88
91
  [k: string]: unknown;
@@ -170,7 +170,8 @@
170
170
  "outsideSafeTemperatureRange",
171
171
  "outsideSafeHumidityRange",
172
172
  "scheduleMaintenance",
173
- "doorAjar"
173
+ "doorAjar",
174
+ "communicationFailure"
174
175
  ]
175
176
  }
176
177
  },
@@ -7629,7 +7629,8 @@ var require_definitions = __commonJS({
7629
7629
  "outsideSafeTemperatureRange",
7630
7630
  "outsideSafeHumidityRange",
7631
7631
  "scheduleMaintenance",
7632
- "doorAjar"
7632
+ "doorAjar",
7633
+ "communicationFailure"
7633
7634
  ]
7634
7635
  }
7635
7636
  },