clarion-shared-types 1.0.64 → 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.
Files changed (47) hide show
  1. package/dist/cjs/index.js +1 -0
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/modules/socket/index.js +0 -2
  4. package/dist/cjs/modules/socket/index.js.map +1 -1
  5. package/dist/cjs/modules/web-notification/enums/notification-priority.enum.js.map +1 -0
  6. package/dist/cjs/modules/web-notification/enums/notification-provider.enum.js +11 -0
  7. package/dist/cjs/modules/web-notification/enums/notification-provider.enum.js.map +1 -0
  8. package/dist/cjs/modules/web-notification/enums/notification-type.enum.js +15 -0
  9. package/dist/cjs/modules/web-notification/enums/notification-type.enum.js.map +1 -0
  10. package/dist/cjs/modules/web-notification/enums/web-notification-data-type.enum.js +14 -0
  11. package/dist/cjs/modules/web-notification/enums/web-notification-data-type.enum.js.map +1 -0
  12. package/dist/cjs/modules/web-notification/index.js +24 -0
  13. package/dist/cjs/modules/web-notification/index.js.map +1 -0
  14. package/dist/cjs/modules/{socket/interfaces/notification.js → web-notification/interfaces/web-notification.js} +1 -1
  15. package/dist/cjs/modules/web-notification/interfaces/web-notification.js.map +1 -0
  16. package/dist/esm/index.js +1 -0
  17. package/dist/esm/index.js.map +1 -1
  18. package/dist/esm/modules/socket/index.js +0 -2
  19. package/dist/esm/modules/socket/index.js.map +1 -1
  20. package/dist/esm/modules/web-notification/enums/notification-priority.enum.js.map +1 -0
  21. package/dist/esm/modules/web-notification/enums/notification-provider.enum.js +8 -0
  22. package/dist/esm/modules/web-notification/enums/notification-provider.enum.js.map +1 -0
  23. package/dist/esm/modules/web-notification/enums/notification-type.enum.js +12 -0
  24. package/dist/esm/modules/web-notification/enums/notification-type.enum.js.map +1 -0
  25. package/dist/esm/modules/web-notification/enums/web-notification-data-type.enum.js +11 -0
  26. package/dist/esm/modules/web-notification/enums/web-notification-data-type.enum.js.map +1 -0
  27. package/dist/esm/modules/web-notification/index.js +8 -0
  28. package/dist/esm/modules/web-notification/index.js.map +1 -0
  29. package/dist/esm/modules/web-notification/interfaces/web-notification.js +2 -0
  30. package/dist/esm/modules/web-notification/interfaces/web-notification.js.map +1 -0
  31. package/dist/types/index.d.ts +1 -0
  32. package/dist/types/modules/socket/index.d.ts +0 -2
  33. package/dist/types/modules/web-notification/enums/notification-provider.enum.d.ts +6 -0
  34. package/dist/types/modules/web-notification/enums/notification-type.enum.d.ts +10 -0
  35. package/dist/types/modules/web-notification/enums/web-notification-data-type.enum.d.ts +9 -0
  36. package/dist/types/modules/web-notification/index.d.ts +5 -0
  37. package/dist/types/modules/web-notification/interfaces/web-notification.d.ts +30 -0
  38. package/package.json +1 -1
  39. package/dist/cjs/modules/socket/enums/notification-priority.enum.js.map +0 -1
  40. package/dist/cjs/modules/socket/interfaces/notification.js.map +0 -1
  41. package/dist/esm/modules/socket/enums/notification-priority.enum.js.map +0 -1
  42. package/dist/esm/modules/socket/interfaces/notification.js +0 -2
  43. package/dist/esm/modules/socket/interfaces/notification.js.map +0 -1
  44. package/dist/types/modules/socket/interfaces/notification.d.ts +0 -16
  45. /package/dist/cjs/modules/{socket → web-notification}/enums/notification-priority.enum.js +0 -0
  46. /package/dist/esm/modules/{socket → web-notification}/enums/notification-priority.enum.js +0 -0
  47. /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);
@@ -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;AAEvC,aAAa;AACb,6EAA2D;AAC3D,yEAAuD"}
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,7 +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
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,4DAA0C;AAC1C,yDAAuC;AACvC,qEAAmD"}
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"}
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=notification.js.map
3
+ //# sourceMappingURL=web-notification.js.map
@@ -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';
@@ -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;AAEvC,aAAa;AACb,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wCAAwC,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,7 +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
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,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,oCAAoC,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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=web-notification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web-notification.js","sourceRoot":"","sources":["../../../../../src/modules/web-notification/interfaces/web-notification.ts"],"names":[],"mappings":""}
@@ -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,6 +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';
@@ -0,0 +1,6 @@
1
+ export declare enum NotificationProvider {
2
+ FCM = "FCM",
3
+ APNS = "APNS",
4
+ WEB_PUSH = "WEB_PUSH",
5
+ MOCK = "MOCK"
6
+ }
@@ -0,0 +1,10 @@
1
+ export declare enum NotificationType {
2
+ INCIDENT = "INCIDENT",
3
+ ALERT = "ALERT",
4
+ TASK = "TASK",
5
+ ACCOUNT = "ACCOUNT",
6
+ ANNOUNCEMENT = "ANNOUNCEMENT",
7
+ MESSAGE = "MESSAGE",
8
+ WORKFLOW = "WORKFLOW",
9
+ GENERAL = "GENERAL"
10
+ }
@@ -0,0 +1,9 @@
1
+ export declare enum WebNotificationDataType {
2
+ INCIDENT = "INCIDENT",
3
+ TASK = "TASK",
4
+ MESSAGE = "MESSAGE",
5
+ SUPPORT_TICKET = "SUPPORT_TICKET",
6
+ ALERT = "ALERT",
7
+ SYSTEM_ALERT = "SYSTEM_ALERT",
8
+ OTHER = "OTHER"
9
+ }
@@ -0,0 +1,5 @@
1
+ export * from './enums/notification-priority.enum';
2
+ export * from './enums/web-notification-data-type.enum';
3
+ export * from './enums/notification-type.enum';
4
+ export * from './enums/notification-provider.enum';
5
+ export * from './interfaces/web-notification';
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "clarion-shared-types",
3
- "version": "1.0.64",
3
+ "version": "1.0.66",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -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 +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,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=notification.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notification.js","sourceRoot":"","sources":["../../../../../src/modules/socket/interfaces/notification.ts"],"names":[],"mappings":""}
@@ -1,16 +0,0 @@
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
- }