clarion-shared-types 1.0.65 → 1.0.67

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 (62) 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 -3
  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-status.enum.js +15 -0
  9. package/dist/cjs/modules/web-notification/enums/notification-status.enum.js.map +1 -0
  10. package/dist/cjs/modules/web-notification/enums/notification-type.enum.js +15 -0
  11. package/dist/cjs/modules/web-notification/enums/notification-type.enum.js.map +1 -0
  12. package/dist/cjs/modules/web-notification/enums/web-notification-data-type.enum.js +14 -0
  13. package/dist/cjs/modules/web-notification/enums/web-notification-data-type.enum.js.map +1 -0
  14. package/dist/cjs/modules/web-notification/index.js +26 -0
  15. package/dist/cjs/modules/web-notification/index.js.map +1 -0
  16. package/dist/cjs/modules/web-notification/interfaces/notification-types.js +3 -0
  17. package/dist/cjs/modules/web-notification/interfaces/notification-types.js.map +1 -0
  18. package/dist/cjs/modules/{socket/interfaces/notification.js → web-notification/interfaces/web-notification.js} +1 -1
  19. package/dist/cjs/modules/web-notification/interfaces/web-notification.js.map +1 -0
  20. package/dist/esm/index.js +1 -0
  21. package/dist/esm/index.js.map +1 -1
  22. package/dist/esm/modules/socket/index.js +0 -3
  23. package/dist/esm/modules/socket/index.js.map +1 -1
  24. package/dist/esm/modules/web-notification/enums/notification-priority.enum.js.map +1 -0
  25. package/dist/esm/modules/web-notification/enums/notification-provider.enum.js +8 -0
  26. package/dist/esm/modules/web-notification/enums/notification-provider.enum.js.map +1 -0
  27. package/dist/esm/modules/web-notification/enums/notification-status.enum.js +12 -0
  28. package/dist/esm/modules/web-notification/enums/notification-status.enum.js.map +1 -0
  29. package/dist/esm/modules/web-notification/enums/notification-type.enum.js +12 -0
  30. package/dist/esm/modules/web-notification/enums/notification-type.enum.js.map +1 -0
  31. package/dist/esm/modules/web-notification/enums/web-notification-data-type.enum.js +11 -0
  32. package/dist/esm/modules/web-notification/enums/web-notification-data-type.enum.js.map +1 -0
  33. package/dist/esm/modules/web-notification/index.js +10 -0
  34. package/dist/esm/modules/web-notification/index.js.map +1 -0
  35. package/dist/esm/modules/web-notification/interfaces/notification-types.js +2 -0
  36. package/dist/esm/modules/web-notification/interfaces/notification-types.js.map +1 -0
  37. package/dist/esm/modules/web-notification/interfaces/web-notification.js +2 -0
  38. package/dist/esm/modules/web-notification/interfaces/web-notification.js.map +1 -0
  39. package/dist/types/index.d.ts +1 -0
  40. package/dist/types/modules/common/interfaces/pagination.d.ts +3 -0
  41. package/dist/types/modules/socket/index.d.ts +0 -3
  42. package/dist/types/modules/web-notification/enums/notification-provider.enum.d.ts +6 -0
  43. package/dist/types/modules/web-notification/enums/notification-status.enum.d.ts +10 -0
  44. package/dist/types/modules/web-notification/enums/notification-type.enum.d.ts +10 -0
  45. package/dist/types/modules/{socket/enums/notification-payload-type.enum.d.ts → web-notification/enums/web-notification-data-type.enum.d.ts} +1 -1
  46. package/dist/types/modules/web-notification/index.d.ts +7 -0
  47. package/dist/types/modules/web-notification/interfaces/notification-types.d.ts +31 -0
  48. package/dist/types/modules/web-notification/interfaces/web-notification.d.ts +33 -0
  49. package/package.json +1 -1
  50. package/dist/cjs/modules/socket/enums/notification-payload-type.enum.js +0 -14
  51. package/dist/cjs/modules/socket/enums/notification-payload-type.enum.js.map +0 -1
  52. package/dist/cjs/modules/socket/enums/notification-priority.enum.js.map +0 -1
  53. package/dist/cjs/modules/socket/interfaces/notification.js.map +0 -1
  54. package/dist/esm/modules/socket/enums/notification-payload-type.enum.js +0 -11
  55. package/dist/esm/modules/socket/enums/notification-payload-type.enum.js.map +0 -1
  56. package/dist/esm/modules/socket/enums/notification-priority.enum.js.map +0 -1
  57. package/dist/esm/modules/socket/interfaces/notification.js +0 -2
  58. package/dist/esm/modules/socket/interfaces/notification.js.map +0 -1
  59. package/dist/types/modules/socket/interfaces/notification.d.ts +0 -18
  60. /package/dist/cjs/modules/{socket → web-notification}/enums/notification-priority.enum.js +0 -0
  61. /package/dist/esm/modules/{socket → web-notification}/enums/notification-priority.enum.js +0 -0
  62. /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,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,4DAA0C;AAC1C,yDAAuC;AACvC,qEAAmD;AACnD,yEAAuD"}
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.NotificationStatus = void 0;
4
+ var NotificationStatus;
5
+ (function (NotificationStatus) {
6
+ NotificationStatus["PENDING"] = "PENDING";
7
+ NotificationStatus["SENT"] = "SENT";
8
+ NotificationStatus["DELIVERED"] = "DELIVERED";
9
+ NotificationStatus["FAILED"] = "FAILED";
10
+ NotificationStatus["CLICKED"] = "CLICKED";
11
+ NotificationStatus["DISMISSED"] = "DISMISSED";
12
+ NotificationStatus["EXPIRED"] = "EXPIRED";
13
+ NotificationStatus["CANCELLED"] = "CANCELLED";
14
+ })(NotificationStatus || (exports.NotificationStatus = NotificationStatus = {}));
15
+ //# sourceMappingURL=notification-status.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-status.enum.js","sourceRoot":"","sources":["../../../../../src/modules/web-notification/enums/notification-status.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBASX;AATD,WAAY,kBAAkB;IAC1B,yCAAmB,CAAA;IACnB,mCAAa,CAAA;IACb,6CAAuB,CAAA;IACvB,uCAAiB,CAAA;IACjB,yCAAmB,CAAA;IACnB,6CAAuB,CAAA;IACvB,yCAAmB,CAAA;IACnB,6CAAuB,CAAA;AAC3B,CAAC,EATW,kBAAkB,kCAAlB,kBAAkB,QAS7B"}
@@ -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,26 @@
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
+ __exportStar(require("./enums/notification-status.enum"), exports);
23
+ // Interfaces
24
+ __exportStar(require("./interfaces/web-notification"), exports);
25
+ __exportStar(require("./interfaces/notification-types"), exports);
26
+ //# 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;AACnD,mEAAiD;AAEjD,aAAa;AACb,gEAA8C;AAC9C,kEAAgD"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=notification-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-types.js","sourceRoot":"","sources":["../../../../../src/modules/web-notification/interfaces/notification-types.ts"],"names":[],"mappings":""}
@@ -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,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,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,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 NotificationStatus;
2
+ (function (NotificationStatus) {
3
+ NotificationStatus["PENDING"] = "PENDING";
4
+ NotificationStatus["SENT"] = "SENT";
5
+ NotificationStatus["DELIVERED"] = "DELIVERED";
6
+ NotificationStatus["FAILED"] = "FAILED";
7
+ NotificationStatus["CLICKED"] = "CLICKED";
8
+ NotificationStatus["DISMISSED"] = "DISMISSED";
9
+ NotificationStatus["EXPIRED"] = "EXPIRED";
10
+ NotificationStatus["CANCELLED"] = "CANCELLED";
11
+ })(NotificationStatus || (NotificationStatus = {}));
12
+ //# sourceMappingURL=notification-status.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-status.enum.js","sourceRoot":"","sources":["../../../../../src/modules/web-notification/enums/notification-status.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,kBASX;AATD,WAAY,kBAAkB;IAC1B,yCAAmB,CAAA;IACnB,mCAAa,CAAA;IACb,6CAAuB,CAAA;IACvB,uCAAiB,CAAA;IACjB,yCAAmB,CAAA;IACnB,6CAAuB,CAAA;IACvB,yCAAmB,CAAA;IACnB,6CAAuB,CAAA;AAC3B,CAAC,EATW,kBAAkB,KAAlB,kBAAkB,QAS7B"}
@@ -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,10 @@
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
+ export * from './enums/notification-status.enum';
7
+ // Interfaces
8
+ export * from './interfaces/web-notification';
9
+ export * from './interfaces/notification-types';
10
+ //# 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;AACnD,cAAc,kCAAkC,CAAC;AAEjD,aAAa;AACb,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=notification-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-types.js","sourceRoot":"","sources":["../../../../../src/modules/web-notification/interfaces/notification-types.ts"],"names":[],"mappings":""}
@@ -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';
@@ -4,6 +4,7 @@ import { Incident, IncidentReport } from "../../incident";
4
4
  import { Organization } from "../../organization";
