dt-common-device 9.2.1 → 9.2.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 +1,2 @@
1
1
  export declare const excludeEvents: string[];
2
+ export declare const propertyIdsToPush: string[];
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.excludeEvents = void 0;
3
+ exports.propertyIdsToPush = exports.excludeEvents = void 0;
4
4
  exports.excludeEvents = [
5
5
  "device.event.received",
6
6
  "device.event.processed",
@@ -17,7 +17,6 @@ exports.excludeEvents = [
17
17
  "lock.code.usage_count",
18
18
  "device.webhook.received",
19
19
  "$screen",
20
- "lock.code.delete.pending",
21
20
  "heartbeat.lock.missing_codes",
22
21
  "schedule.create.success",
23
22
  "playlist.play.start",
@@ -44,3 +43,9 @@ exports.excludeEvents = [
44
43
  "issue.resolve.success",
45
44
  "lock.provision.auto.generate.complete",
46
45
  ];
46
+ // McCoy Properties
47
+ exports.propertyIdsToPush = [
48
+ "816b315f-4e38-461b-a8cc-c57116ac9c07",
49
+ "3264bff1-2146-42db-b7e2-1a163e7fc56b",
50
+ "e879ab0f-7951-4b57-8d16-81279bad7ca8",
51
+ ];
@@ -10,7 +10,8 @@ const typedi_1 = __importDefault(require("typedi"));
10
10
  const ExcludeAudits_1 = require("./ExcludeAudits");
11
11
  async function pushAudit(data) {
12
12
  const audit = await typedi_1.default.get(AuditUtils_1.AuditUtils).buildAuditProperties(data.auditData);
13
- if (ExcludeAudits_1.excludeEvents.includes(data.auditType)) {
13
+ if (ExcludeAudits_1.excludeEvents.includes(data.auditType) &&
14
+ !ExcludeAudits_1.propertyIdsToPush.includes(data.auditData.propertyId)) {
14
15
  console.log("Audit event excluded:", data.auditType);
15
16
  }
16
17
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dt-common-device",
3
- "version": "9.2.1",
3
+ "version": "9.2.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [