@onecx/integration-interface 6.0.0-rc.2 → 6.0.0-rc.20

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 (39) hide show
  1. package/migrations/index.d.ts +3 -0
  2. package/migrations/index.js +7 -0
  3. package/migrations/index.js.map +1 -0
  4. package/migrations/v5/warn-for-events-publisher-navigated.d.ts +2 -0
  5. package/migrations/v5/warn-for-events-publisher-navigated.js +33 -0
  6. package/migrations/v5/warn-for-events-publisher-navigated.js.map +1 -0
  7. package/migrations/v5/warn-for-events-topic-navigated.d.ts +2 -0
  8. package/migrations/v5/warn-for-events-topic-navigated.js +34 -0
  9. package/migrations/v5/warn-for-events-topic-navigated.js.map +1 -0
  10. package/migrations/v6/migrate-onecx-to-v6.d.ts +2 -0
  11. package/migrations/v6/migrate-onecx-to-v6.js +8 -0
  12. package/migrations/v6/migrate-onecx-to-v6.js.map +1 -0
  13. package/migrations.json +46 -0
  14. package/package.json +9 -2
  15. package/src/index.d.ts +3 -0
  16. package/src/index.js +3 -0
  17. package/src/index.js.map +1 -1
  18. package/src/lib/topics/configuration/v1/configuration.topic.d.ts +2 -2
  19. package/src/lib/topics/configuration/v1/configuration.topic.js +1 -1
  20. package/src/lib/topics/configuration/v1/configuration.topic.js.map +1 -1
  21. package/src/lib/topics/current-location/v1/current-location.model.d.ts +4 -0
  22. package/src/lib/topics/current-location/v1/current-location.model.js +3 -0
  23. package/src/lib/topics/current-location/v1/current-location.model.js.map +1 -0
  24. package/src/lib/topics/current-location/v1/current-location.topic.d.ts +8 -0
  25. package/src/lib/topics/current-location/v1/current-location.topic.js +17 -0
  26. package/src/lib/topics/current-location/v1/current-location.topic.js.map +1 -0
  27. package/src/lib/topics/current-workspace/v1/current-workspace.topic.d.ts +2 -2
  28. package/src/lib/topics/current-workspace/v1/current-workspace.topic.js +1 -1
  29. package/src/lib/topics/current-workspace/v1/current-workspace.topic.js.map +1 -1
  30. package/src/lib/topics/current-workspace/v1/workspace.model.d.ts +30 -6
  31. package/src/lib/topics/events/v1/navigated-event-type.d.ts +3 -0
  32. package/src/lib/topics/parameters/v1/parameters.topic.d.ts +20 -0
  33. package/src/lib/topics/parameters/v1/parameters.topic.js +17 -0
  34. package/src/lib/topics/parameters/v1/parameters.topic.js.map +1 -0
  35. package/src/lib/topics/permissions/v1/permissions.topic.d.ts +2 -2
  36. package/src/lib/topics/permissions/v1/permissions.topic.js +1 -1
  37. package/src/lib/topics/permissions/v1/permissions.topic.js.map +1 -1
  38. package/src/lib/topics/user-profile/v1/user-profile.model.d.ts +36 -7
  39. package/src/lib/topics/user-profile/v1/user-profile.model.js.map +1 -1
