@onecx/integration-interface 8.0.0-rc.1 → 8.0.0-rc.11
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/README.md +12 -7
- package/dist/index.cjs +1359 -0
- package/dist/index.mjs +1328 -0
- package/package.json +20 -15
- package/src/index.d.ts +17 -0
- package/src/index.js +61 -47
- package/src/index.js.map +1 -1
- package/src/lib/declarations.d.ts +5 -0
- package/src/lib/declarations.js +2 -0
- package/src/lib/declarations.js.map +1 -0
- package/src/lib/models/shell-capability.model.d.ts +11 -0
- package/src/lib/models/shell-capability.model.js +8 -0
- package/src/lib/models/shell-capability.model.js.map +1 -0
- package/src/lib/services/dynamic-translation.service.d.ts +87 -0
- package/src/lib/services/dynamic-translation.service.js +275 -0
- package/src/lib/services/dynamic-translation.service.js.map +1 -0
- package/src/lib/services/icon.service.d.ts +15 -0
- package/src/lib/services/icon.service.js +50 -0
- package/src/lib/services/icon.service.js.map +1 -0
- package/src/lib/services/image-repository.service.js +5 -9
- package/src/lib/services/image-repository.service.js.map +1 -1
- package/src/lib/services/notification.service.d.ts +7 -0
- package/src/lib/services/notification.service.js +15 -0
- package/src/lib/services/notification.service.js.map +1 -0
- package/src/lib/topics/configuration/v1/configuration.topic.js +2 -6
- package/src/lib/topics/configuration/v1/configuration.topic.js.map +1 -1
- package/src/lib/topics/current-location/v1/current-location.model.js +0 -2
- package/src/lib/topics/current-location/v1/current-location.topic.d.ts +1 -4
- package/src/lib/topics/current-location/v1/current-location.topic.js +2 -12
- package/src/lib/topics/current-location/v1/current-location.topic.js.map +1 -1
- package/src/lib/topics/current-mfe/v1/current-mfe.topic.js +2 -6
- package/src/lib/topics/current-mfe/v1/current-mfe.topic.js.map +1 -1
- package/src/lib/topics/current-mfe/v1/mfe-info.model.js +0 -2
- package/src/lib/topics/current-page/v1/current-page.topic.js +9 -11
- package/src/lib/topics/current-page/v1/current-page.topic.js.map +1 -1
- package/src/lib/topics/current-page/v1/page-info.model.js +0 -2
- package/src/lib/topics/current-theme/v1/current-theme.topic.js +2 -6
- package/src/lib/topics/current-theme/v1/current-theme.topic.js.map +1 -1
- package/src/lib/topics/current-theme/v1/theme-override.model.d.ts +8 -0
- package/src/lib/topics/current-theme/v1/theme-override.model.js +6 -0
- package/src/lib/topics/current-theme/v1/theme-override.model.js.map +1 -0
- package/src/lib/topics/current-theme/v1/theme.model.d.ts +2 -0
- package/src/lib/topics/current-theme/v1/theme.model.js +0 -2
- package/src/lib/topics/current-workspace/v1/current-workspace.topic.js +2 -6
- package/src/lib/topics/current-workspace/v1/current-workspace.topic.js.map +1 -1
- package/src/lib/topics/current-workspace/v1/endpoint.model.js +0 -2
- package/src/lib/topics/current-workspace/v1/mfe-portal-registration.model.js +0 -2
- package/src/lib/topics/current-workspace/v1/route.model.js +0 -2
- package/src/lib/topics/current-workspace/v1/workspace.model.js +0 -2
- package/src/lib/topics/dynamic-translations/v1/dynamic-translations.model.d.ts +15 -0
- package/src/lib/topics/dynamic-translations/v1/dynamic-translations.model.js +6 -0
- package/src/lib/topics/dynamic-translations/v1/dynamic-translations.model.js.map +1 -0
- package/src/lib/topics/dynamic-translations/v1/dynamic-translations.topic.d.ts +6 -0
- package/src/lib/topics/dynamic-translations/v1/dynamic-translations.topic.js +7 -0
- package/src/lib/topics/dynamic-translations/v1/dynamic-translations.topic.js.map +1 -0
- package/src/lib/topics/events/v1/event-type.js +2 -5
- package/src/lib/topics/events/v1/event-type.js.map +1 -1
- package/src/lib/topics/events/v1/events-topic.d.ts +1 -4
- package/src/lib/topics/events/v1/events-topic.js +2 -12
- package/src/lib/topics/events/v1/events-topic.js.map +1 -1
- package/src/lib/topics/events/v1/navigated-event-payload.js +0 -2
- package/src/lib/topics/events/v1/navigated-event-type.js +0 -2
- package/src/lib/topics/events/v1/topic-event-type.js +0 -2
- package/src/lib/topics/global-error/v1/global-error.topic.js +2 -6
- package/src/lib/topics/global-error/v1/global-error.topic.js.map +1 -1
- package/src/lib/topics/global-loading/v1/global-loading.topic.js +2 -6
- package/src/lib/topics/global-loading/v1/global-loading.topic.js.map +1 -1
- package/src/lib/topics/icons/v1/icon.model.d.ts +15 -0
- package/src/lib/topics/icons/v1/icon.model.js +1 -0
- package/src/lib/topics/icons/v1/icon.model.js.map +1 -0
- package/src/lib/topics/icons/v1/icon.topic.d.ts +5 -0
- package/src/lib/topics/icons/v1/icon.topic.js +7 -0
- package/src/lib/topics/icons/v1/icon.topic.js.map +1 -0
- package/src/lib/topics/image-repository/image-repository.model.js +0 -2
- package/src/lib/topics/image-repository/image-repository.topic.js +2 -6
- package/src/lib/topics/image-repository/image-repository.topic.js.map +1 -1
- package/src/lib/topics/is-authenticated/v1/isAuthenticated.topic.js +2 -6
- package/src/lib/topics/is-authenticated/v1/isAuthenticated.topic.js.map +1 -1
- package/src/lib/topics/message/v1/message.model.js +0 -2
- package/src/lib/topics/message/v1/message.topic.js +2 -6
- package/src/lib/topics/message/v1/message.topic.js.map +1 -1
- package/src/lib/topics/notification/v1/notification.model.d.ts +21 -0
- package/src/lib/topics/notification/v1/notification.model.js +1 -0
- package/src/lib/topics/notification/v1/notification.model.js.map +1 -0
- package/src/lib/topics/notification/v1/notification.topic.d.ts +5 -0
- package/src/lib/topics/notification/v1/notification.topic.js +7 -0
- package/src/lib/topics/notification/v1/notification.topic.js.map +1 -0
- package/src/lib/topics/parameters/v1/parameters.topic.d.ts +1 -4
- package/src/lib/topics/parameters/v1/parameters.topic.js +2 -12
- package/src/lib/topics/parameters/v1/parameters.topic.js.map +1 -1
- package/src/lib/topics/permissions/v1/permissions.topic.js +2 -6
- package/src/lib/topics/permissions/v1/permissions.topic.js.map +1 -1
- package/src/lib/topics/permissions-rpc/v1/permissions-rpc.model.js +0 -2
- package/src/lib/topics/permissions-rpc/v1/permissions-rpc.topic.js +2 -6
- package/src/lib/topics/permissions-rpc/v1/permissions-rpc.topic.js.map +1 -1
- package/src/lib/topics/remote-components/v1/remote-component.model.d.ts +1 -0
- package/src/lib/topics/remote-components/v1/remote-component.model.js +2 -5
- package/src/lib/topics/remote-components/v1/remote-component.model.js.map +1 -1
- package/src/lib/topics/remote-components/v1/remote-components-info.model.js +0 -2
- package/src/lib/topics/remote-components/v1/remote-components.topic.js +2 -6
- package/src/lib/topics/remote-components/v1/remote-components.topic.js.map +1 -1
- package/src/lib/topics/remote-components/v1/slot.model.js +0 -2
- package/src/lib/topics/resized-events/v1/resized-event-type.js +2 -5
- package/src/lib/topics/resized-events/v1/resized-event-type.js.map +1 -1
- package/src/lib/topics/resized-events/v1/resized-events.topic.d.ts +1 -5
- package/src/lib/topics/resized-events/v1/resized-events.topic.js +9 -14
- package/src/lib/topics/resized-events/v1/resized-events.topic.js.map +1 -1
- package/src/lib/topics/resized-events/v1/resized-update-requested-type.js +0 -2
- package/src/lib/topics/resized-events/v1/slot-groups-resized-type.js +0 -2
- package/src/lib/topics/resized-events/v1/slots-resized-type.js +0 -2
- package/src/lib/topics/resized-events/v1/topic-resized-event-type.js +0 -2
- package/src/lib/topics/user-profile/v1/user-profile.model.js +2 -5
- package/src/lib/topics/user-profile/v1/user-profile.model.js.map +1 -1
- package/src/lib/topics/user-profile/v1/user-profile.topic.js +2 -6
- package/src/lib/topics/user-profile/v1/user-profile.topic.js.map +1 -1
- package/src/lib/utils/configuration.utils.d.ts +41 -0
- package/src/lib/utils/configuration.utils.js +52 -0
- package/src/lib/utils/configuration.utils.js.map +1 -0
- package/src/lib/utils/logger.utils.d.ts +1 -0
- package/src/lib/utils/logger.utils.js +4 -0
- package/src/lib/utils/logger.utils.js.map +1 -0
- package/src/lib/utils/parameters.utils.d.ts +14 -0
- package/src/lib/utils/parameters.utils.js +15 -0
- package/src/lib/utils/parameters.utils.js.map +1 -0
- package/src/lib/utils/portal-message.utils.d.ts +54 -0
- package/src/lib/utils/portal-message.utils.js +49 -0
- package/src/lib/utils/portal-message.utils.js.map +1 -0
- package/src/lib/utils/shell-capability.utils.d.ts +21 -0
- package/src/lib/utils/shell-capability.utils.js +30 -0
- package/src/lib/utils/shell-capability.utils.js.map +1 -0
- package/src/lib/utils/user-language.utils.d.ts +30 -0
- package/src/lib/utils/user-language.utils.js +56 -0
- package/src/lib/utils/user-language.utils.js.map +1 -0
- package/src/lib/utils/workspace.utils.d.ts +76 -0
- package/src/lib/utils/workspace.utils.js +199 -0
- package/src/lib/utils/workspace.utils.js.map +1 -0
- package/src/version.d.ts +2 -0
- package/src/version.js +3 -0
- package/src/version.js.map +1 -0
- package/migrations/index.d.ts +0 -3
- package/migrations/index.js +0 -7
- package/migrations/index.js.map +0 -1
- package/migrations/v5/warn-for-events-publisher-navigated.d.ts +0 -2
- package/migrations/v5/warn-for-events-publisher-navigated.js +0 -33
- package/migrations/v5/warn-for-events-publisher-navigated.js.map +0 -1
- package/migrations/v5/warn-for-events-topic-navigated.d.ts +0 -2
- package/migrations/v5/warn-for-events-topic-navigated.js +0 -34
- package/migrations/v5/warn-for-events-topic-navigated.js.map +0 -1
- package/migrations/v6/migrate-onecx-to-v6.d.ts +0 -2
- package/migrations/v6/migrate-onecx-to-v6.js +0 -8
- package/migrations/v6/migrate-onecx-to-v6.js.map +0 -1
- package/migrations.json +0 -46
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.ImageRepositoryTopic = void 0;
|
|
4
|
-
const accelerator_1 = require("@onecx/accelerator");
|
|
5
|
-
class ImageRepositoryTopic extends accelerator_1.Topic {
|
|
1
|
+
import { Topic } from "@onecx/accelerator";
|
|
2
|
+
export class ImageRepositoryTopic extends Topic {
|
|
6
3
|
constructor() {
|
|
7
4
|
super('imageRepository', 1);
|
|
8
5
|
}
|
|
9
6
|
}
|
|
10
|
-
exports.ImageRepositoryTopic = ImageRepositoryTopic;
|
|
11
7
|
//# sourceMappingURL=image-repository.topic.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-repository.topic.js","sourceRoot":"","sources":["../../../../../../../libs/integration-interface/src/lib/topics/image-repository/image-repository.topic.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"image-repository.topic.js","sourceRoot":"","sources":["../../../../../../../libs/integration-interface/src/lib/topics/image-repository/image-repository.topic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAG3C,MAAM,OAAO,oBAAqB,SAAQ,KAA0B;IAClE;QACE,KAAK,CAAC,iBAAiB,EAAE,CAAC,CAAC,CAAA;IAC7B,CAAC;CACF"}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.IsAuthenticatedTopic = void 0;
|
|
4
|
-
const accelerator_1 = require("@onecx/accelerator");
|
|
5
|
-
class IsAuthenticatedTopic extends accelerator_1.Topic {
|
|
1
|
+
import { Topic } from '@onecx/accelerator';
|
|
2
|
+
export class IsAuthenticatedTopic extends Topic {
|
|
6
3
|
constructor() {
|
|
7
4
|
super('isAuthenticated', 1);
|
|
8
5
|
}
|
|
9
6
|
}
|
|
10
|
-
exports.IsAuthenticatedTopic = IsAuthenticatedTopic;
|
|
11
7
|
//# sourceMappingURL=isAuthenticated.topic.js.map
|
|
@@ -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":"
|
|
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,11 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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":"
|
|
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"}
|
|
@@ -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 @@
|
|
|
1
|
+
//# 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 @@
|
|
|
1
|
+
{"version":3,"file":"notification.topic.js","sourceRoot":"","sources":["../../../../../../../../libs/integration-interface/src/lib/topics/notification/v1/notification.topic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAG1C,MAAM,OAAO,iBAAkB,SAAQ,KAAmB;IACxD;QACE,KAAK,CAAC,cAAc,EAAE,CAAC,CAAC,CAAA;IAC1B,CAAC;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Topic
|
|
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,9 +11,6 @@ export interface ApplicationParameters {
|
|
|
11
11
|
export interface ParametersTopicPayload {
|
|
12
12
|
parameters: ApplicationParameters[];
|
|
13
13
|
}
|
|
14
|
-
export declare class ParametersPublisher extends TopicPublisher<ParametersTopicPayload> {
|
|
15
|
-
constructor();
|
|
16
|
-
}
|
|
17
14
|
export declare class ParametersTopic extends Topic<ParametersTopicPayload> {
|
|
18
15
|
constructor();
|
|
19
16
|
}
|
|
@@ -1,17 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.ParametersTopic = exports.ParametersPublisher = void 0;
|
|
4
|
-
const accelerator_1 = require("@onecx/accelerator");
|
|
5
|
-
class ParametersPublisher extends accelerator_1.TopicPublisher {
|
|
1
|
+
import { Topic } from '@onecx/accelerator';
|
|
2
|
+
export class ParametersTopic extends Topic {
|
|
6
3
|
constructor() {
|
|
7
4
|
super('parameters', 1);
|
|
8
5
|
}
|
|
9
6
|
}
|
|
10
|
-
exports.ParametersPublisher = ParametersPublisher;
|
|
11
|
-
class ParametersTopic extends accelerator_1.Topic {
|
|
12
|
-
constructor() {
|
|
13
|
-
super('parameters', 1);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
exports.ParametersTopic = ParametersTopic;
|
|
17
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":"
|
|
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
|
-
|
|
2
|
-
|
|
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":"
|
|
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,11 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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":"
|
|
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
|
-
|
|
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 || (
|
|
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":"
|
|
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,11 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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":"
|
|
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,10 +1,7 @@
|
|
|
1
|
-
|
|
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 || (
|
|
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":"
|
|
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
|
|
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,10 +11,6 @@ declare global {
|
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
export declare class ResizedEventsPublisher extends TopicPublisher<TopicResizedEventType> {
|
|
15
|
-
constructor();
|
|
16
|
-
publish(event: TopicResizedEventType): Promise<void>;
|
|
17
|
-
}
|
|
18
14
|
export declare class ResizedEventsTopic extends Topic<TopicResizedEventType> {
|
|
19
15
|
constructor();
|
|
20
16
|
/**
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const accelerator_1 = require("@onecx/accelerator");
|
|
5
|
-
const resized_event_type_1 = require("./resized-event-type");
|
|
6
|
-
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 {
|
|
7
4
|
constructor() {
|
|
8
5
|
super('resizedEvents', 1);
|
|
9
6
|
}
|
|
10
7
|
//NOSONAR
|
|
11
8
|
publish(event) {
|
|
12
|
-
if (![
|
|
9
|
+
if (![ResizedEventType.SLOT_GROUP_RESIZED, ResizedEventType.SLOT_RESIZED].includes(event.type)) {
|
|
13
10
|
return super.publish(event);
|
|
14
11
|
}
|
|
15
12
|
const resizedEvent = event;
|
|
@@ -20,8 +17,7 @@ class ResizedEventsPublisher extends accelerator_1.TopicPublisher {
|
|
|
20
17
|
return Promise.resolve();
|
|
21
18
|
}
|
|
22
19
|
}
|
|
23
|
-
|
|
24
|
-
class ResizedEventsTopic extends accelerator_1.Topic {
|
|
20
|
+
export class ResizedEventsTopic extends Topic {
|
|
25
21
|
constructor() {
|
|
26
22
|
super('resizedEvents', 1, false);
|
|
27
23
|
window['@onecx/integration-interface'] ??= {};
|
|
@@ -41,7 +37,7 @@ class ResizedEventsTopic extends accelerator_1.Topic {
|
|
|
41
37
|
// Without this, the listener might have to wait until the next resize to get any data
|
|
42
38
|
// Its important that this is called after the listener is registered
|
|
43
39
|
new ResizedEventsPublisher().publish({
|
|
44
|
-
type:
|
|
40
|
+
type: ResizedEventType.REQUESTED_EVENTS_CHANGED,
|
|
45
41
|
payload: {
|
|
46
42
|
type: eventType,
|
|
47
43
|
name: entityName,
|
|
@@ -50,7 +46,7 @@ class ResizedEventsTopic extends accelerator_1.Topic {
|
|
|
50
46
|
}
|
|
51
47
|
//NOSONAR
|
|
52
48
|
publish(event) {
|
|
53
|
-
if (![
|
|
49
|
+
if (![ResizedEventType.SLOT_GROUP_RESIZED, ResizedEventType.SLOT_RESIZED].includes(event.type)) {
|
|
54
50
|
return super.publish(event);
|
|
55
51
|
}
|
|
56
52
|
const resizedEvent = event;
|
|
@@ -61,12 +57,11 @@ class ResizedEventsTopic extends accelerator_1.Topic {
|
|
|
61
57
|
return Promise.resolve();
|
|
62
58
|
}
|
|
63
59
|
}
|
|
64
|
-
exports.ResizedEventsTopic = ResizedEventsTopic;
|
|
65
60
|
function eventToEntityName(event) {
|
|
66
61
|
switch (event.type) {
|
|
67
|
-
case
|
|
62
|
+
case ResizedEventType.SLOT_RESIZED:
|
|
68
63
|
return event.payload.slotName;
|
|
69
|
-
case
|
|
64
|
+
case ResizedEventType.SLOT_GROUP_RESIZED:
|
|
70
65
|
return event.payload.slotGroupName;
|
|
71
66
|
}
|
|
72
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":"
|
|
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,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__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 || (
|
|
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":"
|
|
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
|
-
|
|
2
|
-
|
|
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":"
|
|
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,41 @@
|
|
|
1
|
+
import type { Config } from '../topics/configuration/v1/configuration.topic';
|
|
2
|
+
type LoadRemoteConfig = (url: string) => Promise<Config>;
|
|
3
|
+
type ConfigSource = 'inlined' | 'default' | 'remote';
|
|
4
|
+
interface ResolveConfigOptions {
|
|
5
|
+
defaultConfig?: Config;
|
|
6
|
+
skipRemoteConfigLoad?: boolean;
|
|
7
|
+
remoteConfigURL?: string;
|
|
8
|
+
loadRemoteConfig: LoadRemoteConfig;
|
|
9
|
+
}
|
|
10
|
+
interface ResolveConfigPayloadOptions {
|
|
11
|
+
defaultConfig?: Config;
|
|
12
|
+
skipRemoteConfigLoad?: boolean;
|
|
13
|
+
remoteConfigURL?: string;
|
|
14
|
+
loadRemoteConfig: LoadRemoteConfig;
|
|
15
|
+
}
|
|
16
|
+
interface ResolveConfigResult {
|
|
17
|
+
config: Config;
|
|
18
|
+
source: ConfigSource;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Returns configuration inlined into the global scope, when available.
|
|
22
|
+
*
|
|
23
|
+
* @returns Inlined configuration payload or undefined.
|
|
24
|
+
*/
|
|
25
|
+
declare const getInlinedConfig: () => Config | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Resolves the configuration payload, preferring inlined config and falling back to default/remote sources.
|
|
28
|
+
*
|
|
29
|
+
* @param options - Configuration resolution inputs.
|
|
30
|
+
* @returns Resolved config and the source it came from.
|
|
31
|
+
*/
|
|
32
|
+
declare const resolveConfig: ({ defaultConfig, skipRemoteConfigLoad, remoteConfigURL, loadRemoteConfig, }: ResolveConfigOptions) => Promise<ResolveConfigResult>;
|
|
33
|
+
/**
|
|
34
|
+
* Resolves configuration payload without merging defaults (callers can merge as needed).
|
|
35
|
+
*
|
|
36
|
+
* @param options - Configuration resolution inputs.
|
|
37
|
+
* @returns Resolved config payload and source.
|
|
38
|
+
*/
|
|
39
|
+
declare const resolveConfigPayload: ({ defaultConfig, skipRemoteConfigLoad, remoteConfigURL, loadRemoteConfig, }: ResolveConfigPayloadOptions) => Promise<ResolveConfigResult>;
|
|
40
|
+
export type { ConfigSource, LoadRemoteConfig, ResolveConfigOptions, ResolveConfigPayloadOptions, ResolveConfigResult };
|
|
41
|
+
export { getInlinedConfig, resolveConfig, resolveConfigPayload };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns configuration inlined into the global scope, when available.
|
|
3
|
+
*
|
|
4
|
+
* @returns Inlined configuration payload or undefined.
|
|
5
|
+
*/
|
|
6
|
+
const getInlinedConfig = () => {
|
|
7
|
+
return globalThis.APP_CONFIG;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Resolves the configuration payload, preferring inlined config and falling back to default/remote sources.
|
|
11
|
+
*
|
|
12
|
+
* @param options - Configuration resolution inputs.
|
|
13
|
+
* @returns Resolved config and the source it came from.
|
|
14
|
+
*/
|
|
15
|
+
const resolveConfig = async ({ defaultConfig = {}, skipRemoteConfigLoad, remoteConfigURL, loadRemoteConfig, }) => {
|
|
16
|
+
const inlinedConfig = getInlinedConfig();
|
|
17
|
+
if (inlinedConfig) {
|
|
18
|
+
return { config: inlinedConfig, source: 'inlined' };
|
|
19
|
+
}
|
|
20
|
+
if (skipRemoteConfigLoad) {
|
|
21
|
+
return { config: defaultConfig, source: 'default' };
|
|
22
|
+
}
|
|
23
|
+
const resolvedUrl = remoteConfigURL || 'assets/env.json';
|
|
24
|
+
const remoteConfig = await loadRemoteConfig(resolvedUrl);
|
|
25
|
+
return {
|
|
26
|
+
config: { ...defaultConfig, ...(remoteConfig ?? {}) },
|
|
27
|
+
source: 'remote',
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Resolves configuration payload without merging defaults (callers can merge as needed).
|
|
32
|
+
*
|
|
33
|
+
* @param options - Configuration resolution inputs.
|
|
34
|
+
* @returns Resolved config payload and source.
|
|
35
|
+
*/
|
|
36
|
+
const resolveConfigPayload = async ({ defaultConfig = {}, skipRemoteConfigLoad, remoteConfigURL, loadRemoteConfig, }) => {
|
|
37
|
+
const inlinedConfig = getInlinedConfig();
|
|
38
|
+
if (inlinedConfig) {
|
|
39
|
+
return { config: inlinedConfig, source: 'inlined' };
|
|
40
|
+
}
|
|
41
|
+
if (skipRemoteConfigLoad) {
|
|
42
|
+
return { config: defaultConfig, source: 'default' };
|
|
43
|
+
}
|
|
44
|
+
const resolvedUrl = remoteConfigURL || 'assets/env.json';
|
|
45
|
+
const remoteConfig = await loadRemoteConfig(resolvedUrl);
|
|
46
|
+
return {
|
|
47
|
+
config: remoteConfig ?? {},
|
|
48
|
+
source: 'remote',
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
export { getInlinedConfig, resolveConfig, resolveConfigPayload };
|
|
52
|
+
//# sourceMappingURL=configuration.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configuration.utils.js","sourceRoot":"","sources":["../../../../../../libs/integration-interface/src/lib/utils/configuration.utils.ts"],"names":[],"mappings":"AAyBA;;;;GAIG;AACH,MAAM,gBAAgB,GAAG,GAAuB,EAAE;IAChD,OAAQ,UAA0D,CAAC,UAAU,CAAA;AAC/E,CAAC,CAAA;AAED;;;;;GAKG;AACH,MAAM,aAAa,GAAG,KAAK,EAAE,EAC3B,aAAa,GAAG,EAAE,EAClB,oBAAoB,EACpB,eAAe,EACf,gBAAgB,GACK,EAAgC,EAAE;IACvD,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAAA;IACxC,IAAI,aAAa,EAAE,CAAC;QA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,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,14 @@
|
|
|
1
|
+
import type { ParametersTopicPayload } from '../topics/parameters/v1/parameters.topic';
|
|
2
|
+
type ParameterValue = boolean | number | string | object;
|
|
3
|
+
/**
|
|
4
|
+
* Finds a parameter value for the given product/app identifiers.
|
|
5
|
+
*
|
|
6
|
+
* @param payload - Parameters topic payload.
|
|
7
|
+
* @param key - Parameter key to resolve.
|
|
8
|
+
* @param productName - Product name identifier.
|
|
9
|
+
* @param appId - Application identifier.
|
|
10
|
+
* @returns Resolved parameter value or undefined.
|
|
11
|
+
*/
|
|
12
|
+
declare const findParameterValue: (payload: ParametersTopicPayload, key: string, productName: string, appId: string) => ParameterValue | undefined;
|
|
13
|
+
export { findParameterValue };
|
|
14
|
+
export type { ParameterValue };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Finds a parameter value for the given product/app identifiers.
|
|
3
|
+
*
|
|
4
|
+
* @param payload - Parameters topic payload.
|
|
5
|
+
* @param key - Parameter key to resolve.
|
|
6
|
+
* @param productName - Product name identifier.
|
|
7
|
+
* @param appId - Application identifier.
|
|
8
|
+
* @returns Resolved parameter value or undefined.
|
|
9
|
+
*/
|
|
10
|
+
const findParameterValue = (payload, key, productName, appId) => {
|
|
11
|
+
return payload.parameters.find((parameter) => parameter.productName === productName && parameter.appId === appId)
|
|
12
|
+
?.parameters[key];
|
|
13
|
+
};
|
|
14
|
+
export { findParameterValue };
|
|
15
|
+
//# sourceMappingURL=parameters.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parameters.utils.js","sourceRoot":"","sources":["../../../../../../libs/integration-interface/src/lib/utils/parameters.utils.ts"],"names":[],"mappings":"AAIA;;;;;;;;GAQG;AACH,MAAM,kBAAkB,GAAG,CACzB,OAA+B,EAC/B,GAAW,EACX,WAAmB,EACnB,KAAa,EACe,EAAE;IAC9B,OAAO,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,WAAW,KAAK,WAAW,IAAI,SAAS,CAAC,KAAK,KAAK,KAAK,CAAC;QAC/G,EAAE,UAAU,CAAC,GAAG,CAAC,CAAA;AACrB,CAAC,CAAA;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAA"}
|