dt-common-device 7.7.0 → 7.8.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.
|
@@ -32,6 +32,8 @@ export declare class AlertService {
|
|
|
32
32
|
*/
|
|
33
33
|
raiseDeviceOnlineAlert(device: IDevice, source: Source): Promise<IAlertDocument | null>;
|
|
34
34
|
raiseLockAccessEmergencyCodeAlert(device: IDevice, zone: any, source: Source): Promise<IAlertDocument | null>;
|
|
35
|
+
raiseLockAccessEmergencyRfidAlert(device: IDevice, zone: any, source: Source): Promise<IAlertDocument | null>;
|
|
36
|
+
raiseLockAccessMasterRfidAlert(device: IDevice, zone: any, source: Source): Promise<IAlertDocument | null>;
|
|
35
37
|
raiseLockAccessMasterCodeAlert(device: IDevice, zone: any, source: Source): Promise<IAlertDocument | null>;
|
|
36
38
|
raiseSpecificDoorAccessAlert(userName: string, device: IDevice, zone: any, source: Source): Promise<IAlertDocument | null>;
|
|
37
39
|
raiseGuestLockFirstAccessAlert(userName: string, device: IDevice, zone: any, source: Source): Promise<IAlertDocument | null>;
|
|
@@ -253,6 +253,36 @@ let AlertService = (() => {
|
|
|
253
253
|
type: alert_types_1.AlertType.LOCK_ACCESS_EMERGENCY_CODE,
|
|
254
254
|
});
|
|
255
255
|
}
|
|
256
|
+
async raiseLockAccessEmergencyRfidAlert(device, zone, source) {
|
|
257
|
+
return await this.createAlert({
|
|
258
|
+
entityId: device.deviceId,
|
|
259
|
+
entityType: alert_types_1.EntityType.DEVICE,
|
|
260
|
+
entitySubType: device.deviceType.type,
|
|
261
|
+
propertyId: device.propertyId,
|
|
262
|
+
zoneId: device.zoneId,
|
|
263
|
+
title: "Emergency RFID Card Used",
|
|
264
|
+
description: `${zone?.name} has been accessed using the emergency RFID card.`,
|
|
265
|
+
createdBy: source,
|
|
266
|
+
category: alert_types_1.AlertCategory.SECURITY,
|
|
267
|
+
severity: alert_types_1.AlertSeverity.HIGH,
|
|
268
|
+
type: alert_types_1.AlertType.LOCK_ACCESS_EMERGENCY_RFID,
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
async raiseLockAccessMasterRfidAlert(device, zone, source) {
|
|
272
|
+
return await this.createAlert({
|
|
273
|
+
entityId: device.deviceId,
|
|
274
|
+
entityType: alert_types_1.EntityType.DEVICE,
|
|
275
|
+
entitySubType: device.deviceType.type,
|
|
276
|
+
propertyId: device.propertyId,
|
|
277
|
+
zoneId: device.zoneId,
|
|
278
|
+
title: "Master RFID Card Used",
|
|
279
|
+
description: `${zone?.name} has been accessed using the master RFID card.`,
|
|
280
|
+
createdBy: source,
|
|
281
|
+
category: alert_types_1.AlertCategory.SECURITY,
|
|
282
|
+
severity: alert_types_1.AlertSeverity.HIGH,
|
|
283
|
+
type: alert_types_1.AlertType.LOCK_ACCESS_MASTER_RFID,
|
|
284
|
+
});
|
|
285
|
+
}
|
|
256
286
|
async raiseLockAccessMasterCodeAlert(device, zone, source) {
|
|
257
287
|
return await this.createAlert({
|
|
258
288
|
entityId: device.deviceId,
|
|
@@ -19,6 +19,8 @@ export declare enum AlertType {
|
|
|
19
19
|
DOOR_OPEN_OUTSIDE_BIZ_HOURS = "DOOR_OPEN_OUTSIDE_BIZ_HOURS",
|
|
20
20
|
LOCK_ACCESS_EMERGENCY_CODE = "LOCK_ACCESS_EMERGENCY_CODE",
|
|
21
21
|
LOCK_ACCESS_MASTER_CODE = "LOCK_ACCESS_MASTER_CODE",
|
|
22
|
+
LOCK_ACCESS_EMERGENCY_RFID = "LOCK_ACCESS_EMERGENCY_RFID",
|
|
23
|
+
LOCK_ACCESS_MASTER_RFID = "LOCK_ACCESS_MASTER_RFID",
|
|
22
24
|
SPECIFIC_DOOR_ACCESS = "SPECIFIC_DOOR_ACCESS",
|
|
23
25
|
GUEST_LOCK_FIRST_ACCESS = "GUEST_LOCK_FIRST_ACCESS",
|
|
24
26
|
DEVICE_ONLINE = "DEVICE_ONLINE"
|
|
@@ -24,6 +24,8 @@ var AlertType;
|
|
|
24
24
|
AlertType["DOOR_OPEN_OUTSIDE_BIZ_HOURS"] = "DOOR_OPEN_OUTSIDE_BIZ_HOURS";
|
|
25
25
|
AlertType["LOCK_ACCESS_EMERGENCY_CODE"] = "LOCK_ACCESS_EMERGENCY_CODE";
|
|
26
26
|
AlertType["LOCK_ACCESS_MASTER_CODE"] = "LOCK_ACCESS_MASTER_CODE";
|
|
27
|
+
AlertType["LOCK_ACCESS_EMERGENCY_RFID"] = "LOCK_ACCESS_EMERGENCY_RFID";
|
|
28
|
+
AlertType["LOCK_ACCESS_MASTER_RFID"] = "LOCK_ACCESS_MASTER_RFID";
|
|
27
29
|
AlertType["SPECIFIC_DOOR_ACCESS"] = "SPECIFIC_DOOR_ACCESS";
|
|
28
30
|
AlertType["GUEST_LOCK_FIRST_ACCESS"] = "GUEST_LOCK_FIRST_ACCESS";
|
|
29
31
|
AlertType["DEVICE_ONLINE"] = "DEVICE_ONLINE";
|