@@ -0,0 +1,3 @@
1
+ export * from './v6/migrate-onecx-to-v6';
2
+ export * from './v5/warn-for-events-topic-navigated';
3
+ export * from './v5/warn-for-events-publisher-navigated';
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./v6/migrate-onecx-to-v6"), exports);
5
+ tslib_1.__exportStar(require("./v5/warn-for-events-topic-navigated"), exports);
6
+ tslib_1.__exportStar(require("./v5/warn-for-events-publisher-navigated"), exports);
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/integration-interface/migrations/index.ts"],"names":[],"mappings":";;;AAAA,mEAAwC;AACxC,+EAAoD;AACpD,mFAAwD"}
@@ -0,0 +1,2 @@
1
+ import { Tree } from '@nx/devkit';
2
+ export default function warnForEventsPublisherNavigated(tree: Tree): Promise<void>;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = warnForEventsPublisherNavigated;
4
+ const nx_migration_utils_1 = require("@onecx/nx-migration-utils");
5
+ function argsMatchExpectedPayload(callExpression) {
6
+ return callExpression.arguments.some((arg) => {
7
+ const argText = arg.getText();
8
+ return /type:\s*['"]navigated['"]/.test(argText);
9
+ });
10
+ }
11
+ async function warnForEventsPublisherNavigated(tree) {
12
+ const warningForPotentialMatches = '⚠️ EventsPublisher usages were detected. Please double-check if EventsPublisher is used for publishing navigation events and switch to CurrentLocationPublisher if so.';
13
+ const warningForExactMatches = '⚠️ You are using EventsPublisher to publish navigation events. Please switch to using CurrentLocationPublisher.';
14
+ const potentialMatches = (0, nx_migration_utils_1.detectMethodCallsInFiles)(tree, './src', 'publish', 'EventsPublisher');
15
+ const exactMatches = new Map();
16
+ const remainingPotentialMatches = new Map();
17
+ potentialMatches.forEach((calls, file) => {
18
+ const filteredCalls = calls.filter((call) => argsMatchExpectedPayload(call));
19
+ if (filteredCalls.length > 0) {
20
+ exactMatches.set(file, filteredCalls);
21
+ }
22
+ else {
23
+ remainingPotentialMatches.set(file, calls);
24
+ }
25
+ });
26
+ if (exactMatches.size > 0) {
27
+ (0, nx_migration_utils_1.printWarnings)(warningForExactMatches, Array.from(exactMatches.keys()));
28
+ }
29
+ if (remainingPotentialMatches.size > 0) {
30
+ (0, nx_migration_utils_1.printWarnings)(warningForPotentialMatches, Array.from(remainingPotentialMatches.keys()));
31
+ }
32
+ }
33
+ //# sourceMappingURL=warn-for-events-publisher-navigated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"warn-for-events-publisher-navigated.js","sourceRoot":"","sources":["../../../../../libs/integration-interface/migrations/v5/warn-for-events-publisher-navigated.ts"],"names":[],"mappings":";;AAWA,kDA2BC;AArCD,kEAAmF;AAGnF,SAAS,wBAAwB,CAAC,cAA8B;IAC9D,OAAO,cAAc,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE;QAC3C,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAA;QAC7B,OAAO,2BAA2B,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;IAClD,CAAC,CAAC,CAAA;AACJ,CAAC;AAEc,KAAK,UAAU,+BAA+B,CAAC,IAAU;IACtE,MAAM,0BAA0B,GAC9B,wKAAwK,CAAA;IAE1K,MAAM,sBAAsB,GAC1B,iHAAiH,CAAA;IAEnH,MAAM,gBAAgB,GAAG,IAAA,6CAAwB,EAAC,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,iBAAiB,CAAC,CAAA;IAE9F,MAAM,YAAY,GAAG,IAAI,GAAG,EAA4B,CAAA;IACxD,MAAM,yBAAyB,GAAG,IAAI,GAAG,EAA4B,CAAA;IAErE,gBAAgB,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE;QACvC,MAAM,aAAa,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC,CAAA;QAC5E,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC7B,YAAY,CAAC,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,CAAA;QACvC,CAAC;aAAM,CAAC;YACN,yBAAyB,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;QAC5C,CAAC;IACH,CAAC,CAAC,CAAA;IAEF,IAAI,YAAY,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC;QAC1B,IAAA,kCAAa,EAAC,sBAAsB,EAAE,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,CAAA;IACxE,CAAC;IACD,IAAI,yBAAyB,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC;QACvC,IAAA,kCAAa,EAAC,0BAA0B,EAAE,KAAK,CAAC,IAAI,CAAC,yBAAyB,CAAC,IAAI,EAAE,CAAC,CAAC,CAAA;IACzF,CAAC;AACH,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { Tree } from '@nx/devkit';
2
+ export default function warnForEventsTopicNavigated(tree: Tree): Promise<void>;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = warnForEventsTopicNavigated;
4
+ const nx_migration_utils_1 = require("@onecx/nx-migration-utils");
5
+ const tsquery_1 = require("@phenomnomnominal/tsquery");
6
+ function argsContainFilterForTypeNavigated(callExpression) {
7
+ const callExpressionAst = (0, tsquery_1.ast)(callExpression.getText());
8
+ const filterCallsSelector = `CallExpression:has(Identifier[name="filter"]):has(ArrowFunction:has(BinaryExpression:has(PropertyAccessExpression:has(Identifier):has(Identifier[name="type"])):has(StringLiteral[value="navigated"])))`;
9
+ const filterCalls = (0, tsquery_1.query)(callExpressionAst, filterCallsSelector);
10
+ return filterCalls.length > 0;
11
+ }
12
+ async function warnForEventsTopicNavigated(tree) {
13
+ const warningForPotentialMatches = '⚠️ EventsTopic usages were detected. Please double-check if EventsTopic is used for subscribing to navigation events and switch to CurrentLocationTopic/appStateService.currentLocation$ if so.';
14
+ const warningForExactMatches = '⚠️ You are using EventsTopic to listen for navigation events. Please switch to using CurrentLocationTopic/appStateService.currentLocation$.';
15
+ const potentialMatches = (0, nx_migration_utils_1.detectMethodCallsInFiles)(tree, './src', 'pipe', 'EventsTopic');
16
+ const exactMatches = new Map();
17
+ const remainingPotentialMatches = new Map();
18
+ potentialMatches.forEach((calls, file) => {
19
+ const filteredCalls = calls.filter((call) => argsContainFilterForTypeNavigated(call));
20
+ if (filteredCalls.length > 0) {
21
+ exactMatches.set(file, filteredCalls);
22
+ }
23
+ else {
24
+ remainingPotentialMatches.set(file, calls);
25
+ }
26
+ });
27
+ if (exactMatches.size > 0) {
28
+ (0, nx_migration_utils_1.printWarnings)(warningForExactMatches, Array.from(exactMatches.keys()));
29
+ }
30
+ if (remainingPotentialMatches.size > 0) {
31
+ (0, nx_migration_utils_1.printWarnings)(warningForPotentialMatches, Array.from(remainingPotentialMatches.keys()));
32
+ }
33
+ }
34
+ //# sourceMappingURL=warn-for-events-topic-navigated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"warn-for-events-topic-navigated.js","sourceRoot":"","sources":["../../../../../libs/integration-interface/migrations/v5/warn-for-events-topic-navigated.ts"],"names":[],"mappings":";;AAYA,8CA2BC;AAtCD,kEAAmF;AAEnF,uDAAsD;AAEtD,SAAS,iCAAiC,CAAC,cAA8B;IACvE,MAAM,iBAAiB,GAAG,IAAA,aAAG,EAAC,cAAc,CAAC,OAAO,EAAE,CAAC,CAAA;IACvD,MAAM,mBAAmB,GAAG,yMAAyM,CAAA;IACrO,MAAM,WAAW,GAAG,IAAA,eAAK,EAAC,iBAAiB,EAAE,mBAAmB,CAAC,CAAA;IACjE,OAAO,WAAW,CAAC,MAAM,GAAG,CAAC,CAAA;AAC/B,CAAC;AAEc,KAAK,UAAU,2BAA2B,CAAC,IAAU;IAClE,MAAM,0BAA0B,GAC9B,iMAAiM,CAAA;IAEnM,MAAM,sBAAsB,GAC1B,6IAA6I,CAAA;IAE/I,MAAM,gBAAgB,GAAG,IAAA,6CAAwB,EAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,CAAC,CAAA;IAEvF,MAAM,YAAY,GAAG,IAAI,GAAG,EAA4B,CAAA;IACxD,MAAM,yBAAyB,GAAG,IAAI,GAAG,EAA4B,CAAA;IAErE,gBAAgB,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE;QACvC,MAAM,aAAa,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,iCAAiC,CAAC,IAAI,CAAC,CAAC,CAAA;QACrF,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC7B,YAAY,CAAC,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,CAAA;QACvC,CAAC;aAAM,CAAC;YACN,yBAAyB,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;QAC5C,CAAC;IACH,CAAC,CAAC,CAAA;IAEF,IAAI,YAAY,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC;QAC1B,IAAA,kCAAa,EAAC,sBAAsB,EAAE,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,CAAA;IACxE,CAAC;IACD,IAAI,yBAAyB,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC;QACvC,IAAA,kCAAa,EAAC,0BAA0B,EAAE,KAAK,CAAC,IAAI,CAAC,yBAAyB,CAAC,IAAI,EAAE,CAAC,CAAC,CAAA;IACzF,CAAC;AACH,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { Tree } from '@nx/devkit';
2
+ export default function migrateOnecxToV6(tree: Tree): Promise<void>;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = migrateOnecxToV6;
4
+ const nx_migration_utils_1 = require("@onecx/nx-migration-utils");
5
+ async function migrateOnecxToV6(tree) {
6
+ await (0, nx_migration_utils_1.commonMigrateOnecxToV6)(tree);
7
+ }
8
+ //# sourceMappingURL=migrate-onecx-to-v6.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"migrate-onecx-to-v6.js","sourceRoot":"","sources":["../../../../../libs/integration-interface/migrations/v6/migrate-onecx-to-v6.ts"],"names":[],"mappings":";;AAGA,mCAEC;AAJD,kEAAkE;AAEnD,KAAK,UAAU,gBAAgB,CAAC,IAAU;IACvD,MAAM,IAAA,2CAAsB,EAAC,IAAI,CAAC,CAAA;AACpC,CAAC"}
@@ -0,0 +1,46 @@
1
+ {
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
+ },
15
+ "migrate-onecx-to-v6": {
16
+ "cli": "nx",
17
+ "version": "6.0.0",
18
+ "description": "Update package json to Angular 19, PrimeNG 19, OneCX versions to v6 and other dependencies to be compatible with Angular 19.",
19
+ "factory": "migrations/v6/migrate-onecx-to-v6"
20
+ }
21
+ },
22
+ "packageJsonUpdates": {
23
+ "6.0.0": {
24
+ "version": "6.0.0",
25
+ "packages": {
26
+ "@angular/cli": {
27
+ "version": "~19.0.0",
28
+ "alwaysAddToPackageJson": false
29
+ },
30
+ "@nx/angular": {
31
+ "version": "~20.3.0",
32
+ "alwaysAddToPackageJson": false
33
+ },
34
+ "@ngx-translate/core": {
35
+ "version": "~16.0.4",
36
+ "alwaysAddToPackageJson": false
37
+ },
38
+ "primeng": {
39
+ "version": "~19.0.0",
40
+ "alwaysAddToPackageJson": false
41
+ }
42
+ }
43
+ },
44
+ "version": "null"
45
+ }
46
+ }
package/package.json CHANGED
@@ -1,11 +1,15 @@
1
1
  {
2
2
  "name": "@onecx/integration-interface",
3
- "version": "6.0.0-rc.2",
3
+ "version": "6.0.0-rc.20",
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.2"
8
+ "@onecx/accelerator": "^6.0.0-rc.20",
9
+ "@onecx/nx-migration-utils": "^6.0.0-rc.20",
10
+ "@nx/devkit": "^20.3.0",
11
+ "@phenomnomnominal/tsquery": "^6",
12
+ "typescript": "^5.5.4"
9
13
  },
