dt-common-device 5.0.0 → 5.0.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.
|
@@ -1,14 +1,18 @@
|
|
|
1
|
+
import { Source } from "../constants";
|
|
1
2
|
export declare enum Resource {
|
|
2
3
|
ORGANIZATION = "organization",
|
|
3
4
|
PROPERTY = "property",
|
|
5
|
+
CONNECTION = "connection",
|
|
4
6
|
ACCESS_GROUP = "accessGroup",
|
|
5
7
|
ZONE = "zone",
|
|
6
8
|
DEVICE = "device",
|
|
7
9
|
SCHEDULE = "schedule",
|
|
8
|
-
USER = "user"
|
|
10
|
+
USER = "user",
|
|
11
|
+
GUEST = "guest"
|
|
9
12
|
}
|
|
10
13
|
export interface IAuditProperties {
|
|
11
14
|
resource: Resource;
|
|
15
|
+
source: Source;
|
|
12
16
|
propertyId: string;
|
|
13
17
|
propertyName?: string;
|
|
14
18
|
userId?: string;
|
|
@@ -5,9 +5,11 @@ var Resource;
|
|
|
5
5
|
(function (Resource) {
|
|
6
6
|
Resource["ORGANIZATION"] = "organization";
|
|
7
7
|
Resource["PROPERTY"] = "property";
|
|
8
|
+
Resource["CONNECTION"] = "connection";
|
|
8
9
|
Resource["ACCESS_GROUP"] = "accessGroup";
|
|
9
10
|
Resource["ZONE"] = "zone";
|
|
10
11
|
Resource["DEVICE"] = "device";
|
|
11
12
|
Resource["SCHEDULE"] = "schedule";
|
|
12
13
|
Resource["USER"] = "user";
|
|
14
|
+
Resource["GUEST"] = "guest";
|
|
13
15
|
})(Resource || (exports.Resource = Resource = {}));
|
|
@@ -138,6 +138,7 @@ let DeviceEventHandler = (() => {
|
|
|
138
138
|
deviceName: deviceData.name,
|
|
139
139
|
propertyId: deviceData.propertyId,
|
|
140
140
|
resource: IAuditProperties_1.Resource.DEVICE,
|
|
141
|
+
source: constants_1.Source.CLOUD_EVENT,
|
|
141
142
|
});
|
|
142
143
|
break;
|
|
143
144
|
case Event_1.DT_EVENT_TYPES.DEVICE.BATTERY.CHANGED:
|
|
@@ -146,6 +147,7 @@ let DeviceEventHandler = (() => {
|
|
|
146
147
|
deviceName: deviceData.name,
|
|
147
148
|
propertyId: deviceData.propertyId,
|
|
148
149
|
resource: IAuditProperties_1.Resource.DEVICE,
|
|
150
|
+
source: constants_1.Source.CLOUD_EVENT,
|
|
149
151
|
});
|
|
150
152
|
break;
|
|
151
153
|
}
|