@onecx/integration-interface 3.9.0 → 4.0.1

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 (31) hide show
  1. package/package.json +1 -1
  2. package/src/index.d.ts +13 -0
  3. package/src/index.js +13 -0
  4. package/src/index.js.map +1 -1
  5. package/src/lib/topics/configuration/v1/configuration.topic.d.ts +7 -0
  6. package/src/lib/topics/configuration/v1/configuration.topic.js +11 -0
  7. package/src/lib/topics/configuration/v1/configuration.topic.js.map +1 -0
  8. package/src/lib/topics/current-portal/v1/current-portal.topic.d.ts +5 -0
  9. package/src/lib/topics/current-portal/v1/current-portal.topic.js +11 -0
  10. package/src/lib/topics/current-portal/v1/current-portal.topic.js.map +1 -0
  11. package/src/lib/topics/current-portal/v1/mfe-portal-registration.model.d.ts +10 -0
  12. package/src/lib/topics/current-portal/v1/mfe-portal-registration.model.js +3 -0
  13. package/src/lib/topics/current-portal/v1/mfe-portal-registration.model.js.map +1 -0
  14. package/src/lib/topics/current-portal/v1/portal.model.d.ts +33 -0
  15. package/src/lib/topics/current-portal/v1/portal.model.js +3 -0
  16. package/src/lib/topics/current-portal/v1/portal.model.js.map +1 -0
  17. package/src/lib/topics/is-authenticated/v1/isAuthenticated.topic.d.ts +4 -0
  18. package/src/lib/topics/is-authenticated/v1/isAuthenticated.topic.js +11 -0
  19. package/src/lib/topics/is-authenticated/v1/isAuthenticated.topic.js.map +1 -0
  20. package/src/lib/topics/message/v1/message.model.d.ts +14 -0
  21. package/src/lib/topics/message/v1/message.model.js +3 -0
  22. package/src/lib/topics/message/v1/message.model.js.map +1 -0
  23. package/src/lib/topics/message/v1/message.topic.d.ts +5 -0
  24. package/src/lib/topics/message/v1/message.topic.js +11 -0
  25. package/src/lib/topics/message/v1/message.topic.js.map +1 -0
  26. package/src/lib/topics/user-profile/v1/user-profile.model.d.ts +96 -0
  27. package/src/lib/topics/user-profile/v1/user-profile.model.js +9 -0
  28. package/src/lib/topics/user-profile/v1/user-profile.model.js.map +1 -0
  29. package/src/lib/topics/user-profile/v1/user-profile.topic.d.ts +5 -0
  30. package/src/lib/topics/user-profile/v1/user-profile.topic.js +11 -0
  31. package/src/lib/topics/user-profile/v1/user-profile.topic.js.map +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onecx/integration-interface",