5
5
  import { ResponseUnit } from "../../response-unit";
6
6
  import { User } from "../../user";
7
+ import { WebNotification } from "../../web-notification";
7
8
  export interface PaginationParams {
8
9
  page?: number;
9
10
  limit?: number;
@@ -36,3 +37,5 @@ export interface ResponseUnitList extends PaginatedResponse<ResponseUnit> {
36
37
  }
37
38
  export interface ZoneListResponse extends PaginatedResponse<Zone> {
38
39
  }
40
+ export interface NotificationList extends PaginatedResponse<WebNotification> {
41
+ }
@@ -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,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 NotificationStatus {
2
+ PENDING = "PENDING",
3
+ SENT = "SENT",
4
+ DELIVERED = "DELIVERED",
5
+ FAILED = "FAILED",
6
+ CLICKED = "CLICKED",
7
+ DISMISSED = "DISMISSED",
8
+ EXPIRED = "EXPIRED",
9
+ CANCELLED = "CANCELLED"
10
+ }
@@ -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
+ }
@@ -1,4 +1,4 @@
1
- export declare enum NotificationPayloadType {
1
+ export declare enum WebNotificationDataType {
2
2
  INCIDENT = "INCIDENT",
3
3
  TASK = "TASK",
4
4
  MESSAGE = "MESSAGE",
@@ -0,0 +1,7 @@
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 './enums/notification-status.enum';
6
+ export * from './interfaces/web-notification';
7
+ export * from './interfaces/notification-types';
@@ -0,0 +1,31 @@
1
+ export interface NotificationStats {
2
+ total: number;
3
+ sent: number;
4
+ delivered: number;
5
+ failed: number;
6
+ clicked: number;
7
+ read: number;
8
+ unread: number;
9
+ byType: Record<string, number>;
10
+ byPriority: Record<string, number>;
11
+ byStatus: Record<string, number>;
12
+ byDataType: Record<string, number>;
13
+ }
14
+ export interface FindNotificationsOptions {
15
+ userId?: number;
16
+ organizationId?: string;
17
+ controlCentreId?: string;
18
+ isRead?: boolean;
19
+ dataType?: string;
20
+ type?: string;
21
+ priority?: string;
22
+ startDate?: Date;
23
+ endDate?: Date;
24
+ limit?: number;
25
+ offset?: number;
26
+ }
27
+ export interface NotificationStatsRequest {
28
+ userId?: number;
29
+ startDate?: Date;
30
+ endDate?: Date;
31
+ }
@@ -0,0 +1,33 @@
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
+ import { NotificationStatus } from "../enums/notification-status.enum";
7
+ export interface WebNotification<TEntity = any> {
8
+ id: number;
9
+ deviceToken?: string;
10
+ provider?: NotificationProvider;
11
+ dataId?: number;
12
+ data?: TEntity;
13
+ dataType?: WebNotificationDataType;
14
+ type?: NotificationType;
15
+ status?: NotificationStatus;
16
+ imageUrl?: string;
17
+ title: string;
18
+ body: string;
19
+ timestamp: string;
20
+ priority?: NotificationPriority;
21
+ action: IncidentActions | string;
22
+ isRead: boolean;
23
+ actionUrl?: string;
24
+ clickAction?: string;
25
+ userId: number;
26
+ actorUserId?: number;
27
+ controlCentreId?: string;
28
+ organizationId: string;
29
+ metadata?: Record<string, any>;
30
+ clickedAt?: string;
31
+ createdAt: string;
32
+ updatedAt: string;
33
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clarion-shared-types",
3
- "version": "1.0.65",
3
+ "version": "1.0.67",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -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,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,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
- }