grm-shared-library 1.1.140 → 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.
- package/dist/cjs/modules/socket/enums/notification-priority.enum.js +11 -0
- package/dist/cjs/modules/socket/enums/notification-priority.enum.js.map +1 -0
- package/dist/cjs/modules/socket/enums/room-type.enum.js +12 -0
- package/dist/cjs/modules/socket/enums/room-type.enum.js.map +1 -0
- package/dist/cjs/modules/socket/index.js +3 -0
- package/dist/cjs/modules/socket/index.js.map +1 -1
- package/dist/cjs/modules/socket/interfaces/notification.js +3 -0
- package/dist/cjs/modules/socket/interfaces/notification.js.map +1 -0
- package/dist/esm/modules/socket/enums/notification-priority.enum.js +8 -0
- package/dist/esm/modules/socket/enums/notification-priority.enum.js.map +1 -0
- package/dist/esm/modules/socket/enums/room-type.enum.js +9 -0
- package/dist/esm/modules/socket/enums/room-type.enum.js.map +1 -0
- package/dist/esm/modules/socket/index.js +3 -0
- package/dist/esm/modules/socket/index.js.map +1 -1
- package/dist/esm/modules/socket/interfaces/notification.js +2 -0
- package/dist/esm/modules/socket/interfaces/notification.js.map +1 -0
- package/dist/types/modules/socket/enums/notification-priority.enum.d.ts +6 -0
- package/dist/types/modules/socket/enums/room-type.enum.d.ts +7 -0
- package/dist/types/modules/socket/index.d.ts +3 -0
- package/dist/types/modules/socket/interfaces/event-envelope.d.ts +1 -1
- package/dist/types/modules/socket/interfaces/notification.d.ts +16 -0
- package/package.json +1 -1
|
@@ -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"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RoomTypeEnum = void 0;
|
|
4
|
+
var RoomTypeEnum;
|
|
5
|
+
(function (RoomTypeEnum) {
|
|
6
|
+
RoomTypeEnum["ORG"] = "org";
|
|
7
|
+
RoomTypeEnum["USER"] = "user";
|
|
8
|
+
RoomTypeEnum["CONTROL_CENTRE"] = "controlCentre";
|
|
9
|
+
RoomTypeEnum["ROLE"] = "role";
|
|
10
|
+
RoomTypeEnum["INVALID"] = "invalid";
|
|
11
|
+
})(RoomTypeEnum || (exports.RoomTypeEnum = RoomTypeEnum = {}));
|
|
12
|
+
//# sourceMappingURL=room-type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"room-type.enum.js","sourceRoot":"","sources":["../../../../../src/modules/socket/enums/room-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAMX;AAND,WAAY,YAAY;IACpB,2BAAW,CAAA;IACX,6BAAa,CAAA;IACb,gDAAgC,CAAA;IAChC,6BAAa,CAAA;IACb,mCAAmB,CAAA;AACvB,CAAC,EANW,YAAY,4BAAZ,YAAY,QAMvB"}
|
|
@@ -19,4 +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);
|
|
23
|
+
__exportStar(require("./enums/room-type.enum"), exports);
|
|
24
|
+
__exportStar(require("./enums/notification-priority.enum"), exports);
|
|
22
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"}
|
|
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 @@
|
|
|
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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export var RoomTypeEnum;
|
|
2
|
+
(function (RoomTypeEnum) {
|
|
3
|
+
RoomTypeEnum["ORG"] = "org";
|
|
4
|
+
RoomTypeEnum["USER"] = "user";
|
|
5
|
+
RoomTypeEnum["CONTROL_CENTRE"] = "controlCentre";
|
|
6
|
+
RoomTypeEnum["ROLE"] = "role";
|
|
7
|
+
RoomTypeEnum["INVALID"] = "invalid";
|
|
8
|
+
})(RoomTypeEnum || (RoomTypeEnum = {}));
|
|
9
|
+
//# sourceMappingURL=room-type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"room-type.enum.js","sourceRoot":"","sources":["../../../../../src/modules/socket/enums/room-type.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,YAMX;AAND,WAAY,YAAY;IACpB,2BAAW,CAAA;IACX,6BAAa,CAAA;IACb,gDAAgC,CAAA;IAChC,6BAAa,CAAA;IACb,mCAAmB,CAAA;AACvB,CAAC,EANW,YAAY,KAAZ,YAAY,QAMvB"}
|
|
@@ -3,4 +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';
|
|
7
|
+
export * from './enums/room-type.enum';
|
|
8
|
+
export * from './enums/notification-priority.enum';
|
|
6
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"}
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"notification.js","sourceRoot":"","sources":["../../../../../src/modules/socket/interfaces/notification.ts"],"names":[],"mappings":""}
|
|
@@ -3,3 +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';
|
|
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
|
|
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
|
+
}
|