@onecx/integration-interface 6.0.0-rc.7 → 6.0.0-rc.9

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/migrations.json CHANGED
@@ -1,11 +1,23 @@
1
1
  {
2
2
  "generators": {
3
+ "warn-for-events-topic-navigated": {
4
+ "cli": "nx",
5
+ "version": "5.34.6",
6
+ "description": "Detects and warns for usage of the EventsTopic in the context of navigation",
7
+ "factory": "migrations/v5/warn-for-events-topic-navigated"
8
+ },
9
+ "warn-for-events-publisher-navigated": {
10
+ "cli": "nx",
11
+ "version": "5.34.6",
12
+ "description": "Detects and warns for usage of the EventsPublisher in the context of navigation",
13
+ "factory": "migrations/v5/warn-for-events-publisher-navigated"
14
+ },
3
15
  "migrate-onecx-to-v6": {
4
16
  "cli": "nx",
5
17
  "version": "6.0.0",
6
18
  "description": "Update package json to Angular 19, PrimeNG 19, OneCX versions to v6 and other dependencies to be compatible with Angular 19.",
7
19
  "factory": "migrations/v6/migrate-onecx-to-v6"
8
- }
20
+ }
9
21
  },
10
22
  "packageJsonUpdates": {
11
23
  "6.0.0": {
package/package.json CHANGED
@@ -1,12 +1,15 @@
1
1
  {
2
2
  "name": "@onecx/integration-interface",
3
- "version": "6.0.0-rc.7",
3
+ "version": "6.0.0-rc.9",
4
4
  "license": "Apache-2.0",
5
5
  "peerDependencies": {
6
6
  "tslib": "^2.6.3",
7
7
  "rxjs": "^7.8.1",
8
- "@onecx/accelerator": "^6.0.0-rc.7",
9
- "@nx/devkit": "^20.3.0"
8
+ "@onecx/accelerator": "^6.0.0-rc.9",
9
+ "@onecx/nx-migration-utils": "^6.0.0-rc.9",
10
+ "@nx/devkit": "^20.3.0",
11
+ "@phenomnomnominal/tsquery": "^6",
12
+ "typescript": "^5.5.4"
10
13
  },
11
14
  "type": "commonjs",
12
15
  "main": "./src/index.js",
package/src/index.d.ts CHANGED
@@ -28,3 +28,6 @@ export * from './lib/topics/events/v1/events-topic';
28
28
  export * from './lib/topics/events/v1/topic-event-type';
29
29
  export * from './lib/topics/events/v1/navigated-event-type';
30
30
  export * from './lib/topics/events/v1/navigated-event-payload';
31
+ export * from './lib/topics/current-location/v1/current-location.model';
32
+ export * from './lib/topics/current-location/v1/current-location.topic';
33
+ export * from './lib/topics/parameters/v1/parameters.topic';
package/src/index.js CHANGED
@@ -31,4 +31,7 @@ tslib_1.__exportStar(require("./lib/topics/events/v1/events-topic"), exports);
31
31
  tslib_1.__exportStar(require("./lib/topics/events/v1/topic-event-type"), exports);
32
32
  tslib_1.__exportStar(require("./lib/topics/events/v1/navigated-event-type"), exports);
33
33
  tslib_1.__exportStar(require("./lib/topics/events/v1/navigated-event-payload"), exports);
34
+ tslib_1.__exportStar(require("./lib/topics/current-location/v1/current-location.model"), exports);
35
+ tslib_1.__exportStar(require("./lib/topics/current-location/v1/current-location.topic"), exports);
36
+ tslib_1.__exportStar(require("./lib/topics/parameters/v1/parameters.topic"), exports);
34
37
  //# 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;AAEzD,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"}
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;AAEzD,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"}
@@ -0,0 +1,4 @@
1
+ export interface CurrentLocationTopicPayload {
2
+ url?: string;
3
+ isFirst: boolean;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=current-location.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"current-location.model.js","sourceRoot":"","sources":["../../../../../../../../libs/integration-interface/src/lib/topics/current-location/v1/current-location.model.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import { Topic, TopicPublisher } from '@onecx/accelerator';
2
+ import { CurrentLocationTopicPayload } from './current-location.model';
3
+ export declare class CurrentLocationPublisher extends TopicPublisher<CurrentLocationTopicPayload> {
4
+ constructor();
5
+ }
6
+ export declare class CurrentLocationTopic extends Topic<CurrentLocationTopicPayload> {
7
+ constructor();
8
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CurrentLocationTopic = exports.CurrentLocationPublisher = void 0;
4
+ const accelerator_1 = require("@onecx/accelerator");
5
+ class CurrentLocationPublisher extends accelerator_1.TopicPublisher {
6
+ constructor() {
7
+ super('currentLocation', 1);
8
+ }
9
+ }
10
+ exports.CurrentLocationPublisher = CurrentLocationPublisher;
11
+ class CurrentLocationTopic extends accelerator_1.Topic {
12
+ constructor() {
13
+ super('currentLocation', 1);
14
+ }
15
+ }
16
+ exports.CurrentLocationTopic = CurrentLocationTopic;
17
+ //# sourceMappingURL=current-location.topic.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"current-location.topic.js","sourceRoot":"","sources":["../../../../../../../../libs/integration-interface/src/lib/topics/current-location/v1/current-location.topic.ts"],"names":[],"mappings":";;;AAAA,oDAA0D;AAG1D,MAAa,wBAAyB,SAAQ,4BAA2C;IACvF;QACE,KAAK,CAAC,iBAAiB,EAAE,CAAC,CAAC,CAAA;IAC7B,CAAC;CACF;AAJD,4DAIC;AAED,MAAa,oBAAqB,SAAQ,mBAAkC;IAC1E;QACE,KAAK,CAAC,iBAAiB,EAAE,CAAC,CAAC,CAAA;IAC7B,CAAC;CACF;AAJD,oDAIC"}
@@ -1,4 +1,7 @@
1
1
  import { NavigatedEventPayload } from './navigated-event-payload';
2
+ /**
3
+ * @deprecated Use CurrentLocationTopic instead of EventsTopic for navigated events
4
+ */
2
5
  export type NavigatedEvent = {
3
6
  type: 'navigated';
4
7
  payload: NavigatedEventPayload;
@@ -0,0 +1,20 @@
1
+ import { Topic, TopicPublisher } from '@onecx/accelerator';
2
+ type ParameterValue = boolean | number | string | object;
3
+ export interface Parameters {
4
+ [key: string]: ParameterValue;
5
+ }
6
+ export interface ApplicationParameters {
7
+ productName: string;
8
+ appId: string;
9
+ parameters: Parameters;
10
+ }
11
+ export interface ParametersTopicPayload {
12
+ parameters: ApplicationParameters[];
13
+ }
14
+ export declare class ParametersPublisher extends TopicPublisher<ParametersTopicPayload> {
15
+ constructor();
16
+ }
17
+ export declare class ParametersTopic extends Topic<ParametersTopicPayload> {
18
+ constructor();
19
+ }
20
+ export {};
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ParametersTopic = exports.ParametersPublisher = void 0;
4
+ const accelerator_1 = require("@onecx/accelerator");
5
+ class ParametersPublisher extends accelerator_1.TopicPublisher {
6
+ constructor() {
7
+ super('parameters', 1);
8
+ }
9
+ }
10
+ exports.ParametersPublisher = ParametersPublisher;
11
+ class ParametersTopic extends accelerator_1.Topic {
12
+ constructor() {
13
+ super('parameters', 1);
14
+ }
15
+ }
16
+ exports.ParametersTopic = ParametersTopic;
17
+ //# sourceMappingURL=parameters.topic.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parameters.topic.js","sourceRoot":"","sources":["../../../../../../../../libs/integration-interface/src/lib/topics/parameters/v1/parameters.topic.ts"],"names":[],"mappings":";;;AAAA,oDAA0D;AAkB1D,MAAa,mBAAoB,SAAQ,4BAAsC;IAC7E;QACE,KAAK,CAAC,YAAY,EAAE,CAAC,CAAC,CAAA;IACxB,CAAC;CACF;AAJD,kDAIC;AAED,MAAa,eAAgB,SAAQ,mBAA6B;IAChE;QACE,KAAK,CAAC,YAAY,EAAE,CAAC,CAAC,CAAA;IACxB,CAAC;CACF;AAJD,0CAIC"}