10
14
  "type": "commonjs",
11
15
  "main": "./src/index.js",
@@ -13,5 +17,8 @@
13
17
  "publishConfig": {
14
18
  "access": "public"
15
19
  },
20
+ "nx-migrations": {
21
+ "migrations": "./migrations.json"
22
+ },
16
23
  "types": "./src/index.d.ts"
17
24
  }
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"}
@@ -1,7 +1,7 @@
1
- import { SyncableTopic } from '@onecx/accelerator';
1
+ import { Topic } from '@onecx/accelerator';
2
2
  export interface Config {
3
3
  [key: string]: string;
4
4
  }
5
- export declare class ConfigurationTopic extends SyncableTopic<Config> {
5
+ export declare class ConfigurationTopic extends Topic<Config> {
6
6
  constructor();
7
7
  }
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ConfigurationTopic = void 0;
4
4
  const accelerator_1 = require("@onecx/accelerator");
5
- class ConfigurationTopic extends accelerator_1.SyncableTopic {
5
+ class ConfigurationTopic extends accelerator_1.Topic {
6
6
  constructor() {
7
7
  super('configuration', 1);
8
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"configuration.topic.js","sourceRoot":"","sources":["../../../../../../../../libs/integration-interface/src/lib/topics/configuration/v1/configuration.topic.ts"],"names":[],"mappings":";;;AAAA,oDAAkD;AAIlD,MAAa,kBAAmB,SAAQ,2BAAqB;IAC3D;QACE,KAAK,CAAC,eAAe,EAAE,CAAC,CAAC,CAAA;IAC3B,CAAC;CACF;AAJD,gDAIC"}
1
+ {"version":3,"file":"configuration.topic.js","sourceRoot":"","sources":["../../../../../../../../libs/integration-interface/src/lib/topics/configuration/v1/configuration.topic.ts"],"names":[],"mappings":";;;AAAA,oDAA0C;AAM1C,MAAa,kBAAmB,SAAQ,mBAAa;IACnD;QACE,KAAK,CAAC,eAAe,EAAE,CAAC,CAAC,CAAA;IAC3B,CAAC;CACF;AAJD,gDAIC"}
@@ -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,5 +1,5 @@
1
- import { SyncableTopic } from '@onecx/accelerator';
1
+ import { Topic } from '@onecx/accelerator';
2
2
  import { Workspace } from './workspace.model';
3
- export declare class CurrentWorkspaceTopic extends SyncableTopic<Workspace> {
3
+ export declare class CurrentWorkspaceTopic extends Topic<Workspace> {
4
4
  constructor();
5
5
  }
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CurrentWorkspaceTopic = void 0;
4
4
  const accelerator_1 = require("@onecx/accelerator");
5
- class CurrentWorkspaceTopic extends accelerator_1.SyncableTopic {
5
+ class CurrentWorkspaceTopic extends accelerator_1.Topic {
6
6
  constructor() {
7
7
  super('currentPortal', 1);
8
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"current-workspace.topic.js","sourceRoot":"","sources":["../../../../../../../../libs/integration-interface/src/lib/topics/current-workspace/v1/current-workspace.topic.ts"],"names":[],"mappings":";;;AAAA,oDAAkD;AAGlD,MAAa,qBAAsB,SAAQ,2BAAwB;IACjE;QACE,KAAK,CAAC,eAAe,EAAE,CAAC,CAAC,CAAA;IAC3B,CAAC;CACF;AAJD,sDAIC"}
1
+ {"version":3,"file":"current-workspace.topic.js","sourceRoot":"","sources":["../../../../../../../../libs/integration-interface/src/lib/topics/current-workspace/v1/current-workspace.topic.ts"],"names":[],"mappings":";;;AAAA,oDAA0C;AAG1C,MAAa,qBAAsB,SAAQ,mBAAgB;IACzD;QACE,KAAK,CAAC,eAAe,EAAE,CAAC,CAAC,CAAA;IAC3B,CAAC;CACF;AAJD,sDAIC"}
@@ -1,23 +1,42 @@
1
1
  import { MicrofrontendRegistration } from './mfe-portal-registration.model';
2
2
  import { Route } from './route.model';
3
3
  export interface Workspace {
4
- id?: string;
5
- displayName?: string;
4
+ baseUrl: string;
5
+ workspaceName: string;
6
6
  /**
7
7
  * @deprecated will be renamed to workspaceName
8
8
  */
9
9
  portalName: string;
10
- workspaceName: string;
10
+ displayName?: string;
11
+ homePage?: string;
12
+ routes?: Array<Route>;
13
+ /**
14
+ * @deprecated will be removed
15
+ */
16
+ id?: string;
11
17
  /**
12
18
  * @deprecated will be removed
13
19
  */
14
20
  description?: string;
21
+ /**
22
+ * @deprecated will be removed
23
+ */
15
24
  themeId?: string;
25
+ /**
26
+ * @deprecated will be removed
27
+ */
16
28
  themeName?: string;
29
+ /**
30
+ * @deprecated will be removed
31
+ */
17
32
  footerLabel?: string;
18
- homePage?: string;
19
- baseUrl: string;
33
+ /**
34
+ * @deprecated will be removed
35
+ */
20
36
  companyName?: string;
37
+ /**
38
+ * @deprecated will be removed
39
+ */
21
40
  portalRoles?: string[];
22
41
  /**
23
42
  * @deprecated will be removed
@@ -54,11 +73,16 @@ export interface Workspace {
54
73
  * @deprecated will be removed
55
74
  */
56
75
  microfrontendRegistrations: Array<MicrofrontendRegistration>;
76
+ /**
77
+ * @deprecated will be removed
78
+ */
57
79
  logoUrl?: string;
58
80
  /**
59
81
  * @deprecated will be removed
60
82
  */
61
83
  userUploaded?: boolean;
84
+ /**
85
+ * @deprecated will be removed
86
+ */
62
87
  logoSmallImageUrl?: string;
63
- routes?: Array<Route>;
64
88
  }
@@ -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"}
@@ -1,4 +1,4 @@
1
- import { SyncableTopic } from '@onecx/accelerator';
2
- export declare class PermissionsTopic extends SyncableTopic<string[]> {
1
+ import { Topic } from '@onecx/accelerator';
2
+ export declare class PermissionsTopic extends Topic<string[]> {
3
3
  constructor();
4
4
  }
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PermissionsTopic = void 0;
4
4
  const accelerator_1 = require("@onecx/accelerator");
5
- class PermissionsTopic extends accelerator_1.SyncableTopic {
5
+ class PermissionsTopic extends accelerator_1.Topic {
6
6
  constructor() {
7
7
  super('permissions', 1);
8
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"permissions.topic.js","sourceRoot":"","sources":["../../../../../../../../libs/integration-interface/src/lib/topics/permissions/v1/permissions.topic.ts"],"names":[],"mappings":";;;AAAA,oDAAkD;AAElD,MAAa,gBAAiB,SAAQ,2BAAuB;IAC3D;QACE,KAAK,CAAC,aAAa,EAAE,CAAC,CAAC,CAAA;IACzB,CAAC;CACF;AAJD,4CAIC"}
1
+ {"version":3,"file":"permissions.topic.js","sourceRoot":"","sources":["../../../../../../../../libs/integration-interface/src/lib/topics/permissions/v1/permissions.topic.ts"],"names":[],"mappings":";;;AAAA,oDAA0C;AAE1C,MAAa,gBAAiB,SAAQ,mBAAe;IACnD;QACE,KAAK,CAAC,aAAa,EAAE,CAAC,CAAC,CAAA;IACzB,CAAC;CACF;AAJD,4CAIC"}
@@ -1,29 +1,55 @@
1
1
  export interface UserProfile {
2
- id?: string;
3
2
  userId: string;
3
+ person: UserPerson;
4
+ organization?: string;
5
+ tenantId?: string;
6
+ issuer?: string;
7
+ accountSettings?: UserProfileAccountSettings;
8
+ /**
9
+ * @deprecated
10
+ */
11
+ id?: string;
12
+ /**
13
+ * @deprecated
14
+ */
4
15
  identityProvider?: string;
5
16
  /**
17
+ * @deprecated
6
18
  * user id in external identity provider, e.g. in keycloak
7
19
  */
8
20
  identityProviderId?: string;
9
- organization?: string;
10
- tenantId?: string;
21
+ /**
22
+ * @deprecated
23
+ */
11
24
  tenantName?: string;
12
- person: UserPerson;
25
+ /**
26
+ * @deprecated
27
+ */
13
28
  avatar?: AvatarInfo;
14
- accountSettings?: UserProfileAccountSettings;
29
+ /**
30
+ * @deprecated
31
+ */
15
32
  memberships?: Array<Membership>;
16
33
  }
17
34
  export interface UserProfileAccountSettings {
18
- privacySettings?: UserProfileAccountSettingsPrivacySettings;
19
- notificationSettings?: UserProfileAccountSettingsNotificationSettings;
20
35
  localeAndTimeSettings?: UserProfileAccountSettingsLocaleAndTimeSettings;
21
36
  layoutAndThemeSettings?: UserProfileAccountSettingsLayoutAndThemeSettings;
37
+ /**
38
+ * @deprecated
39
+ */
40
+ privacySettings?: UserProfileAccountSettingsPrivacySettings;
41
+ /**
42
+ * @deprecated
43
+ */
44
+ notificationSettings?: UserProfileAccountSettingsNotificationSettings;
22
45
  }
23
46
  export interface UserProfileAccountSettingsLocaleAndTimeSettings {
24
47
  locale?: string;
25
48
  timezone?: string;
26
49
  }
50
+ /**
51
+ * @deprecated
52
+ */
27
53
  export interface UserProfileAccountSettingsNotificationSettings {
28
54
  todo?: string;
29
55
  }
@@ -34,6 +60,9 @@ export interface UserProfilePreference {
34
60
  description?: string;
35
61
  value?: string;
36
62
  }
63
+ /**
64
+ * @deprecated
65
+ */
37
66
  export interface UserProfileAccountSettingsPrivacySettings {
38
67
  hideMyProfile?: string;
39
68
  }
@@ -1 +1 @@
1
- {"version":3,"file":"user-profile.model.js","sourceRoot":"","sources":["../../../../../../../../libs/integration-interface/src/lib/topics/user-profile/v1/user-profile.model.ts"],"names":[],"mappings":";;;AAwGA,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,8BAAiB,CAAA;IACjB,kCAAqB,CAAA;AACvB,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB"}
1
+ {"version":3,"file":"user-profile.model.js","sourceRoot":"","sources":["../../../../../../../../libs/integration-interface/src/lib/topics/user-profile/v1/user-profile.model.ts"],"names":[],"mappings":";;;AAqIA,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,8BAAiB,CAAA;IACjB,kCAAqB,CAAA;AACvB,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB"}