@onecx/integration-interface 6.19.0 → 6.20.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onecx/integration-interface",
3
- "version": "6.19.0",
3
+ "version": "6.20.0",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,12 +9,20 @@
9
9
  "peerDependencies": {
10
10
  "tslib": "^2.6.3",
11
11
  "rxjs": "^7.8.1",
12
- "@onecx/accelerator": "^6.19.0",
13
- "@onecx/nx-migration-utils": "^6.19.0",
12
+ "@onecx/accelerator": "^6.20.0",
13
+ "@onecx/nx-migration-utils": "^6.20.0",
14
14
  "@nx/devkit": "^20.3.0",
15
15
  "@phenomnomnominal/tsquery": "^6",
16
16
  "typescript": "^5.5.4"
17
17
  },
18
+ "peerDependenciesMeta": {
19
+ "@nx/devkit": {
20
+ "optional": true
21
+ },
22
+ "@onecx/nx-migration-utils": {
23
+ "optional": true
24
+ }
25
+ },
18
26
  "type": "commonjs",
19
27
  "main": "./src/index.js",
20
28
  "typings": "./src/index.d.ts",
package/src/index.d.ts CHANGED
@@ -38,3 +38,6 @@ export * from './lib/services/image-repository.service';
38
38
  export * from './lib/topics/icons/v1/icon.model';
39
39
  export * from './lib/topics/icons/v1/icon.topic';
40
40
  export * from './lib/services/icon.service';
