grm-shared-library 1.1.141 → 1.1.142

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.
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotificationPriority = void 0;
4
+ var NotificationPriority;
5
+ (function (NotificationPriority) {
6
+ NotificationPriority["LOW"] = "Low";
7
+ NotificationPriority["MEDIUM"] = "Medium";
8
+ NotificationPriority["HIGH"] = "High";
9
+ NotificationPriority["CRITICAL"] = "Critical";
10
+ })(NotificationPriority || (exports.NotificationPriority = NotificationPriority = {}));
11
+ //# sourceMappingURL=notification-priority.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-priority.enum.js","sourceRoot":"","sources":["../../../../../src/modules/socket/enums/notification-priority.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC5B,mCAAW,CAAA;IACX,yCAAiB,CAAA;IACjB,qCAAa,CAAA;IACb,6CAAqB,CAAA;AACzB,CAAC,EALW,oBAAoB,oCAApB,oBAAoB,QAK/B"}
@@ -19,5 +19,7 @@ __exportStar(require("./interfaces/event-response"), exports);
19
19
  __exportStar(require("./interfaces/online-user"), exports);
20
20
  __exportStar(require("./interfaces/event-envelope"), exports);
21
21
  __exportStar(require("./interfaces/client-safe-incident"), exports);
22
+ __exportStar(require("./interfaces/notification"), exports);
22
23
  __exportStar(require("./enums/room-type.enum"), exports);
24
+ __exportStar(require("./enums/notification-priority.enum"), exports);
23
25
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/socket/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,8DAA4C;AAC5C,2DAAyC;AACzC,8DAA4C;AAC5C,oEAAkD;AAClD,yDAAuC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/socket/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,8DAA4C;AAC5C,2DAAyC;AACzC,8DAA4C;AAC5C,oEAAkD;AAClD,4DAA0C;AAC1C,yDAAuC;AACvC,qEAAmD"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=notification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.js","sourceRoot":"","sources":["../../../../../src/modules/socket/interfaces/notification.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ export var NotificationPriority;
2
+ (function (NotificationPriority) {
3
+ NotificationPriority["LOW"] = "Low";
4
+ NotificationPriority["MEDIUM"] = "Medium";
5
+ NotificationPriority["HIGH"] = "High";
6
+ NotificationPriority["CRITICAL"] = "Critical";
7
+ })(NotificationPriority || (NotificationPriority = {}));
8
+ //# sourceMappingURL=notification-priority.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-priority.enum.js","sourceRoot":"","sources":["../../../../../src/modules/socket/enums/notification-priority.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC5B,mCAAW,CAAA;IACX,yCAAiB,CAAA;IACjB,qCAAa,CAAA;IACb,6CAAqB,CAAA;AACzB,CAAC,EALW,oBAAoB,KAApB,oBAAoB,QAK/B"}
@@ -3,5 +3,7 @@ export * from './interfaces/event-response';
3
3
  export * from './interfaces/online-user';
4
4
  export * from './interfaces/event-envelope';
5
5
  export * from './interfaces/client-safe-incident';
6
+ export * from './interfaces/notification';
6
7
  export * from './enums/room-type.enum';
8
+ export * from './enums/notification-priority.enum';
7
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/socket/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/socket/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,oCAAoC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=notification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.js","sourceRoot":"","sources":["../../../../../src/modules/socket/interfaces/notification.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export declare enum NotificationPriority {
2
+ LOW = "Low",
3
+ MEDIUM = "Medium",
4
+ HIGH = "High",
5
+ CRITICAL = "Critical"
6
+ }
@@ -3,4 +3,6 @@ export * from './interfaces/event-response';
3
3
  export * from './interfaces/online-user';
4
4
  export * from './interfaces/event-envelope';
5
5
  export * from './interfaces/client-safe-incident';
6
+ export * from './interfaces/notification';
6
7
  export * from './enums/room-type.enum';
8
+ export * from './enums/notification-priority.enum';
@@ -7,7 +7,7 @@ export interface EventEnvelope<TEntity = unknown> {
7
7
  action: IncidentActions | string;
8
8
  entityId: string;
9
9
  organizationId: string;
10
- controlCentreId?: number;
10
+ controlCentreId: string;
11
11
  assignedUserIds?: string[];
12
12
  timestamp: string;
13
13
  actorUserId?: string;
@@ -0,0 +1,16 @@
1
+ import { IncidentActions } from "../../incident";
2
+ import { NotificationPriority } from "../enums/notification-priority.enum";
3
+ export interface Notification<TEntity = any> {
4
+ id: string;
5
+ EntityId: string;
6
+ payload: TEntity;
7
+ action: IncidentActions | string;
8
+ title: string;
9
+ message: string;
10
+ timestamp: Date;
11
+ priority: NotificationPriority;
12
+ isRead: boolean;
13
+ userId?: string;
14
+ organizationId?: string;
15
+ controlCentreId?: string;
16
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "grm-shared-library",
3
- "version": "1.1.141",
3
+ "version": "1.1.142",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",