node-alarm-dot-com 2.1.0-beta.6 → 2.1.0

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.
@@ -18,4 +18,4 @@ var SensorType;
18
18
  SensorType[SensorType["Glass_Break"] = 19] = "Glass_Break";
19
19
  SensorType[SensorType["Panel_Camera"] = 68] = "Panel_Camera";
20
20
  SensorType[SensorType["Panel_Glass_Break"] = 83] = "Panel_Glass_Break";
21
- })(SensorType = exports.SensorType || (exports.SensorType = {}));
21
+ })(SensorType || (exports.SensorType = SensorType = {}));
@@ -14,7 +14,7 @@ var SYSTEM_STATES;
14
14
  SYSTEM_STATES[SYSTEM_STATES["ARMED_STAY"] = 2] = "ARMED_STAY";
15
15
  SYSTEM_STATES[SYSTEM_STATES["ARMED_AWAY"] = 3] = "ARMED_AWAY";
16
16
  SYSTEM_STATES[SYSTEM_STATES["ARMED_NIGHT"] = 4] = "ARMED_NIGHT";
17
- })(SYSTEM_STATES = exports.SYSTEM_STATES || (exports.SYSTEM_STATES = {}));
17
+ })(SYSTEM_STATES || (exports.SYSTEM_STATES = SYSTEM_STATES = {}));
18
18
  /***
19
19
  * State of the sensor as defined by Alarm.com
20
20
  * @readonly
@@ -29,7 +29,7 @@ var SENSOR_STATES;
29
29
  SENSOR_STATES[SENSOR_STATES["ACTIVE"] = 4] = "ACTIVE";
30
30
  SENSOR_STATES[SENSOR_STATES["DRY"] = 5] = "DRY";
31
31
  SENSOR_STATES[SENSOR_STATES["WET"] = 6] = "WET";
32
- })(SENSOR_STATES = exports.SENSOR_STATES || (exports.SENSOR_STATES = {}));
32
+ })(SENSOR_STATES || (exports.SENSOR_STATES = SENSOR_STATES = {}));
33
33
  /***
34
34
  * State of the light as defined by Alarm.com
35
35
  * @readonly
@@ -39,7 +39,7 @@ var LIGHT_STATES;
39
39
  (function (LIGHT_STATES) {
40
40
  LIGHT_STATES[LIGHT_STATES["ON"] = 2] = "ON";
41
41
  LIGHT_STATES[LIGHT_STATES["OFF"] = 3] = "OFF";
42
- })(LIGHT_STATES = exports.LIGHT_STATES || (exports.LIGHT_STATES = {}));
42
+ })(LIGHT_STATES || (exports.LIGHT_STATES = LIGHT_STATES = {}));
43
43
  /***
44
44
  * State of the lock as defined by Alarm.com
45
45
  * @readonly
@@ -49,7 +49,7 @@ var LOCK_STATES;
49
49
  (function (LOCK_STATES) {
50
50
  LOCK_STATES[LOCK_STATES["SECURED"] = 1] = "SECURED";
51
51
  LOCK_STATES[LOCK_STATES["UNSECURED"] = 2] = "UNSECURED";
52
- })(LOCK_STATES = exports.LOCK_STATES || (exports.LOCK_STATES = {}));
52
+ })(LOCK_STATES || (exports.LOCK_STATES = LOCK_STATES = {}));
53
53
  /***
54
54
  * State of the garage as defined by Alarm.com
55
55
  * @readonly
@@ -60,7 +60,7 @@ var GARAGE_STATES;
60
60
  //UNKNOWN: 0, //ADC does not have an unknown state. ADC returns temp popup
61
61
  GARAGE_STATES[GARAGE_STATES["OPEN"] = 1] = "OPEN";
62
62
  GARAGE_STATES[GARAGE_STATES["CLOSED"] = 2] = "CLOSED"; //double check
63
- })(GARAGE_STATES = exports.GARAGE_STATES || (exports.GARAGE_STATES = {}));
63
+ })(GARAGE_STATES || (exports.GARAGE_STATES = GARAGE_STATES = {}));
64
64
  /***
65
65
  * State of the thermostat as defined by Alarm.com
66
66
  * @readonly
@@ -72,7 +72,7 @@ var THERMOSTAT_STATES;
72
72
  THERMOSTAT_STATES[THERMOSTAT_STATES["HEATING"] = 2] = "HEATING";
73
73
  THERMOSTAT_STATES[THERMOSTAT_STATES["COOLING"] = 3] = "COOLING";
74
74
  THERMOSTAT_STATES[THERMOSTAT_STATES["AUTO"] = 4] = "AUTO";
75
- })(THERMOSTAT_STATES = exports.THERMOSTAT_STATES || (exports.THERMOSTAT_STATES = {}));
75
+ })(THERMOSTAT_STATES || (exports.THERMOSTAT_STATES = THERMOSTAT_STATES = {}));
76
76
  /***
77
77
  * Relation types as defined by Alarm.com.
78
78
  * Relationship types tell you what object is being sent from the API.
@@ -91,4 +91,4 @@ var REL_TYPES;
91
91
  REL_TYPES["GEO_DEVICE"] = "geolocation/geo-device";
92
92
  REL_TYPES["GEO_FENCE"] = "geolocation/fence";
93
93
  REL_TYPES["SCENE"] = "automation/scene";
94
- })(REL_TYPES = exports.REL_TYPES || (exports.REL_TYPES = {}));
94
+ })(REL_TYPES || (exports.REL_TYPES = REL_TYPES = {}));
@@ -16,9 +16,9 @@ var RelationshipType;
16
16
  RelationshipType["SystemConfig"] = "systems/configuration";
17
17
  RelationshipType["System"] = "systems/system";
18
18
  RelationshipType["State"] = "devices/state-info";
19
- })(RelationshipType = exports.RelationshipType || (exports.RelationshipType = {}));
19
+ })(RelationshipType || (exports.RelationshipType = RelationshipType = {}));
20
20
  var AutomationType;
21
21
  (function (AutomationType) {
22
22
  AutomationType["PeakProtect"] = "automation/peak-protect";
23
23
  AutomationType["RuleSuggestion"] = "automation/rules/ruleSuggestion";
24
- })(AutomationType = exports.AutomationType || (exports.AutomationType = {}));
24
+ })(AutomationType || (exports.AutomationType = AutomationType = {}));
package/package.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "name": "node-alarm-dot-com",
3
- "version": "2.1.0-beta.6",
4
- "betaVersion": "2.1.0",
3
+ "version": "2.1.0",
5
4
  "description": "An interface module written in node.js to arm and disarm Alarm.com security systems.",
6
5
  "author": {
7
6
  "name": "Chase Lau",
@@ -48,18 +47,18 @@
48
47
  "node": ">=14.0.0"
49
48
  },
50
49
  "dependencies": {
51
- "@types/node": "^18.11.18",
50
+ "@types/node": "^20.5.9",
52
51
  "@types/node-fetch": "^3.0.2",
53
52
  "node-fetch": "^2.6.1",
54
- "semver": "^7.3.8"
53
+ "semver": "^7.5.4"
55
54
  },
56
55
  "devDependencies": {
57
- "@typescript-eslint/eslint-plugin": "^5.48.2",
58
- "@typescript-eslint/parser": "^5.48.2",
59
- "eslint": "8.22.0",
56
+ "@typescript-eslint/eslint-plugin": "^6.5.0",
57
+ "@typescript-eslint/parser": "^6.5.0",
58
+ "eslint": "8.48.0",
60
59
  "rimraf": "^4.1.1",
61
60
  "ts-node": "^10.9.1",
62
- "typescript": "^4.9.4",
63
- "yargs": "^17.6.2"
61
+ "typescript": "^5.2.2",
62
+ "yargs": "^17.7.2"
64
63
  }
65
- }
64
+ }