@onecx/integration-interface 7.6.0 → 8.0.0-rc.10

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 (121) hide show
  1. package/README.md +12 -7
  2. package/dist/index.cjs +1069 -0
  3. package/dist/index.mjs +1038 -0
  4. package/package.json +19 -22
  5. package/src/index.d.ts +5 -0
  6. package/src/index.js +53 -51
  7. package/src/index.js.map +1 -1
  8. package/src/lib/declarations.js +1 -3
  9. package/src/lib/declarations.js.map +1 -1
  10. package/src/lib/models/shell-capability.model.d.ts +11 -0
  11. package/src/lib/models/shell-capability.model.js +8 -0
  12. package/src/lib/models/shell-capability.model.js.map +1 -0
  13. package/src/lib/services/dynamic-translation.service.d.ts +87 -0
  14. package/src/lib/services/dynamic-translation.service.js +275 -0
  15. package/src/lib/services/dynamic-translation.service.js.map +1 -0
  16. package/src/lib/services/icon.service.js +12 -19
  17. package/src/lib/services/icon.service.js.map +1 -1
  18. package/src/lib/services/image-repository.service.js +5 -9
  19. package/src/lib/services/image-repository.service.js.map +1 -1
  20. package/src/lib/topics/configuration/v1/configuration.topic.js +2 -6
  21. package/src/lib/topics/configuration/v1/configuration.topic.js.map +1 -1
  22. package/src/lib/topics/current-location/v1/current-location.model.js +0 -2
  23. package/src/lib/topics/current-location/v1/current-location.topic.d.ts +1 -7
  24. package/src/lib/topics/current-location/v1/current-location.topic.js +2 -15
  25. package/src/lib/topics/current-location/v1/current-location.topic.js.map +1 -1
  26. package/src/lib/topics/current-mfe/v1/current-mfe.topic.js +2 -6
  27. package/src/lib/topics/current-mfe/v1/current-mfe.topic.js.map +1 -1
  28. package/src/lib/topics/current-mfe/v1/mfe-info.model.js +0 -2
  29. package/src/lib/topics/current-page/v1/current-page.topic.js +9 -11
  30. package/src/lib/topics/current-page/v1/current-page.topic.js.map +1 -1
  31. package/src/lib/topics/current-page/v1/page-info.model.js +0 -2
  32. package/src/lib/topics/current-theme/v1/current-theme.topic.js +2 -6
  33. package/src/lib/topics/current-theme/v1/current-theme.topic.js.map +1 -1
  34. package/src/lib/topics/current-theme/v1/theme-override.model.js +2 -5
  35. package/src/lib/topics/current-theme/v1/theme-override.model.js.map +1 -1
  36. package/src/lib/topics/current-theme/v1/theme.model.js +0 -2
  37. package/src/lib/topics/current-workspace/v1/current-workspace.topic.js +2 -6
  38. package/src/lib/topics/current-workspace/v1/current-workspace.topic.js.map +1 -1
  39. package/src/lib/topics/current-workspace/v1/endpoint.model.js +0 -2
  40. package/src/lib/topics/current-workspace/v1/mfe-portal-registration.model.js +0 -2
  41. package/src/lib/topics/current-workspace/v1/route.model.js +0 -2
  42. package/src/lib/topics/current-workspace/v1/workspace.model.d.ts +0 -5
  43. package/src/lib/topics/current-workspace/v1/workspace.model.js +0 -2
  44. package/src/lib/topics/dynamic-translations/v1/dynamic-translations.model.d.ts +15 -0
  45. package/src/lib/topics/dynamic-translations/v1/dynamic-translations.model.js +6 -0
  46. package/src/lib/topics/dynamic-translations/v1/dynamic-translations.model.js.map +1 -0
  47. package/src/lib/topics/dynamic-translations/v1/dynamic-translations.topic.d.ts +6 -0
  48. package/src/lib/topics/dynamic-translations/v1/dynamic-translations.topic.js +7 -0
  49. package/src/lib/topics/dynamic-translations/v1/dynamic-translations.topic.js.map +1 -0
  50. package/src/lib/topics/events/v1/event-type.js +2 -5
  51. package/src/lib/topics/events/v1/event-type.js.map +1 -1
  52. package/src/lib/topics/events/v1/events-topic.d.ts +1 -7
  53. package/src/lib/topics/events/v1/events-topic.js +2 -15
  54. package/src/lib/topics/events/v1/events-topic.js.map +1 -1
  55. package/src/lib/topics/events/v1/navigated-event-payload.js +0 -2
  56. package/src/lib/topics/events/v1/navigated-event-type.js +0 -2
  57. package/src/lib/topics/events/v1/topic-event-type.js +0 -2
  58. package/src/lib/topics/global-error/v1/global-error.topic.js +2 -6
  59. package/src/lib/topics/global-error/v1/global-error.topic.js.map +1 -1
  60. package/src/lib/topics/global-loading/v1/global-loading.topic.js +2 -6
  61. package/src/lib/topics/global-loading/v1/global-loading.topic.js.map +1 -1
  62. package/src/lib/topics/icons/v1/icon.model.js +0 -2
  63. package/src/lib/topics/icons/v1/icon.topic.js +2 -6
  64. package/src/lib/topics/icons/v1/icon.topic.js.map +1 -1
  65. package/src/lib/topics/image-repository/image-repository.model.js +0 -2
  66. package/src/lib/topics/image-repository/image-repository.topic.js +2 -6
  67. package/src/lib/topics/image-repository/image-repository.topic.js.map +1 -1
  68. package/src/lib/topics/is-authenticated/v1/isAuthenticated.topic.js +2 -6
  69. package/src/lib/topics/is-authenticated/v1/isAuthenticated.topic.js.map +1 -1
  70. package/src/lib/topics/message/v1/message.model.js +0 -2
  71. package/src/lib/topics/message/v1/message.topic.js +2 -6
  72. package/src/lib/topics/message/v1/message.topic.js.map +1 -1
  73. package/src/lib/topics/parameters/v1/parameters.topic.d.ts +1 -7
  74. package/src/lib/topics/parameters/v1/parameters.topic.js +2 -15
  75. package/src/lib/topics/parameters/v1/parameters.topic.js.map +1 -1
  76. package/src/lib/topics/permissions/v1/permissions.topic.js +2 -6
  77. package/src/lib/topics/permissions/v1/permissions.topic.js.map +1 -1
  78. package/src/lib/topics/permissions-rpc/v1/permissions-rpc.model.js +0 -2
  79. package/src/lib/topics/permissions-rpc/v1/permissions-rpc.topic.js +2 -6
  80. package/src/lib/topics/permissions-rpc/v1/permissions-rpc.topic.js.map +1 -1
  81. package/src/lib/topics/remote-components/v1/remote-component.model.js +2 -5
  82. package/src/lib/topics/remote-components/v1/remote-component.model.js.map +1 -1
  83. package/src/lib/topics/remote-components/v1/remote-components-info.model.js +0 -2
  84. package/src/lib/topics/remote-components/v1/remote-components.topic.js +2 -6
  85. package/src/lib/topics/remote-components/v1/remote-components.topic.js.map +1 -1
  86. package/src/lib/topics/remote-components/v1/slot.model.js +0 -2
  87. package/src/lib/topics/resized-events/v1/resized-event-type.js +2 -5
  88. package/src/lib/topics/resized-events/v1/resized-event-type.js.map +1 -1
  89. package/src/lib/topics/resized-events/v1/resized-events.topic.d.ts +1 -8
  90. package/src/lib/topics/resized-events/v1/resized-events.topic.js +9 -17
  91. package/src/lib/topics/resized-events/v1/resized-events.topic.js.map +1 -1
  92. package/src/lib/topics/resized-events/v1/resized-update-requested-type.js +0 -2
  93. package/src/lib/topics/resized-events/v1/slot-groups-resized-type.js +0 -2
  94. package/src/lib/topics/resized-events/v1/slots-resized-type.js +0 -2
  95. package/src/lib/topics/resized-events/v1/topic-resized-event-type.js +0 -2
  96. package/src/lib/topics/user-profile/v1/user-profile.model.js +2 -5
  97. package/src/lib/topics/user-profile/v1/user-profile.model.js.map +1 -1
  98. package/src/lib/topics/user-profile/v1/user-profile.topic.js +2 -6
  99. package/src/lib/topics/user-profile/v1/user-profile.topic.js.map +1 -1
  100. package/src/lib/utils/logger.utils.d.ts +1 -0
  101. package/src/lib/utils/logger.utils.js +4 -0
  102. package/src/lib/utils/logger.utils.js.map +1 -0
  103. package/src/lib/utils/shell-capability.utils.d.ts +2 -0
  104. package/src/lib/utils/shell-capability.utils.js +4 -0
  105. package/src/lib/utils/shell-capability.utils.js.map +1 -0
  106. package/src/version.d.ts +2 -0
  107. package/src/version.js +3 -0
  108. package/src/version.js.map +1 -0
  109. package/migrations/index.d.ts +0 -3
  110. package/migrations/index.js +0 -7
  111. package/migrations/index.js.map +0 -1
  112. package/migrations/v5/warn-for-events-publisher-navigated.d.ts +0 -2
  113. package/migrations/v5/warn-for-events-publisher-navigated.js +0 -33
  114. package/migrations/v5/warn-for-events-publisher-navigated.js.map +0 -1
  115. package/migrations/v5/warn-for-events-topic-navigated.d.ts +0 -2
  116. package/migrations/v5/warn-for-events-topic-navigated.js +0 -34
  117. package/migrations/v5/warn-for-events-topic-navigated.js.map +0 -1
  118. package/migrations/v6/migrate-onecx-to-v6.d.ts +0 -2
  119. package/migrations/v6/migrate-onecx-to-v6.js +0 -8
  120. package/migrations/v6/migrate-onecx-to-v6.js.map +0 -1
  121. package/migrations.json +0 -46
