dt-common-device 7.8.4 → 7.8.5

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.
@@ -68,6 +68,8 @@ let AlertRepository = (() => {
68
68
  query.isRead = filters.isRead;
69
69
  if (!filters.includeDeleted)
70
70
  query.isDeleted = false;
71
+ if (!filters.includeSnoozed)
72
+ query.snoozeUntil = { $exists: false, $eq: null };
71
73
  if (filters.type) {
72
74
  if (Array.isArray(filters.type)) {
73
75
  query.type = { $in: filters.type };
@@ -750,6 +750,10 @@ let AlertService = (() => {
750
750
  if (!enhancedFilters.includeDeleted) {
751
751
  enhancedFilters.includeDeleted = false;
752
752
  }
753
+ // Example: Always exclude snoozed alerts unless explicitly requested
754
+ if (!enhancedFilters.includeSnoozed) {
755
+ enhancedFilters.includeSnoozed = false;
756
+ }
753
757
  return enhancedFilters;
754
758
  }
755
759
  };
@@ -87,6 +87,7 @@ export interface IAlertQuery {
87
87
  isActive?: boolean;
88
88
  isRead?: boolean;
89
89
  includeDeleted?: boolean;
90
+ includeSnoozed?: boolean;
90
91
  startDate?: string;
91
92
  endDate?: string;
92
93
  sort?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dt-common-device",
3
- "version": "7.8.4",
3
+ "version": "7.8.5",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [