clarion-shared-types 1.0.65 → 1.0.66
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/index.js +1 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/modules/socket/index.js +0 -3
- package/dist/cjs/modules/socket/index.js.map +1 -1
- package/dist/cjs/modules/web-notification/enums/notification-priority.enum.js.map +1 -0
- package/dist/cjs/modules/web-notification/enums/notification-provider.enum.js +11 -0
- package/dist/cjs/modules/web-notification/enums/notification-provider.enum.js.map +1 -0
- package/dist/cjs/modules/web-notification/enums/notification-type.enum.js +15 -0
- package/dist/cjs/modules/web-notification/enums/notification-type.enum.js.map +1 -0
- package/dist/cjs/modules/web-notification/enums/web-notification-data-type.enum.js +14 -0
- package/dist/cjs/modules/web-notification/enums/web-notification-data-type.enum.js.map +1 -0
- package/dist/cjs/modules/web-notification/index.js +24 -0
- package/dist/cjs/modules/web-notification/index.js.map +1 -0
- package/dist/cjs/modules/{socket/interfaces/notification.js → web-notification/interfaces/web-notification.js} +1 -1
- package/dist/cjs/modules/web-notification/interfaces/web-notification.js.map +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/modules/socket/index.js +0 -3
- package/dist/esm/modules/socket/index.js.map +1 -1
- package/dist/esm/modules/web-notification/enums/notification-priority.enum.js.map +1 -0
- package/dist/esm/modules/web-notification/enums/notification-provider.enum.js +8 -0
- package/dist/esm/modules/web-notification/enums/notification-provider.enum.js.map +1 -0
- package/dist/esm/modules/web-notification/enums/notification-type.enum.js +12 -0
- package/dist/esm/modules/web-notification/enums/notification-type.enum.js.map +1 -0
- package/dist/esm/modules/web-notification/enums/web-notification-data-type.enum.js +11 -0
- package/dist/esm/modules/web-notification/enums/web-notification-data-type.enum.js.map +1 -0
- package/dist/esm/modules/web-notification/index.js +8 -0
- package/dist/esm/modules/web-notification/index.js.map +1 -0
- package/dist/esm/modules/web-notification/interfaces/web-notification.js +2 -0
- package/dist/esm/modules/web-notification/interfaces/web-notification.js.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/modules/socket/index.d.ts +0 -3
- package/dist/types/modules/web-notification/enums/notification-provider.enum.d.ts +6 -0
- package/dist/types/modules/web-notification/enums/notification-type.enum.d.ts +10 -0
- package/dist/types/modules/{socket/enums/notification-payload-type.enum.d.ts → web-notification/enums/web-notification-data-type.enum.d.ts} +1 -1
- package/dist/types/modules/web-notification/index.d.ts +5 -0
- package/dist/types/modules/web-notification/interfaces/web-notification.d.ts +30 -0
- package/package.json +1 -1
- package/dist/cjs/modules/socket/enums/notification-payload-type.enum.js +0 -14
- package/dist/cjs/modules/socket/enums/notification-payload-type.enum.js.map +0 -1
- package/dist/cjs/modules/socket/enums/notification-priority.enum.js.map +0 -1
- package/dist/cjs/modules/socket/interfaces/notification.js.map +0 -1
- package/dist/esm/modules/socket/enums/notification-payload-type.enum.js +0 -11
- package/dist/esm/modules/socket/enums/notification-payload-type.enum.js.map +0 -1
- package/dist/esm/modules/socket/enums/notification-priority.enum.js.map +0 -1
- package/dist/esm/modules/socket/interfaces/notification.js +0 -2
- package/dist/esm/modules/socket/interfaces/notification.js.map +0 -1
- package/dist/types/modules/socket/interfaces/notification.d.ts +0 -18
- /package/dist/cjs/modules/{socket → web-notification}/enums/notification-priority.enum.js +0 -0
- /package/dist/esm/modules/{socket → web-notification}/enums/notification-priority.enum.js +0 -0
- /package/dist/types/modules/{socket → web-notification}/enums/notification-priority.enum.d.ts +0 -0
package/dist/cjs/index.js
CHANGED
|
@@ -29,6 +29,7 @@ __exportStar(require("./modules/dms/index"), exports);
|
|
|
29
29
|
__exportStar(require("./modules/sms/index"), exports);
|
|
30
30
|
__exportStar(require("./modules/gis/index"), exports);
|
|
31
31
|
__exportStar(require("./modules/socket/index"), exports);
|
|
32
|
+
__exportStar(require("./modules/web-notification/index"), exports);
|
|
32
33
|
// Interfaces
|
|
33
34
|
__exportStar(require("./modules/common/interfaces/server-message"), exports);
|
|
34
35
|
__exportStar(require("./modules/common/interfaces/pagination"), exports);
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,UAAU;AACV,uDAAqC;AACrC,+DAA6C;AAC7C,yDAAuC;AACvC,6DAA2C;AAC3C,uDAAqC;AACrC,uDAAqC;AACrC,iEAA+C;AAC/C,gEAA8C;AAC9C,2DAAyC;AACzC,2DAAyC;AACzC,sDAAoC;AACpC,sDAAoC;AACpC,sDAAoC;AACpC,yDAAuC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,UAAU;AACV,uDAAqC;AACrC,+DAA6C;AAC7C,yDAAuC;AACvC,6DAA2C;AAC3C,uDAAqC;AACrC,uDAAqC;AACrC,iEAA+C;AAC/C,gEAA8C;AAC9C,2DAAyC;AACzC,2DAAyC;AACzC,sDAAoC;AACpC,sDAAoC;AACpC,sDAAoC;AACpC,yDAAuC;AACvC,mEAAiD;AAEjD,aAAa;AACb,6EAA2D;AAC3D,yEAAuD"}
|
|
@@ -19,8 +19,5 @@ __exportStar(require("./interfaces/event-response"), exports);
|
|
|
19
19
|
__exportStar(require("./interfaces/online-user-data"), 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
22
|
__exportStar(require("./enums/room-type.enum"), exports);
|
|
24
|
-
__exportStar(require("./enums/notification-priority.enum"), exports);
|
|
25
|
-
__exportStar(require("./enums/notification-payload-type.enum"), exports);
|
|
26
23
|
//# 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,gEAA8C;AAC9C,8DAA4C;AAC5C,oEAAkD;AAClD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/socket/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,8DAA4C;AAC5C,gEAA8C;AAC9C,8DAA4C;AAC5C,oEAAkD;AAClD,yDAAuC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-priority.enum.js","sourceRoot":"","sources":["../../../../../src/modules/web-notification/enums/notification-priority.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,mCAAW,CAAA;IACX,yCAAiB,CAAA;IACjB,qCAAa,CAAA;IACb,6CAAqB,CAAA;AACvB,CAAC,EALW,oBAAoB,oCAApB,oBAAoB,QAK/B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotificationProvider = void 0;
|
|
4
|
+
var NotificationProvider;
|
|
5
|
+
(function (NotificationProvider) {
|
|
6
|
+
NotificationProvider["FCM"] = "FCM";
|
|
7
|
+
NotificationProvider["APNS"] = "APNS";
|
|
8
|
+
NotificationProvider["WEB_PUSH"] = "WEB_PUSH";
|
|
9
|
+
NotificationProvider["MOCK"] = "MOCK";
|
|
10
|
+
})(NotificationProvider || (exports.NotificationProvider = NotificationProvider = {}));
|
|
11
|
+
//# sourceMappingURL=notification-provider.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-provider.enum.js","sourceRoot":"","sources":["../../../../../src/modules/web-notification/enums/notification-provider.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC5B,mCAAW,CAAA;IACX,qCAAa,CAAA;IACb,6CAAqB,CAAA;IACrB,qCAAa,CAAA;AACjB,CAAC,EALW,oBAAoB,oCAApB,oBAAoB,QAK/B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotificationType = void 0;
|
|
4
|
+
var NotificationType;
|
|
5
|
+
(function (NotificationType) {
|
|
6
|
+
NotificationType["INCIDENT"] = "INCIDENT";
|
|
7
|
+
NotificationType["ALERT"] = "ALERT";
|
|
8
|
+
NotificationType["TASK"] = "TASK";
|
|
9
|
+
NotificationType["ACCOUNT"] = "ACCOUNT";
|
|
10
|
+
NotificationType["ANNOUNCEMENT"] = "ANNOUNCEMENT";
|
|
11
|
+
NotificationType["MESSAGE"] = "MESSAGE";
|
|
12
|
+
NotificationType["WORKFLOW"] = "WORKFLOW";
|
|
13
|
+
NotificationType["GENERAL"] = "GENERAL";
|
|
14
|
+
})(NotificationType || (exports.NotificationType = NotificationType = {}));
|
|
15
|
+
//# sourceMappingURL=notification-type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-type.enum.js","sourceRoot":"","sources":["../../../../../src/modules/web-notification/enums/notification-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBASX;AATD,WAAY,gBAAgB;IAC1B,yCAAqB,CAAA;IACrB,mCAAe,CAAA;IACf,iCAAa,CAAA;IACb,uCAAmB,CAAA;IACnB,iDAA6B,CAAA;IAC7B,uCAAmB,CAAA;IACnB,yCAAqB,CAAA;IACrB,uCAAmB,CAAA;AACrB,CAAC,EATW,gBAAgB,gCAAhB,gBAAgB,QAS3B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebNotificationDataType = void 0;
|
|
4
|
+
var WebNotificationDataType;
|
|
5
|
+
(function (WebNotificationDataType) {
|
|
6
|
+
WebNotificationDataType["INCIDENT"] = "INCIDENT";
|
|
7
|
+
WebNotificationDataType["TASK"] = "TASK";
|
|
8
|
+
WebNotificationDataType["MESSAGE"] = "MESSAGE";
|
|
9
|
+
WebNotificationDataType["SUPPORT_TICKET"] = "SUPPORT_TICKET";
|
|
10
|
+
WebNotificationDataType["ALERT"] = "ALERT";
|
|
11
|
+
WebNotificationDataType["SYSTEM_ALERT"] = "SYSTEM_ALERT";
|
|
12
|
+
WebNotificationDataType["OTHER"] = "OTHER";
|
|
13
|
+
})(WebNotificationDataType || (exports.WebNotificationDataType = WebNotificationDataType = {}));
|
|
14
|
+
//# sourceMappingURL=web-notification-data-type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-notification-data-type.enum.js","sourceRoot":"","sources":["../../../../../src/modules/web-notification/enums/web-notification-data-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,uBAQX;AARD,WAAY,uBAAuB;IAC/B,gDAAqB,CAAA;IACrB,wCAAa,CAAA;IACb,8CAAmB,CAAA;IACnB,4DAAiC,CAAA;IACjC,0CAAe,CAAA;IACf,wDAA6B,CAAA;IAC7B,0CAAe,CAAA;AACnB,CAAC,EARW,uBAAuB,uCAAvB,uBAAuB,QAQlC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
// Enums
|
|
18
|
+
__exportStar(require("./enums/notification-priority.enum"), exports);
|
|
19
|
+
__exportStar(require("./enums/web-notification-data-type.enum"), exports);
|
|
20
|
+
__exportStar(require("./enums/notification-type.enum"), exports);
|
|
21
|
+
__exportStar(require("./enums/notification-provider.enum"), exports);
|
|
22
|
+
// Interfaces
|
|
23
|
+
__exportStar(require("./interfaces/web-notification"), exports);
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/web-notification/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,QAAQ;AACR,qEAAmD;AACnD,0EAAwD;AACxD,iEAA+C;AAC/C,qEAAmD;AAEnD,aAAa;AACb,gEAA8C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-notification.js","sourceRoot":"","sources":["../../../../../src/modules/web-notification/interfaces/web-notification.ts"],"names":[],"mappings":""}
|
package/dist/esm/index.js
CHANGED
|
@@ -13,6 +13,7 @@ export * from './modules/dms/index';
|
|
|
13
13
|
export * from './modules/sms/index';
|
|
14
14
|
export * from './modules/gis/index';
|
|
15
15
|
export * from './modules/socket/index';
|
|
16
|
+
export * from './modules/web-notification/index';
|
|
16
17
|
// Interfaces
|
|
17
18
|
export * from './modules/common/interfaces/server-message';
|
|
18
19
|
export * from './modules/common/interfaces/pagination';
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,UAAU;AACV,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,UAAU;AACV,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AAEjD,aAAa;AACb,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wCAAwC,CAAC"}
|
|
@@ -3,8 +3,5 @@ export * from './interfaces/event-response';
|
|
|
3
3
|
export * from './interfaces/online-user-data';
|
|
4
4
|
export * from './interfaces/event-envelope';
|
|
5
5
|
export * from './interfaces/client-safe-incident';
|
|
6
|
-
export * from './interfaces/notification';
|
|
7
6
|
export * from './enums/room-type.enum';
|
|
8
|
-
export * from './enums/notification-priority.enum';
|
|
9
|
-
export * from './enums/notification-payload-type.enum';
|
|
10
7
|
//# 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,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,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,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-priority.enum.js","sourceRoot":"","sources":["../../../../../src/modules/web-notification/enums/notification-priority.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,mCAAW,CAAA;IACX,yCAAiB,CAAA;IACjB,qCAAa,CAAA;IACb,6CAAqB,CAAA;AACvB,CAAC,EALW,oBAAoB,KAApB,oBAAoB,QAK/B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export var NotificationProvider;
|
|
2
|
+
(function (NotificationProvider) {
|
|
3
|
+
NotificationProvider["FCM"] = "FCM";
|
|
4
|
+
NotificationProvider["APNS"] = "APNS";
|
|
5
|
+
NotificationProvider["WEB_PUSH"] = "WEB_PUSH";
|
|
6
|
+
NotificationProvider["MOCK"] = "MOCK";
|
|
7
|
+
})(NotificationProvider || (NotificationProvider = {}));
|
|
8
|
+
//# sourceMappingURL=notification-provider.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-provider.enum.js","sourceRoot":"","sources":["../../../../../src/modules/web-notification/enums/notification-provider.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC5B,mCAAW,CAAA;IACX,qCAAa,CAAA;IACb,6CAAqB,CAAA;IACrB,qCAAa,CAAA;AACjB,CAAC,EALW,oBAAoB,KAApB,oBAAoB,QAK/B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export var NotificationType;
|
|
2
|
+
(function (NotificationType) {
|
|
3
|
+
NotificationType["INCIDENT"] = "INCIDENT";
|
|
4
|
+
NotificationType["ALERT"] = "ALERT";
|
|
5
|
+
NotificationType["TASK"] = "TASK";
|
|
6
|
+
NotificationType["ACCOUNT"] = "ACCOUNT";
|
|
7
|
+
NotificationType["ANNOUNCEMENT"] = "ANNOUNCEMENT";
|
|
8
|
+
NotificationType["MESSAGE"] = "MESSAGE";
|
|
9
|
+
NotificationType["WORKFLOW"] = "WORKFLOW";
|
|
10
|
+
NotificationType["GENERAL"] = "GENERAL";
|
|
11
|
+
})(NotificationType || (NotificationType = {}));
|
|
12
|
+
//# sourceMappingURL=notification-type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-type.enum.js","sourceRoot":"","sources":["../../../../../src/modules/web-notification/enums/notification-type.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,gBASX;AATD,WAAY,gBAAgB;IAC1B,yCAAqB,CAAA;IACrB,mCAAe,CAAA;IACf,iCAAa,CAAA;IACb,uCAAmB,CAAA;IACnB,iDAA6B,CAAA;IAC7B,uCAAmB,CAAA;IACnB,yCAAqB,CAAA;IACrB,uCAAmB,CAAA;AACrB,CAAC,EATW,gBAAgB,KAAhB,gBAAgB,QAS3B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export var WebNotificationDataType;
|
|
2
|
+
(function (WebNotificationDataType) {
|
|
3
|
+
WebNotificationDataType["INCIDENT"] = "INCIDENT";
|
|
4
|
+
WebNotificationDataType["TASK"] = "TASK";
|
|
5
|
+
WebNotificationDataType["MESSAGE"] = "MESSAGE";
|
|
6
|
+
WebNotificationDataType["SUPPORT_TICKET"] = "SUPPORT_TICKET";
|
|
7
|
+
WebNotificationDataType["ALERT"] = "ALERT";
|
|
8
|
+
WebNotificationDataType["SYSTEM_ALERT"] = "SYSTEM_ALERT";
|
|
9
|
+
WebNotificationDataType["OTHER"] = "OTHER";
|
|
10
|
+
})(WebNotificationDataType || (WebNotificationDataType = {}));
|
|
11
|
+
//# sourceMappingURL=web-notification-data-type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-notification-data-type.enum.js","sourceRoot":"","sources":["../../../../../src/modules/web-notification/enums/web-notification-data-type.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,uBAQX;AARD,WAAY,uBAAuB;IAC/B,gDAAqB,CAAA;IACrB,wCAAa,CAAA;IACb,8CAAmB,CAAA;IACnB,4DAAiC,CAAA;IACjC,0CAAe,CAAA;IACf,wDAA6B,CAAA;IAC7B,0CAAe,CAAA;AACnB,CAAC,EARW,uBAAuB,KAAvB,uBAAuB,QAQlC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Enums
|
|
2
|
+
export * from './enums/notification-priority.enum';
|
|
3
|
+
export * from './enums/web-notification-data-type.enum';
|
|
4
|
+
export * from './enums/notification-type.enum';
|
|
5
|
+
export * from './enums/notification-provider.enum';
|
|
6
|
+
// Interfaces
|
|
7
|
+
export * from './interfaces/web-notification';
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/web-notification/index.ts"],"names":[],"mappings":"AAAA,QAAQ;AACR,cAAc,oCAAoC,CAAC;AACnD,cAAc,yCAAyC,CAAC;AACxD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AAEnD,aAAa;AACb,cAAc,+BAA+B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-notification.js","sourceRoot":"","sources":["../../../../../src/modules/web-notification/interfaces/web-notification.ts"],"names":[],"mappings":""}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -12,5 +12,6 @@ export * from './modules/dms/index';
|
|
|
12
12
|
export * from './modules/sms/index';
|
|
13
13
|
export * from './modules/gis/index';
|
|
14
14
|
export * from './modules/socket/index';
|
|
15
|
+
export * from './modules/web-notification/index';
|
|
15
16
|
export * from './modules/common/interfaces/server-message';
|
|
16
17
|
export * from './modules/common/interfaces/pagination';
|
|
@@ -3,7 +3,4 @@ export * from './interfaces/event-response';
|
|
|
3
3
|
export * from './interfaces/online-user-data';
|
|
4
4
|
export * from './interfaces/event-envelope';
|
|
5
5
|
export * from './interfaces/client-safe-incident';
|
|
6
|
-
export * from './interfaces/notification';
|
|
7
6
|
export * from './enums/room-type.enum';
|
|
8
|
-
export * from './enums/notification-priority.enum';
|
|
9
|
-
export * from './enums/notification-payload-type.enum';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { IncidentActions } from "../../incident";
|
|
2
|
+
import { WebNotificationDataType } from "../enums/web-notification-data-type.enum";
|
|
3
|
+
import { NotificationPriority } from "../enums/notification-priority.enum";
|
|
4
|
+
import { NotificationType } from "../enums/notification-type.enum";
|
|
5
|
+
import { NotificationProvider } from "../enums/notification-provider.enum";
|
|
6
|
+
export interface WebNotification<TEntity = any> {
|
|
7
|
+
id: number;
|
|
8
|
+
deviceToken?: string;
|
|
9
|
+
provider?: NotificationProvider;
|
|
10
|
+
dataId?: number;
|
|
11
|
+
data?: TEntity;
|
|
12
|
+
dataType?: WebNotificationDataType;
|
|
13
|
+
type?: NotificationType;
|
|
14
|
+
imageUrl?: string;
|
|
15
|
+
title: string;
|
|
16
|
+
body: string;
|
|
17
|
+
timestamp: string;
|
|
18
|
+
priority?: NotificationPriority;
|
|
19
|
+
action: IncidentActions | string;
|
|
20
|
+
isRead: boolean;
|
|
21
|
+
actionUrl?: string;
|
|
22
|
+
clickAction?: string;
|
|
23
|
+
userId: number;
|
|
24
|
+
actorUserId?: number;
|
|
25
|
+
controlCentreId?: string;
|
|
26
|
+
organizationId: string;
|
|
27
|
+
metadata?: Record<string, any>;
|
|
28
|
+
createdAt: string;
|
|
29
|
+
updatedAt: string;
|
|
30
|
+
}
|
package/package.json
CHANGED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NotificationPayloadType = void 0;
|
|
4
|
-
var NotificationPayloadType;
|
|
5
|
-
(function (NotificationPayloadType) {
|
|
6
|
-
NotificationPayloadType["INCIDENT"] = "INCIDENT";
|
|
7
|
-
NotificationPayloadType["TASK"] = "TASK";
|
|
8
|
-
NotificationPayloadType["MESSAGE"] = "MESSAGE";
|
|
9
|
-
NotificationPayloadType["SUPPORT_TICKET"] = "SUPPORT_TICKET";
|
|
10
|
-
NotificationPayloadType["ALERT"] = "ALERT";
|
|
11
|
-
NotificationPayloadType["SYSTEM_ALERT"] = "SYSTEM_ALERT";
|
|
12
|
-
NotificationPayloadType["OTHER"] = "OTHER";
|
|
13
|
-
})(NotificationPayloadType || (exports.NotificationPayloadType = NotificationPayloadType = {}));
|
|
14
|
-
//# sourceMappingURL=notification-payload-type.enum.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notification-payload-type.enum.js","sourceRoot":"","sources":["../../../../../src/modules/socket/enums/notification-payload-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,uBAQX;AARD,WAAY,uBAAuB;IAC/B,gDAAqB,CAAA;IACrB,wCAAa,CAAA;IACb,8CAAmB,CAAA;IACnB,4DAAiC,CAAA;IACjC,0CAAe,CAAA;IACf,wDAA6B,CAAA;IAC7B,0CAAe,CAAA;AACnB,CAAC,EARW,uBAAuB,uCAAvB,uBAAuB,QAQlC"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notification.js","sourceRoot":"","sources":["../../../../../src/modules/socket/interfaces/notification.ts"],"names":[],"mappings":""}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export var NotificationPayloadType;
|
|
2
|
-
(function (NotificationPayloadType) {
|
|
3
|
-
NotificationPayloadType["INCIDENT"] = "INCIDENT";
|
|
4
|
-
NotificationPayloadType["TASK"] = "TASK";
|
|
5
|
-
NotificationPayloadType["MESSAGE"] = "MESSAGE";
|
|
6
|
-
NotificationPayloadType["SUPPORT_TICKET"] = "SUPPORT_TICKET";
|
|
7
|
-
NotificationPayloadType["ALERT"] = "ALERT";
|
|
8
|
-
NotificationPayloadType["SYSTEM_ALERT"] = "SYSTEM_ALERT";
|
|
9
|
-
NotificationPayloadType["OTHER"] = "OTHER";
|
|
10
|
-
})(NotificationPayloadType || (NotificationPayloadType = {}));
|
|
11
|
-
//# sourceMappingURL=notification-payload-type.enum.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notification-payload-type.enum.js","sourceRoot":"","sources":["../../../../../src/modules/socket/enums/notification-payload-type.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,uBAQX;AARD,WAAY,uBAAuB;IAC/B,gDAAqB,CAAA;IACrB,wCAAa,CAAA;IACb,8CAAmB,CAAA;IACnB,4DAAiC,CAAA;IACjC,0CAAe,CAAA;IACf,wDAA6B,CAAA;IAC7B,0CAAe,CAAA;AACnB,CAAC,EARW,uBAAuB,KAAvB,uBAAuB,QAQlC"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notification.js","sourceRoot":"","sources":["../../../../../src/modules/socket/interfaces/notification.ts"],"names":[],"mappings":""}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { IncidentActions } from "../../incident";
|
|
2
|
-
import { NotificationPayloadType } from "../enums/notification-payload-type.enum";
|
|
3
|
-
import { NotificationPriority } from "../enums/notification-priority.enum";
|
|
4
|
-
export interface Notification<TEntity = any> {
|
|
5
|
-
id: string;
|
|
6
|
-
entityId: string;
|
|
7
|
-
payload: TEntity;
|
|
8
|
-
payloadType: NotificationPayloadType;
|
|
9
|
-
action: IncidentActions | string;
|
|
10
|
-
title: string;
|
|
11
|
-
message: string;
|
|
12
|
-
timestamp: Date;
|
|
13
|
-
priority: NotificationPriority;
|
|
14
|
-
isRead: boolean;
|
|
15
|
-
userId?: string;
|
|
16
|
-
organizationId?: string;
|
|
17
|
-
controlCentreId?: string;
|
|
18
|
-
}
|
|
File without changes
|
|
File without changes
|
/package/dist/types/modules/{socket → web-notification}/enums/notification-priority.enum.d.ts
RENAMED
|
File without changes
|