node-alarm-dot-com 2.1.0-beta.6 → 2.1.0-beta.7
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,7 @@
|
|
1
1
|
import { Relationship } from './IdentityResponse';
|
2
|
-
import { AutomationType, RelationshipType } from './SystemState';
|
3
|
-
import { GARAGE_STATES, LIGHT_STATES, LOCK_STATES, SENSOR_STATES, SYSTEM_STATES, THERMOSTAT_STATES } from './States';
|
4
2
|
import { SensorType } from './SensorType';
|
3
|
+
import { GARAGE_STATES, LIGHT_STATES, LOCK_STATES, SENSOR_STATES, SYSTEM_STATES, THERMOSTAT_STATES } from './States';
|
4
|
+
import { AutomationType, RelationshipType } from './SystemState';
|
5
5
|
export interface ApiLightState extends ApiDeviceState {
|
6
6
|
data: {
|
7
7
|
id: string;
|
@@ -1052,6 +1052,72 @@ export interface ThermostatState extends DeviceState {
|
|
1052
1052
|
};
|
1053
1053
|
};
|
1054
1054
|
}
|
1055
|
+
export interface ApiAccessControlState extends ApiDeviceState {
|
1056
|
+
data: {
|
1057
|
+
id: string;
|
1058
|
+
type: RelationshipType.AccessControl;
|
1059
|
+
attributes: {
|
1060
|
+
managedDeviceType: number;
|
1061
|
+
state: LOCK_STATES;
|
1062
|
+
desiredState: LOCK_STATES;
|
1063
|
+
canBuzz: boolean;
|
1064
|
+
canLockUnlock: boolean;
|
1065
|
+
readerAntiPassbackEnabled: boolean;
|
1066
|
+
apbDelay: number;
|
1067
|
+
twoPersonAccessEnabled: boolean;
|
1068
|
+
hasMiwaLock: boolean;
|
1069
|
+
twoPersonAccessSupported: boolean;
|
1070
|
+
hasState: boolean;
|
1071
|
+
canBeRenamed: boolean;
|
1072
|
+
canBeDeleted: boolean;
|
1073
|
+
canAccessWebSettings: boolean;
|
1074
|
+
canAccessAppSettings: boolean;
|
1075
|
+
webSettings: number;
|
1076
|
+
canAccessTroubleshootingWizard: boolean;
|
1077
|
+
troubleshootingWizard: null;
|
1078
|
+
addDeviceResource: number;
|
1079
|
+
canBeAssociatedToVideoDevice: boolean;
|
1080
|
+
associatedCameraDeviceIds: {};
|
1081
|
+
macAddress: string;
|
1082
|
+
manufacturer: string;
|
1083
|
+
isAssignedToCareReceiver: boolean;
|
1084
|
+
isOAuth: boolean;
|
1085
|
+
isZWave: boolean;
|
1086
|
+
supportsCommandClassBasic: boolean;
|
1087
|
+
isMalfunctioning: boolean;
|
1088
|
+
isZWaveWakeupNode: boolean;
|
1089
|
+
unitSupportsRemovingWakeupNode: boolean;
|
1090
|
+
primaryAssociatedDeviceIds: null;
|
1091
|
+
canBeSaved: boolean;
|
1092
|
+
canChangeDescription: boolean;
|
1093
|
+
description: string;
|
1094
|
+
deviceModelId: number;
|
1095
|
+
canConfirmStateChange: boolean;
|
1096
|
+
canReceiveCommands: boolean;
|
1097
|
+
remoteCommandsEnabled: boolean;
|
1098
|
+
hasPermissionToChangeState: boolean;
|
1099
|
+
deviceIcon: {
|
1100
|
+
"icon": number;
|
1101
|
+
};
|
1102
|
+
batteryLevelNull: null;
|
1103
|
+
batteryLevelClassification: null;
|
1104
|
+
};
|
1105
|
+
relationships: {
|
1106
|
+
system: {
|
1107
|
+
data: {
|
1108
|
+
id: string;
|
1109
|
+
type: RelationshipType.System;
|
1110
|
+
};
|
1111
|
+
};
|
1112
|
+
stateInfo: {
|
1113
|
+
data: {
|
1114
|
+
id: string;
|
1115
|
+
type: RelationshipType.State;
|
1116
|
+
};
|
1117
|
+
};
|
1118
|
+
};
|
1119
|
+
};
|
1120
|
+
}
|
1055
1121
|
/**
|
1056
1122
|
* Base interface for retrieving device state from Alarm.com's API
|
1057
1123
|
* All devices retrieved contain these properties.
|
@@ -123,5 +123,5 @@ export interface IdentityData {
|
|
123
123
|
}
|
124
124
|
export interface Relationship {
|
125
125
|
id: string;
|
126
|
-
type: 'devices/partition' | 'devices/lock' | 'video/camera' | 'devices/garage-door' | 'automation/scene' | 'devices/sensor' | 'devices/light' | 'devices/thermostat' | 'geolocation/geo-device' | 'geolocation/fence' | 'systems/configuration' | 'navigation/route-item' | 'dealers/dealer' | 'ui/color' | 'profile/profile' | 'accountInformation/account-information';
|
126
|
+
type: 'devices/partition' | 'devices/lock' | 'video/camera' | 'devices/garage-door' | 'automation/scene' | 'devices/sensor' | 'devices/light' | 'devices/thermostat' | 'geolocation/geo-device' | 'geolocation/fence' | 'systems/configuration' | 'navigation/route-item' | 'devices/access-control-access-point-device' | 'dealers/dealer' | 'ui/color' | 'profile/profile' | 'accountInformation/account-information';
|
127
127
|
}
|
package/dist/_models/States.d.ts
CHANGED
@@ -78,5 +78,6 @@ export declare enum REL_TYPES {
|
|
78
78
|
THERMOSTAT = "devices/thermostat",
|
79
79
|
GEO_DEVICE = "geolocation/geo-device",
|
80
80
|
GEO_FENCE = "geolocation/fence",
|
81
|
-
SCENE = "automation/scene"
|
81
|
+
SCENE = "automation/scene",
|
82
|
+
ACCESS_CONTROL = "devices/access-control-access-point-device"
|
82
83
|
}
|
package/dist/_models/States.js
CHANGED
@@ -91,4 +91,5 @@ 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["ACCESS_CONTROL"] = "devices/access-control-access-point-device";
|
94
95
|
})(REL_TYPES = exports.REL_TYPES || (exports.REL_TYPES = {}));
|
@@ -203,7 +203,8 @@ export declare enum RelationshipType {
|
|
203
203
|
GeoFence = "geolocation/fence",
|
204
204
|
SystemConfig = "systems/configuration",
|
205
205
|
System = "systems/system",
|
206
|
-
State = "devices/state-info"
|
206
|
+
State = "devices/state-info",
|
207
|
+
AccessControl = "devices/access-control-access-point-device"
|
207
208
|
}
|
208
209
|
export declare enum AutomationType {
|
209
210
|
PeakProtect = "automation/peak-protect",
|
@@ -16,6 +16,7 @@ var RelationshipType;
|
|
16
16
|
RelationshipType["SystemConfig"] = "systems/configuration";
|
17
17
|
RelationshipType["System"] = "systems/system";
|
18
18
|
RelationshipType["State"] = "devices/state-info";
|
19
|
+
RelationshipType["AccessControl"] = "devices/access-control-access-point-device";
|
19
20
|
})(RelationshipType = exports.RelationshipType || (exports.RelationshipType = {}));
|
20
21
|
var AutomationType;
|
21
22
|
(function (AutomationType) {
|