@@ -1 +1 @@
1
- {"version":3,"file":"isAuthenticated.topic.js","sourceRoot":"","sources":["../../../../../../../../libs/integration-interface/src/lib/topics/is-authenticated/v1/isAuthenticated.topic.ts"],"names":[],"mappings":";;;AAAA,oDAA0C;AAE1C,MAAa,oBAAqB,SAAQ,mBAAW;IACnD;QACE,KAAK,CAAC,iBAAiB,EAAE,CAAC,CAAC,CAAA;IAC7B,CAAC;CACF;AAJD,oDAIC"}
1
+ {"version":3,"file":"isAuthenticated.topic.js","sourceRoot":"","sources":["../../../../../../../../libs/integration-interface/src/lib/topics/is-authenticated/v1/isAuthenticated.topic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAE1C,MAAM,OAAO,oBAAqB,SAAQ,KAAW;IACnD;QACE,KAAK,CAAC,iBAAiB,EAAE,CAAC,CAAC,CAAA;IAC7B,CAAC;CACF"}
@@ -1,3 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
1
  //# sourceMappingURL=message.model.js.map
@@ -1,11 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MessageTopic = void 0;
4
- const accelerator_1 = require("@onecx/accelerator");
5
- class MessageTopic extends accelerator_1.Topic {
1
+ import { Topic } from '@onecx/accelerator';
2
+ export class MessageTopic extends Topic {
6
3
  constructor() {
7
4
  super('message', 1);
8
5
  }
9
6
  }
10
- exports.MessageTopic = MessageTopic;
11
7
  //# sourceMappingURL=message.topic.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"message.topic.js","sourceRoot":"","sources":["../../../../../../../../libs/integration-interface/src/lib/topics/message/v1/message.topic.ts"],"names":[],"mappings":";;;AAAA,oDAA0C;AAG1C,MAAa,YAAa,SAAQ,mBAAc;IAC9C;QACE,KAAK,CAAC,SAAS,EAAE,CAAC,CAAC,CAAA;IACrB,CAAC;CACF;AAJD,oCAIC"}
1
+ {"version":3,"file":"message.topic.js","sourceRoot":"","sources":["../../../../../../../../libs/integration-interface/src/lib/topics/message/v1/message.topic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAG1C,MAAM,OAAO,YAAa,SAAQ,KAAc;IAC9C;QACE,KAAK,CAAC,SAAS,EAAE,CAAC,CAAC,CAAA;IACrB,CAAC;CACF"}
@@ -1,4 +1,4 @@
1
- import { Topic, TopicPublisher } from '@onecx/accelerator';
1
+ import { Topic } from '@onecx/accelerator';
2
2
  type ParameterValue = boolean | number | string | object;
3
3
  export interface Parameters {
4
4
  [key: string]: ParameterValue;
@@ -11,12 +11,6 @@ export interface ApplicationParameters {
11
11
  export interface ParametersTopicPayload {
12
12
  parameters: ApplicationParameters[];
13
13
  }
14
- /**
15
- * @deprecated TopicPublisher is deprecated and will be removed in future versions. Use Topic instead.
16
- */
17
- export declare class ParametersPublisher extends TopicPublisher<ParametersTopicPayload> {
18
- constructor();
19
- }
20
14
  export declare class ParametersTopic extends Topic<ParametersTopicPayload> {
21
15
  constructor();
22
16
  }
@@ -1,20 +1,7 @@
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
- /**
6
- * @deprecated TopicPublisher is deprecated and will be removed in future versions. Use Topic instead.
7
- */
8
- class ParametersPublisher extends accelerator_1.TopicPublisher {
1
+ import { Topic } from '@onecx/accelerator';
2
+ export class ParametersTopic extends Topic {
9
3
  constructor() {
10
4
  super('parameters', 1);
11
5
  }
12
6
  }
13
- exports.ParametersPublisher = ParametersPublisher;
14
- class ParametersTopic extends accelerator_1.Topic {
15
- constructor() {
16
- super('parameters', 1);
17
- }
18
- }
19
- exports.ParametersTopic = ParametersTopic;
20
7
  //# sourceMappingURL=parameters.topic.js.map
@@ -1 +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;;GAEG;AACH,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
+ {"version":3,"file":"parameters.topic.js","sourceRoot":"","sources":["../../../../../../../../libs/integration-interface/src/lib/topics/parameters/v1/parameters.topic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAkB1C,MAAM,OAAO,eAAgB,SAAQ,KAA6B;IAChE;QACE,KAAK,CAAC,YAAY,EAAE,CAAC,CAAC,CAAA;IACxB,CAAC;CACF"}
@@ -1,11 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PermissionsTopic = void 0;
4
- const accelerator_1 = require("@onecx/accelerator");
5
- class PermissionsTopic extends accelerator_1.Topic {
1
+ import { Topic } from '@onecx/accelerator';
2
+ export class PermissionsTopic extends Topic {
6
3
  constructor() {
7
4
  super('permissions', 1);
8
5
  }
9
6
  }
10
- exports.PermissionsTopic = PermissionsTopic;
11
7
  //# sourceMappingURL=permissions.topic.js.map
@@ -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,oDAA0C;AAE1C,MAAa,gBAAiB,SAAQ,mBAAe;IACnD;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,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAE1C,MAAM,OAAO,gBAAiB,SAAQ,KAAe;IACnD;QACE,KAAK,CAAC,aAAa,EAAE,CAAC,CAAC,CAAA;IACzB,CAAC;CACF"}
@@ -1,3 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
1
  //# sourceMappingURL=permissions-rpc.model.js.map
@@ -1,11 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PermissionsRpcTopic = void 0;
4
- const accelerator_1 = require("@onecx/accelerator");
5
- class PermissionsRpcTopic extends accelerator_1.Topic {
1
+ import { Topic } from '@onecx/accelerator';
2
+ export class PermissionsRpcTopic extends Topic {
6
3
  constructor() {
7
4
  super('permissionsRpc', 1, false);
8
5
  }
9
6
  }
10
- exports.PermissionsRpcTopic = PermissionsRpcTopic;
11
7
  //# sourceMappingURL=permissions-rpc.topic.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"permissions-rpc.topic.js","sourceRoot":"","sources":["../../../../../../../../libs/integration-interface/src/lib/topics/permissions-rpc/v1/permissions-rpc.topic.ts"],"names":[],"mappings":";;;AAAA,oDAA0C;AAG1C,MAAa,mBAAoB,SAAQ,mBAAqB;IAC5D;QACE,KAAK,CAAC,gBAAgB,EAAE,CAAC,EAAE,KAAK,CAAC,CAAA;IACnC,CAAC;CACF;AAJD,kDAIC"}
1
+ {"version":3,"file":"permissions-rpc.topic.js","sourceRoot":"","sources":["../../../../../../../../libs/integration-interface/src/lib/topics/permissions-rpc/v1/permissions-rpc.topic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAG1C,MAAM,OAAO,mBAAoB,SAAQ,KAAqB;IAC5D;QACE,KAAK,CAAC,gBAAgB,EAAE,CAAC,EAAE,KAAK,CAAC,CAAA;IACnC,CAAC;CACF"}
@@ -1,10 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Technologies = void 0;
4
- var Technologies;
1
+ export var Technologies;
5
2
  (function (Technologies) {
6
3
  Technologies["Angular"] = "Angular";
7
4
  Technologies["WebComponentScript"] = "WebComponentScript";
8
5
  Technologies["WebComponentModule"] = "WebComponentModule";
9
- })(Technologies || (exports.Technologies = Technologies = {}));
6
+ })(Technologies || (Technologies = {}));
10
7
  //# sourceMappingURL=remote-component.model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"remote-component.model.js","sourceRoot":"","sources":["../../../../../../../../libs/integration-interface/src/lib/topics/remote-components/v1/remote-component.model.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,yDAAyC,CAAA;IACzC,yDAAyC,CAAA;AAC3C,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB"}
1
+ {"version":3,"file":"remote-component.model.js","sourceRoot":"","sources":["../../../../../../../../libs/integration-interface/src/lib/topics/remote-components/v1/remote-component.model.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,yDAAyC,CAAA;IACzC,yDAAyC,CAAA;AAC3C,CAAC,EAJW,YAAY,KAAZ,YAAY,QAIvB"}
@@ -1,3 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
1
  //# sourceMappingURL=remote-components-info.model.js.map
@@ -1,11 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RemoteComponentsTopic = void 0;
4
- const accelerator_1 = require("@onecx/accelerator");
5
- class RemoteComponentsTopic extends accelerator_1.Topic {
1
+ import { Topic } from '@onecx/accelerator';
2
+ export class RemoteComponentsTopic extends Topic {
6
3
  constructor() {
7
4
  super('remoteComponentsInfo', 1);
8
5
  }
9
6
  }
10
- exports.RemoteComponentsTopic = RemoteComponentsTopic;
11
7
  //# sourceMappingURL=remote-components.topic.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"remote-components.topic.js","sourceRoot":"","sources":["../../../../../../../../libs/integration-interface/src/lib/topics/remote-components/v1/remote-components.topic.ts"],"names":[],"mappings":";;;AAAA,oDAA0C;AAG1C,MAAa,qBAAsB,SAAQ,mBAA2B;IACpE;QACE,KAAK,CAAC,sBAAsB,EAAE,CAAC,CAAC,CAAA;IAClC,CAAC;CACF;AAJD,sDAIC"}
1
+ {"version":3,"file":"remote-components.topic.js","sourceRoot":"","sources":["../../../../../../../../libs/integration-interface/src/lib/topics/remote-components/v1/remote-components.topic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAG1C,MAAM,OAAO,qBAAsB,SAAQ,KAA2B;IACpE;QACE,KAAK,CAAC,sBAAsB,EAAE,CAAC,CAAC,CAAA;IAClC,CAAC;CACF"}
@@ -1,3 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
1
  //# sourceMappingURL=slot.model.js.map
@@ -1,10 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ResizedEventType = void 0;
4
- var ResizedEventType;
1
+ export var ResizedEventType;
5
2
  (function (ResizedEventType) {
6
3
  ResizedEventType["SLOT_RESIZED"] = "slot_resized";
7
4
  ResizedEventType["SLOT_GROUP_RESIZED"] = "slot_group_resized";
8
5
  ResizedEventType["REQUESTED_EVENTS_CHANGED"] = "requested_events_changed";
9
- })(ResizedEventType || (exports.ResizedEventType = ResizedEventType = {}));
6
+ })(ResizedEventType || (ResizedEventType = {}));
10
7
  //# sourceMappingURL=resized-event-type.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"resized-event-type.js","sourceRoot":"","sources":["../../../../../../../../libs/integration-interface/src/lib/topics/resized-events/v1/resized-event-type.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,iDAA6B,CAAA;IAC7B,6DAAyC,CAAA;IACzC,yEAAqD,CAAA;AACvD,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B"}
1
+ {"version":3,"file":"resized-event-type.js","sourceRoot":"","sources":["../../../../../../../../libs/integration-interface/src/lib/topics/resized-events/v1/resized-event-type.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,iDAA6B,CAAA;IAC7B,6DAAyC,CAAA;IACzC,yEAAqD,CAAA;AACvD,CAAC,EAJW,gBAAgB,KAAhB,gBAAgB,QAI3B"}
@@ -1,4 +1,4 @@
1
- import { Topic, TopicPublisher } from '@onecx/accelerator';
1
+ import { Topic } from '@onecx/accelerator';
2
2
  import { TopicResizedEventType } from './topic-resized-event-type';
3
3
  import { ResizedEventType } from './resized-event-type';
4
4
  declare global {
@@ -11,13 +11,6 @@ declare global {
11
11
  };
12
12
  }
13
13
  }
14
- /**
15
- * @deprecated TopicPublisher is deprecated and will be removed in future versions. Use Topic instead.
16
- */
17
- export declare class ResizedEventsPublisher extends TopicPublisher<TopicResizedEventType> {
18
- constructor();
19
- publish(event: TopicResizedEventType): Promise<void>;
20
- }
21
14
  export declare class ResizedEventsTopic extends Topic<TopicResizedEventType> {
22
15
  constructor();
23
16
  /**
@@ -1,18 +1,12 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ResizedEventsTopic = exports.ResizedEventsPublisher = void 0;
4
- const accelerator_1 = require("@onecx/accelerator");
5
- const resized_event_type_1 = require("./resized-event-type");
6
- /**
7
- * @deprecated TopicPublisher is deprecated and will be removed in future versions. Use Topic instead.
8
- */
9
- class ResizedEventsPublisher extends accelerator_1.TopicPublisher {
1
+ import { Topic, TopicPublisher } from '@onecx/accelerator';
2
+ import { ResizedEventType } from './resized-event-type';
3
+ class ResizedEventsPublisher extends TopicPublisher {
10
4
  constructor() {
11
5
  super('resizedEvents', 1);
12
6
  }
13
7
  //NOSONAR
14
8
  publish(event) {
15
- if (![resized_event_type_1.ResizedEventType.SLOT_GROUP_RESIZED, resized_event_type_1.ResizedEventType.SLOT_RESIZED].includes(event.type)) {
9
+ if (![ResizedEventType.SLOT_GROUP_RESIZED, ResizedEventType.SLOT_RESIZED].includes(event.type)) {
16
10
  return super.publish(event);
17
11
  }
18
12
  const resizedEvent = event;
@@ -23,8 +17,7 @@ class ResizedEventsPublisher extends accelerator_1.TopicPublisher {
23
17
  return Promise.resolve();
24
18
  }
25
19
  }
26
- exports.ResizedEventsPublisher = ResizedEventsPublisher;
27
- class ResizedEventsTopic extends accelerator_1.Topic {
20
+ export class ResizedEventsTopic extends Topic {
28
21
  constructor() {
29
22
  super('resizedEvents', 1, false);
30
23
  window['@onecx/integration-interface'] ??= {};
@@ -44,7 +37,7 @@ class ResizedEventsTopic extends accelerator_1.Topic {
44
37
  // Without this, the listener might have to wait until the next resize to get any data
45
38
  // Its important that this is called after the listener is registered
46
39
  new ResizedEventsPublisher().publish({
47
- type: resized_event_type_1.ResizedEventType.REQUESTED_EVENTS_CHANGED,
40
+ type: ResizedEventType.REQUESTED_EVENTS_CHANGED,
48
41
  payload: {
49
42
  type: eventType,
50
43
  name: entityName,
@@ -53,7 +46,7 @@ class ResizedEventsTopic extends accelerator_1.Topic {
53
46
  }
54
47
  //NOSONAR
55
48
  publish(event) {
56
- if (![resized_event_type_1.ResizedEventType.SLOT_GROUP_RESIZED, resized_event_type_1.ResizedEventType.SLOT_RESIZED].includes(event.type)) {
49
+ if (![ResizedEventType.SLOT_GROUP_RESIZED, ResizedEventType.SLOT_RESIZED].includes(event.type)) {
57
50
  return super.publish(event);
58
51
  }
59
52
  const resizedEvent = event;
@@ -64,12 +57,11 @@ class ResizedEventsTopic extends accelerator_1.Topic {
64
57
  return Promise.resolve();
65
58
  }
66
59
  }
67
- exports.ResizedEventsTopic = ResizedEventsTopic;
68
60
  function eventToEntityName(event) {
69
61
  switch (event.type) {
70
- case resized_event_type_1.ResizedEventType.SLOT_RESIZED:
62
+ case ResizedEventType.SLOT_RESIZED:
71
63
  return event.payload.slotName;
72
- case resized_event_type_1.ResizedEventType.SLOT_GROUP_RESIZED:
64
+ case ResizedEventType.SLOT_GROUP_RESIZED:
73
65
  return event.payload.slotGroupName;
74
66
  }
75
67
  }
@@ -1 +1 @@
1
- {"version":3,"file":"resized-events.topic.js","sourceRoot":"","sources":["../../../../../../../../libs/integration-interface/src/lib/topics/resized-events/v1/resized-events.topic.ts"],"names":[],"mappings":";;;AAAA,oDAA0D;AAE1D,6DAAuD;AAgBvD;;GAEG;AACH,MAAa,sBAAuB,SAAQ,4BAAqC;IAC/E;QACE,KAAK,CAAC,eAAe,EAAE,CAAC,CAAC,CAAA;IAC3B,CAAC;IAED,SAAS;IACA,OAAO,CAAC,KAA4B;QAC3C,IAAI,CAAC,CAAC,qCAAgB,CAAC,kBAAkB,EAAE,qCAAgB,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;YAC/F,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;QAC7B,CAAC;QAED,MAAM,YAAY,GAAG,KAAiD,CAAA;QACtE,MAAM,UAAU,GAAG,iBAAiB,CAAC,YAAY,CAAC,CAAA;QAElD,IAAI,MAAM,CAAC,8BAA8B,CAAC,CAAC,eAAe,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;YACvG,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;QAC7B,CAAC;QAED,OAAO,OAAO,CAAC,OAAO,EAAE,CAAA;IAC1B,CAAC;CACF;AApBD,wDAoBC;AACD,MAAa,kBAAmB,SAAQ,mBAA4B;IAClE;QACE,KAAK,CAAC,eAAe,EAAE,CAAC,EAAE,KAAK,CAAC,CAAA;QAChC,MAAM,CAAC,8BAA8B,CAAC,KAAK,EAAE,CAAA;QAC7C,MAAM,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AAC,OAAO,EAAE,CAAA;IAC1B,CAAC;CACF;AAhDD,gDAgDC;AAED,SAAS,iBAAiB,CAAC,KAA+C;IACxE,QAAQ,KAAK,CAAC,IAAI,EAAE,CAAC;QACnB,KAAK,qCAAgB,CAAC,YAAY;YAChC,OAAO,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAA;QAC/B,KAAK,qCAAgB,CAAC,kBAAkB;YACtC,OAAO,KAAK,CAAC,OAAO,CAAC,aAAa,CAAA;IACtC,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"resized-events.topic.js","sourceRoot":"","sources":["../../../../../../../../libs/integration-interface/src/lib/topics/resized-events/v1/resized-events.topic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAE1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAgBvD,MAAM,sBAAuB,SAAQ,cAAqC;IACxE;QACE,KAAK,CAAC,eAAe,EAAE,CAAC,CAAC,CAAA;IAC3B,CAAC;IAED,SAAS;IACA,OAAO,CAAC,KAA4B;QAC3C,IAAI,CAAC,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,gBAAgB,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;YAC/F,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;QAC7B,CAAC;QAED,MAAM,YAAY,GAAG,KAAiD,CAAA;QACtE,MAAM,UAAU,GAAG,iBAAiB,CAAC,YAAY,CAAC,CAAA;QAElD,IAAI,MAAM,CAAC,8BAA8B,CAAC,CAAC,eAAe,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;YACvG,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;QAC7B,CAAC;QAED,OAAO,OAAO,CAAC,OAAO,EAAE,CAAA;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AC,CAAC,eAAe,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;YACvG,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;QAC7B,CAAC;QAED,OAAO,OAAO,CAAC,OAAO,EAAE,CAAA;IAC1B,CAAC;CACF;AAED,SAAS,iBAAiB,CAAC,KAA+C;IACxE,QAAQ,KAAK,CAAC,IAAI,EAAE,CAAC;QACnB,KAAK,gBAAgB,CAAC,YAAY;YAChC,OAAO,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAA;QAC/B,KAAK,gBAAgB,CAAC,kBAAkB;YACtC,OAAO,KAAK,CAAC,OAAO,CAAC,aAAa,CAAA;IACtC,CAAC;AACH,CAAC"}
@@ -1,3 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
1
  //# sourceMappingURL=resized-update-requested-type.js.map
@@ -1,3 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
1
  //# sourceMappingURL=slot-groups-resized-type.js.map
@@ -1,3 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
1
  //# sourceMappingURL=slots-resized-type.js.map
@@ -1,3 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
1
  //# sourceMappingURL=topic-resized-event-type.js.map
@@ -1,9 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PhoneType = void 0;
4
- var PhoneType;
1
+ export var PhoneType;
5
2
  (function (PhoneType) {
6
3
  PhoneType["MOBILE"] = "MOBILE";
7
4
  PhoneType["LANDLINE"] = "LANDLINE";
8
- })(PhoneType || (exports.PhoneType = PhoneType = {}));
5
+ })(PhoneType || (PhoneType = {}));
9
6
  //# sourceMappingURL=user-profile.model.js.map
@@ -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":";;;AA0IA,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":"AA0IA,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,8BAAiB,CAAA;IACjB,kCAAqB,CAAA;AACvB,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB"}
@@ -1,11 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserProfileTopic = void 0;
4
- const accelerator_1 = require("@onecx/accelerator");
5
- class UserProfileTopic extends accelerator_1.Topic {
1
+ import { Topic } from '@onecx/accelerator';
2
+ export class UserProfileTopic extends Topic {
6
3
  constructor() {
7
4
  super('userProfile', 1);
8
5
  }
9
6
  }
10
- exports.UserProfileTopic = UserProfileTopic;
11
7
  //# sourceMappingURL=user-profile.topic.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"user-profile.topic.js","sourceRoot":"","sources":["../../../../../../../../libs/integration-interface/src/lib/topics/user-profile/v1/user-profile.topic.ts"],"names":[],"mappings":";;;AAAA,oDAA0C;AAG1C,MAAa,gBAAiB,SAAQ,mBAAkB;IACtD;QACE,KAAK,CAAC,aAAa,EAAE,CAAC,CAAC,CAAA;IACzB,CAAC;CACF;AAJD,4CAIC"}
1
+ {"version":3,"file":"user-profile.topic.js","sourceRoot":"","sources":["../../../../../../../../libs/integration-interface/src/lib/topics/user-profile/v1/user-profile.topic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAG1C,MAAM,OAAO,gBAAiB,SAAQ,KAAkB;IACtD;QACE,KAAK,CAAC,aAAa,EAAE,CAAC,CAAC,CAAA;IACzB,CAAC;CACF"}
@@ -0,0 +1 @@
1
+ export declare const createLogger: import("@onecx/accelerator").CreateLogger;
@@ -0,0 +1,4 @@
1
+ // This file is not planned to be in the index.ts so it is private to this lib
2
+ import { createLoggerFactory } from '@onecx/accelerator';
3
+ export const createLogger = createLoggerFactory('@onecx/integration-interface');
4
+ //# sourceMappingURL=logger.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.utils.js","sourceRoot":"","sources":["../../../../../../libs/integration-interface/src/lib/utils/logger.utils.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAExD,MAAM,CAAC,MAAM,YAAY,GAAG,mBAAmB,CAAC,8BAA8B,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ import { ShellCapability } from '../models/shell-capability.model';
2
+ export declare function hasShellCapability(capability: ShellCapability): boolean;
@@ -0,0 +1,4 @@
1
+ export function hasShellCapability(capability) {
2
+ return window['onecx-shell-capabilities']?.includes(capability) ?? false;
3
+ }
4
+ //# sourceMappingURL=shell-capability.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shell-capability.utils.js","sourceRoot":"","sources":["../../../../../../libs/integration-interface/src/lib/utils/shell-capability.utils.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,kBAAkB,CAAC,UAA2B;IAC5D,OAAO,MAAM,CAAC,0BAA0B,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC,IAAI,KAAK,CAAC;AAC3E,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const LIB_NAME = "@onecx/integration-interface";
2
+ export declare const LIB_VERSION = "8.0.0-rc.10";
package/src/version.js ADDED
@@ -0,0 +1,3 @@
1
+ export const LIB_NAME = '@onecx/integration-interface';
2
+ export const LIB_VERSION = '8.0.0-rc.10';
3
+ //# sourceMappingURL=version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../../../libs/integration-interface/src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG,8BAA8B,CAAA;AACtD,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAA"}
@@ -1,3 +0,0 @@
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';
@@ -1,7 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/integration-interface/migrations/index.ts"],"names":[],"mappings":";;;AAAA,mEAAwC;AACxC,+EAAoD;AACpD,mFAAwD"}
@@ -1,2 +0,0 @@
1
- import { Tree } from '@nx/devkit';
2
- export default function warnForEventsPublisherNavigated(tree: Tree): Promise<void>;
@@ -1,33 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
1
- import { Tree } from '@nx/devkit';
2
- export default function warnForEventsTopicNavigated(tree: Tree): Promise<void>;
@@ -1,34 +0,0 @@
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
@@ -1 +0,0 @@
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,CA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default function migrateOnecxToV6(tree: Tree): Promise<void>;
@@ -1,8 +0,0 @@
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
@@ -1 +0,0 @@
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"}
package/migrations.json DELETED
@@ -1,46 +0,0 @@
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
- }