41
+ export * from './lib/topics/notification/v1/notification.model';
42
+ export * from './lib/topics/notification/v1/notification.topic';
43
+ export * from './lib/services/notification.service';
package/src/index.js CHANGED
@@ -41,4 +41,7 @@ tslib_1.__exportStar(require("./lib/services/image-repository.service"), exports
41
41
  tslib_1.__exportStar(require("./lib/topics/icons/v1/icon.model"), exports);
42
42
  tslib_1.__exportStar(require("./lib/topics/icons/v1/icon.topic"), exports);
43
43
  tslib_1.__exportStar(require("./lib/services/icon.service"), exports);
44
+ tslib_1.__exportStar(require("./lib/topics/notification/v1/notification.model"), exports);
45
+ tslib_1.__exportStar(require("./lib/topics/notification/v1/notification.topic"), exports);
46
+ tslib_1.__exportStar(require("./lib/services/notification.service"), exports);
44
47
  //# sourceMappingURL=index.js.map
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/integration-interface/src/index.ts"],"names":[],"mappings":";;;AAAA,wFAA6D;AAC7D,qFAA0D;AAC1D,0FAA+D;AAC/D,uFAA4D;AAE5D,0FAA+D;AAE/D,8FAAmE;AAEnE,4FAAiE;AACjE,oFAAyD;AACzD,6FAAkE;AAElE,0FAA+D;AAC/D,0FAA+D;AAE/D,4FAAiE;AAEjE,oGAAyE;AACzE,0GAA+E;AAC/E,4FAAiE;AACjE,wFAA6D;AAC7D,2FAAgE;AAEhE,iGAAsE;AAEtE,gFAAqD;AACrD,gFAAqD;AAErD,mGAAwE;AACxE,yGAA8E;AAC9E,uFAA4D;AAC5D,oGAAyE;AAEzE,wFAA6D;AAE7D,gGAAqE;AACrE,gGAAqE;AAErE,8EAAmD;AACnD,kFAAuD;AACvD,sFAA2D;AAC3D,yFAA8D;AAE9D,kGAAuE;AACvE,kGAAuE;AAEvE,sFAA2D;AAE3D,+FAAoE;AACpE,+FAAoE;AACpE,kFAAuD;AAGvD,2EAAgD;AAChD,2EAAgD;AAChD,sEAA2C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/integration-interface/src/index.ts"],"names":[],"mappings":";;;AAAA,wFAA6D;AAC7D,qFAA0D;AAC1D,0FAA+D;AAC/D,uFAA4D;AAE5D,0FAA+D;AAE/D,8FAAmE;AAEnE,4FAAiE;AACjE,oFAAyD;AACzD,6FAAkE;AAElE,0FAA+D;AAC/D,0FAA+D;AAE/D,4FAAiE;AAEjE,oGAAyE;AACzE,0GAA+E;AAC/E,4FAAiE;AACjE,wFAA6D;AAC7D,2FAAgE;AAEhE,iGAAsE;AAEtE,gFAAqD;AACrD,gFAAqD;AAErD,mGAAwE;AACxE,yGAA8E;AAC9E,uFAA4D;AAC5D,oGAAyE;AAEzE,wFAA6D;AAE7D,gGAAqE;AACrE,gGAAqE;AAErE,8EAAmD;AACnD,kFAAuD;AACvD,sFAA2D;AAC3D,yFAA8D;AAE9D,kGAAuE;AACvE,kGAAuE;AAEvE,sFAA2D;AAE3D,+FAAoE;AACpE,+FAAoE;AACpE,kFAAuD;AAEvD,2EAAgD;AAChD,2EAAgD;AAChD,sEAA2C;AAE3C,0FAA+D;AAC/D,0FAA+D;AAC/D,8EAAmD"}
@@ -0,0 +1,7 @@
1
+ import { NotificationTopic } from "../topics/notification/v1/notification.topic";
2
+ export declare class NotificationService {
3
+ private _notificationTopic$;
4
+ get notificationTopic(): NotificationTopic;
5
+ set notificationTopic(source: NotificationTopic);
6
+ destroy(): void;
7
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotificationService = void 0;
4
+ const notification_topic_1 = require("../topics/notification/v1/notification.topic");
5
+ class NotificationService {
6
+ _notificationTopic$;
7
+ get notificationTopic() {
8
+ this._notificationTopic$ ??= new notification_topic_1.NotificationTopic();
9
+ return this._notificationTopic$;
10
+ }
11
+ set notificationTopic(source) {
12
+ this._notificationTopic$ = source;
13
+ }
14
+ destroy() {
15
+ this.notificationTopic.destroy();
16
+ }
17
+ }
18
+ exports.NotificationService = NotificationService;
19
+ //# sourceMappingURL=notification.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.service.js","sourceRoot":"","sources":["../../../../../../libs/integration-interface/src/lib/services/notification.service.ts"],"names":[],"mappings":";;;AAAA,qFAAiF;AAEjF,MAAa,mBAAmB;IAEpB,mBAAmB,CAAgC;IAC3D,IAAI,iBAAiB;QACjB,IAAI,CAAC,mBAAmB,KAAK,IAAI,sCAAiB,EAAE,CAAA;QACpD,OAAO,IAAI,CAAC,mBAAmB,CAAA;IACnC,CAAC;IACD,IAAI,iBAAiB,CAAC,MAAyB;QAC3C,IAAI,CAAC,mBAAmB,GAAG,MAAM,CAAA;IACrC,CAAC;IAED,OAAO;QACH,IAAI,CAAC,iBAAiB,CAAC,OAAO,EAAE,CAAA;IACpC,CAAC;CACJ;AAdD,kDAcC"}
@@ -0,0 +1,21 @@
1
+ export interface Notification {
2
+ type: string;
3
+ address: string;
4
+ headers: {
5
+ [key: string]: string;
6
+ };
7
+ body: {
8
+ id: string;
9
+ applicationId: string;
10
+ senderId: string;
11
+ receiverId: string;
12
+ persist: boolean;
13
+ creationData: Date;
14
+ contentMeta: [
15
+ {
16
+ key: string;
17
+ value: string;
18
+ }
19
+ ];
20
+ };
21
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=notification.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.model.js","sourceRoot":"","sources":["../../../../../../../../libs/integration-interface/src/lib/topics/notification/v1/notification.model.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { Topic } from '@onecx/accelerator';
2
+ import { Notification } from './notification.model';
3
+ export declare class NotificationTopic extends Topic<Notification> {
4
+ constructor();
5
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotificationTopic = void 0;
4
+ const accelerator_1 = require("@onecx/accelerator");
5
+ class NotificationTopic extends accelerator_1.Topic {
6
+ constructor() {
7
+ super('notification', 1);
8
+ }
9
+ }
10
+ exports.NotificationTopic = NotificationTopic;
11
+ //# sourceMappingURL=notification.topic.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.topic.js","sourceRoot":"","sources":["../../../../../../../../libs/integration-interface/src/lib/topics/notification/v1/notification.topic.ts"],"names":[],"mappings":";;;AAAA,oDAA0C;AAG1C,MAAa,iBAAkB,SAAQ,mBAAmB;IACxD;QACE,KAAK,CAAC,cAAc,EAAE,CAAC,CAAC,CAAA;IAC1B,CAAC;CACF;AAJD,8CAIC"}