3
- "version": "3.9.0",
3
+ "version": "4.0.1",
4
4
  "peerDependencies": {
5
5
  "tslib": "^2.3.0",
6
6
  "rxjs": "7.8.1",
package/src/index.d.ts CHANGED
@@ -1,5 +1,18 @@
1
1
  export * from './lib/topics/current-mfe/v1/current-mfe.topic';
2
+ export * from './lib/topics/current-mfe/v1/mfe-info.model';
2
3
  export * from './lib/topics/current-page/v1/current-page.topic';
4
+ export * from './lib/topics/current-page/v1/page-info.model';
3
5
  export * from './lib/topics/global-error/v1/global-error.topic';
4
6
  export * from './lib/topics/global-loading/v1/global-loading.topic';
5
7
  export * from './lib/topics/current-theme/v1/current-theme.topic';
8
+ export * from './lib/topics/current-theme/v1/theme.model';
9
+ export * from './lib/topics/user-profile/v1/user-profile.model';
10
+ export * from './lib/topics/user-profile/v1/user-profile.topic';
11
+ export * from './lib/topics/configuration/v1/configuration.topic';
12
+ export * from './lib/topics/current-portal/v1/current-portal.topic';
13
+ export * from './lib/topics/current-portal/v1/mfe-portal-registration.model';
14
+ export * from './lib/topics/current-portal/v1/portal.model';
15
+ export * from './lib/topics/is-authenticated/v1/isAuthenticated.topic';
16
+ export * from './lib/topics/is-authenticated/v1/isAuthenticated.topic';
17
+ export * from './lib/topics/message/v1/message.model';
18
+ export * from './lib/topics/message/v1/message.topic';
package/src/index.js CHANGED
@@ -2,8 +2,21 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./lib/topics/current-mfe/v1/current-mfe.topic"), exports);
5
+ tslib_1.__exportStar(require("./lib/topics/current-mfe/v1/mfe-info.model"), exports);
5
6
  tslib_1.__exportStar(require("./lib/topics/current-page/v1/current-page.topic"), exports);
7
+ tslib_1.__exportStar(require("./lib/topics/current-page/v1/page-info.model"), exports);
6
8
  tslib_1.__exportStar(require("./lib/topics/global-error/v1/global-error.topic"), exports);
7
9
  tslib_1.__exportStar(require("./lib/topics/global-loading/v1/global-loading.topic"), exports);
8
10
  tslib_1.__exportStar(require("./lib/topics/current-theme/v1/current-theme.topic"), exports);
11
+ tslib_1.__exportStar(require("./lib/topics/current-theme/v1/theme.model"), exports);
12
+ tslib_1.__exportStar(require("./lib/topics/user-profile/v1/user-profile.model"), exports);
13
+ tslib_1.__exportStar(require("./lib/topics/user-profile/v1/user-profile.topic"), exports);
14
+ tslib_1.__exportStar(require("./lib/topics/configuration/v1/configuration.topic"), exports);
15
+ tslib_1.__exportStar(require("./lib/topics/current-portal/v1/current-portal.topic"), exports);
16
+ tslib_1.__exportStar(require("./lib/topics/current-portal/v1/mfe-portal-registration.model"), exports);
17
+ tslib_1.__exportStar(require("./lib/topics/current-portal/v1/portal.model"), exports);
18
+ tslib_1.__exportStar(require("./lib/topics/is-authenticated/v1/isAuthenticated.topic"), exports);
19
+ tslib_1.__exportStar(require("./lib/topics/is-authenticated/v1/isAuthenticated.topic"), exports);
20
+ tslib_1.__exportStar(require("./lib/topics/message/v1/message.model"), exports);
21
+ tslib_1.__exportStar(require("./lib/topics/message/v1/message.topic"), exports);
9
22
  //# 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,0FAA+D;AAC/D,0FAA+D;AAC/D,8FAAmE;AACnE,4FAAiE"}
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;AAC5D,0FAA+D;AAC/D,8FAAmE;AACnE,4FAAiE;AACjE,oFAAyD;AACzD,0FAA+D;AAC/D,0FAA+D;AAC/D,4FAAiE;AACjE,8FAAmE;AACnE,uGAA4E;AAC5E,sFAA2D;AAC3D,iGAAsE;AACtE,iGAAsE;AACtE,gFAAqD;AACrD,gFAAqD"}
@@ -0,0 +1,7 @@
1
+ import { SyncableTopic } from '@onecx/accelerator';
2
+ export interface Config {
3
+ [key: string]: string;
4
+ }
5
+ export declare class ConfigurationTopic extends SyncableTopic<Config> {
6
+ constructor();
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConfigurationTopic = void 0;
4
+ const accelerator_1 = require("@onecx/accelerator");
5
+ class ConfigurationTopic extends accelerator_1.SyncableTopic {
6
+ constructor() {
7
+ super('configuration', 1);
8
+ }
9
+ }
10
+ exports.ConfigurationTopic = ConfigurationTopic;
11
+ //# sourceMappingURL=configuration.topic.js.map
@@ -0,0 +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"}
@@ -0,0 +1,5 @@
1
+ import { SyncableTopic } from '@onecx/accelerator';
2
+ import { Portal } from './portal.model';
3
+ export declare class CurrentPortalTopic extends SyncableTopic<Portal> {
4
+ constructor();
5
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CurrentPortalTopic = void 0;
4
+ const accelerator_1 = require("@onecx/accelerator");
5
+ class CurrentPortalTopic extends accelerator_1.SyncableTopic {
6
+ constructor() {
7
+ super('currentPortal', 1);
8
+ }
9
+ }
10
+ exports.CurrentPortalTopic = CurrentPortalTopic;
11
+ //# sourceMappingURL=current-portal.topic.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"current-portal.topic.js","sourceRoot":"","sources":["../../../../../../../../libs/integration-interface/src/lib/topics/current-portal/v1/current-portal.topic.ts"],"names":[],"mappings":";;;AAAA,oDAAkD;AAGlD,MAAa,kBAAmB,SAAQ,2BAAqB;IAC3D;QACE,KAAK,CAAC,eAAe,EAAE,CAAC,CAAC,CAAA;IAC3B,CAAC;CACF;AAJD,gDAIC"}
@@ -0,0 +1,10 @@
1
+ export interface MicrofrontendRegistration {
2
+ creationDate?: string;
3
+ creationUser?: string;
4
+ modificationDate?: string;
5
+ modificationUser?: string;
6
+ id?: string;
7
+ appId?: string;
8
+ mfeId: string;
9
+ baseUrl: string;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=mfe-portal-registration.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mfe-portal-registration.model.js","sourceRoot":"","sources":["../../../../../../../../libs/integration-interface/src/lib/topics/current-portal/v1/mfe-portal-registration.model.ts"],"names":[],"mappings":""}
@@ -0,0 +1,33 @@
1
+ import { MicrofrontendRegistration } from './mfe-portal-registration.model';
2
+ export interface Portal {
3
+ id?: string;
4
+ portalName: string;
5
+ description?: string;
6
+ themeId?: string;
7
+ themeName?: string;
8
+ footerLabel?: string;
9
+ homePage?: string;
10
+ baseUrl: string;
11
+ companyName?: string;
12
+ portalRoles?: string[];
13
+ imageUrls?: string[];
14
+ address?: {
15
+ city?: string;
16
+ country?: string;
17
+ postalCode?: string;
18
+ street?: string;
19
+ streetNo?: string;
20
+ };
21
+ phoneNumber?: string;
22
+ rssFeedUrl?: string;
23
+ subjectLinks?: [
24
+ {
25
+ label?: string;
26
+ url?: string;
27
+ }
28
+ ];
29
+ microfrontendRegistrations: Array<MicrofrontendRegistration>;
30
+ logoUrl?: string;
31
+ userUploaded?: boolean;
32
+ logoSmallImageUrl?: string;
33
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=portal.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"portal.model.js","sourceRoot":"","sources":["../../../../../../../../libs/integration-interface/src/lib/topics/current-portal/v1/portal.model.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { Topic } from '@onecx/accelerator';
2
+ export declare class IsAuthenticatedTopic extends Topic<void> {
3
+ constructor();
4
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IsAuthenticatedTopic = void 0;
4
+ const accelerator_1 = require("@onecx/accelerator");
5
+ class IsAuthenticatedTopic extends accelerator_1.Topic {
6
+ constructor() {
7
+ super('isAuthenticated', 1);
8
+ }
9
+ }
10
+ exports.IsAuthenticatedTopic = IsAuthenticatedTopic;
11
+ //# sourceMappingURL=isAuthenticated.topic.js.map
@@ -0,0 +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"}
@@ -0,0 +1,14 @@
1
+ export interface Message {
2
+ severity?: string;
3
+ summary?: string;
4
+ detail?: string;
5
+ id?: any;
6
+ key?: string;
7
+ life?: number;
8
+ sticky?: boolean;
9
+ closable?: boolean;
10
+ data?: any;
11
+ icon?: string;
12
+ contentStyleClass?: string;
13
+ styleClass?: string;
14
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=message.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message.model.js","sourceRoot":"","sources":["../../../../../../../../libs/integration-interface/src/lib/topics/message/v1/message.model.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { Topic } from '@onecx/accelerator';
2
+ import { Message } from './message.model';
3
+ export declare class MessageTopic extends Topic<Message> {
4
+ constructor();
5
+ }
@@ -0,0 +1,11 @@
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 {
6
+ constructor() {
7
+ super('message', 1);
8
+ }
9
+ }
10
+ exports.MessageTopic = MessageTopic;
11
+ //# sourceMappingURL=message.topic.js.map
@@ -0,0 +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"}
@@ -0,0 +1,96 @@
1
+ export interface UserProfile {
2
+ id?: string;
3
+ userId: string;
4
+ identityProvider?: string;
5
+ /**
6
+ * user id in external identity provider, e.g. in keycloak
7
+ */
8
+ identityProviderId?: string;
9
+ organization?: string;
10
+ tenantId?: string;
11
+ tenantName?: string;
12
+ person: UserPerson;
13
+ avatar?: AvatarInfo;
14
+ accountSettings?: UserProfileAccountSettings;
15
+ memberships?: Array<Membership>;
16
+ }
17
+ export interface UserProfileAccountSettings {
18
+ privacySettings?: UserProfileAccountSettingsPrivacySettings;
19
+ notificationSettings?: UserProfileAccountSettingsNotificationSettings;
20
+ localeAndTimeSettings?: UserProfileAccountSettingsLocaleAndTimeSettings;
21
+ layoutAndThemeSettings?: UserProfileAccountSettingsLayoutAndThemeSettings;
22
+ }
23
+ export interface UserProfileAccountSettingsLocaleAndTimeSettings {
24
+ locale?: string;
25
+ timezone?: string;
26
+ }
27
+ export interface UserProfileAccountSettingsNotificationSettings {
28
+ todo?: string;
29
+ }
30
+ export interface UserProfilePreference {
31
+ id?: string;
32
+ applicationId?: string;
33
+ name?: string;
34
+ description?: string;
35
+ value?: string;
36
+ }
37
+ export interface UserProfileAccountSettingsPrivacySettings {
38
+ hideMyProfile?: string;
39
+ }
40
+ export interface UserProfileAccountSettingsLayoutAndThemeSettings {
41
+ menuMode?: 'HORIZONTAL' | 'STATIC' | 'OVERLAY' | 'SLIM' | 'SLIMPLUS';
42
+ colorScheme?: 'AUTO' | 'LIGHT' | 'DARK';
43
+ }
44
+ export interface Membership {
45
+ application?: string;
46
+ roleMemberships?: Array<MembershipRoles>;
47
+ }
48
+ export interface PersonDTO {
49
+ persisted?: boolean;
50
+ id?: string;
51
+ version?: number;
52
+ firstName?: string;
53
+ lastName?: string;
54
+ email?: string;
55
+ jobPosition?: string;
56
+ groupId?: string;
57
+ }
58
+ export interface MembershipRoles {
59
+ role?: string;
60
+ permissions?: Array<Permission>;
61
+ }
62
+ export interface AvatarInfo {
63
+ userUploaded?: boolean;
64
+ lastUpdateTime?: Date;
65
+ imageUrl?: string;
66
+ smallImageUrl?: string;
67
+ }
68
+ export interface Permission {
69
+ resource?: string;
70
+ action?: string;
71
+ key?: string;
72
+ name?: string;
73
+ }
74
+ export interface UserPerson {
75
+ firstName?: string;
76
+ lastName?: string;
77
+ displayName?: string;
78
+ email?: string;
79
+ address?: UserPersonAddress;
80
+ phone?: UserPersonPhone;
81
+ }
82
+ export interface UserPersonAddress {
83
+ street?: string;
84
+ streetNo?: string;
85
+ city?: string;
86
+ postalCode?: string;
87
+ country?: string;
88
+ }
89
+ export interface UserPersonPhone {
90
+ type?: PhoneType;
91
+ number?: string;
92
+ }
93
+ export declare enum PhoneType {
94
+ MOBILE = "MOBILE",
95
+ LANDLINE = "LANDLINE"
96
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PhoneType = void 0;
4
+ var PhoneType;
5
+ (function (PhoneType) {
6
+ PhoneType["MOBILE"] = "MOBILE";
7
+ PhoneType["LANDLINE"] = "LANDLINE";
8
+ })(PhoneType = exports.PhoneType || (exports.PhoneType = {}));
9
+ //# sourceMappingURL=user-profile.model.js.map
@@ -0,0 +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,GAAT,iBAAS,KAAT,iBAAS,QAGpB"}
@@ -0,0 +1,5 @@
1
+ import { Topic } from '@onecx/accelerator';
2
+ import { UserProfile } from './user-profile.model';
3
+ export declare class UserProfileTopic extends Topic<UserProfile> {
4
+ constructor();
5
+ }
@@ -0,0 +1,11 @@
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 {
6
+ constructor() {
7
+ super('userProfile', 1);
8
+ }
9
+ }
10
+ exports.UserProfileTopic = UserProfileTopic;
11
+ //# sourceMappingURL=user-profile.topic.js.map
@@ -0,0 +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"}