@acorex-platform/module-auth-client 0.0.18 → 0.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/{acorex-platform-module-auth-client-acorex-platform-module-auth-client-mW7tx8C0.mjs → acorex-platform-module-auth-client-acorex-platform-module-auth-client-CYmUn-lw.mjs} +940 -608
- package/fesm2022/acorex-platform-module-auth-client-acorex-platform-module-auth-client-CYmUn-lw.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-app-chooser.component-BVbu-f8h.mjs +75 -0
- package/fesm2022/acorex-platform-module-auth-client-app-chooser.component-BVbu-f8h.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-blank.layout-BRGgntib.mjs → acorex-platform-module-auth-client-blank.layout-BCXNPgrp.mjs} +6 -6
- package/fesm2022/acorex-platform-module-auth-client-blank.layout-BCXNPgrp.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-change-password.command-O8Mgxoqj.mjs → acorex-platform-module-auth-client-change-password.command-DIM_d7RO.mjs} +51 -41
- package/fesm2022/acorex-platform-module-auth-client-change-password.command-DIM_d7RO.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-change-photo.command-CYGqrJV0.mjs +257 -0
- package/fesm2022/acorex-platform-module-auth-client-change-photo.command-CYGqrJV0.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-contracts.mjs +46 -10
- package/fesm2022/acorex-platform-module-auth-client-contracts.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-edit-account-info.command-B-mVlXxg.mjs → acorex-platform-module-auth-client-edit-account-info.command-CD9IrimO.mjs} +5 -5
- package/fesm2022/acorex-platform-module-auth-client-edit-account-info.command-CD9IrimO.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-edit-signature.command-CcTJJwAX.mjs → acorex-platform-module-auth-client-edit-signature.command-TjOLhvKL.mjs} +5 -5
- package/fesm2022/acorex-platform-module-auth-client-edit-signature.command-TjOLhvKL.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-get-user-activity.query-BTpibxe9.mjs +80 -0
- package/fesm2022/acorex-platform-module-auth-client-get-user-activity.query-BTpibxe9.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-lock-screen.command-PMoJJxe7.mjs → acorex-platform-module-auth-client-lock-screen.command-Br9O4b5c.mjs} +6 -6
- package/fesm2022/acorex-platform-module-auth-client-lock-screen.command-Br9O4b5c.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-login.module-C4S0RjM7.mjs → acorex-platform-module-auth-client-login.module-DJVL3bAF.mjs} +8 -21
- package/fesm2022/acorex-platform-module-auth-client-login.module-DJVL3bAF.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-master.layout-DZUYm22p.mjs +39 -0
- package/fesm2022/acorex-platform-module-auth-client-master.layout-DZUYm22p.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-oauth-callback.component-CEMvfjj4.mjs → acorex-platform-module-auth-client-oauth-callback.component-DnQzPUxF.mjs} +11 -15
- package/fesm2022/acorex-platform-module-auth-client-oauth-callback.component-DnQzPUxF.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-open-sessions.command-LZKM9fgo.mjs +200 -0
- package/fesm2022/acorex-platform-module-auth-client-open-sessions.command-LZKM9fgo.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-password.component-CIr6IBG6.mjs → acorex-platform-module-auth-client-password.component-CNKRWfuG.mjs} +86 -45
- package/fesm2022/acorex-platform-module-auth-client-password.component-CNKRWfuG.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-password.component-CW0t9fEn.mjs +87 -0
- package/fesm2022/acorex-platform-module-auth-client-password.component-CW0t9fEn.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-platform-settings-unavailable.component-BEVkQ3jh.mjs +47 -0
- package/fesm2022/acorex-platform-module-auth-client-platform-settings-unavailable.component-BEVkQ3jh.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-profile-activity-chart.component-DTY1eEI_.mjs → acorex-platform-module-auth-client-profile-activity-chart.component-CtSrYARX.mjs} +38 -46
- package/fesm2022/acorex-platform-module-auth-client-profile-activity-chart.component-CtSrYARX.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-profile-coming-soon.command-DBbFbzAx.mjs → acorex-platform-module-auth-client-profile-coming-soon.command-Crh2GsRA.mjs} +5 -5
- package/fesm2022/acorex-platform-module-auth-client-profile-coming-soon.command-Crh2GsRA.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-C6u3AB4N.mjs → acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-D0QS8joQ.mjs} +18 -13
- package/fesm2022/{acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-C6u3AB4N.mjs.map → acorex-platform-module-auth-client-profile-delete-account-danger-zone.component-D0QS8joQ.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-auth-client-profile-page-component.provider-Dhmzo4ME.mjs → acorex-platform-module-auth-client-profile-page-component.provider-6lNx6bKI.mjs} +7 -7
- package/fesm2022/{acorex-platform-module-auth-client-profile-page-component.provider-Dhmzo4ME.mjs.map → acorex-platform-module-auth-client-profile-page-component.provider-6lNx6bKI.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-auth-client-profile-page.component-CdxseoJX.mjs +650 -0
- package/fesm2022/acorex-platform-module-auth-client-profile-page.component-CdxseoJX.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-register-password.component-ia6tdvTc.mjs → acorex-platform-module-auth-client-register-password.component-D-tBrCJv.mjs} +15 -14
- package/fesm2022/acorex-platform-module-auth-client-register-password.component-D-tBrCJv.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-register.module--DG9m8iC.mjs → acorex-platform-module-auth-client-register.module-BrXqva0B.mjs} +23 -23
- package/fesm2022/acorex-platform-module-auth-client-register.module-BrXqva0B.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-remove-pin-code.command-qtswigkv.mjs → acorex-platform-module-auth-client-remove-pin-code.command-uK04-h15.mjs} +7 -7
- package/fesm2022/acorex-platform-module-auth-client-remove-pin-code.command-uK04-h15.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-reset-password.component-CcwDb6Wb.mjs +115 -0
- package/fesm2022/acorex-platform-module-auth-client-reset-password.component-CcwDb6Wb.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-result.component-DYJaB-FD.mjs → acorex-platform-module-auth-client-result.component-DWv1hmQR.mjs} +6 -6
- package/fesm2022/acorex-platform-module-auth-client-result.component-DWv1hmQR.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-routes-DVN2Y2Ps.mjs → acorex-platform-module-auth-client-routes-IX2qmeqU.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-auth-client-routes-DVN2Y2Ps.mjs.map → acorex-platform-module-auth-client-routes-IX2qmeqU.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-auth-client-session-lock-overlay.component-BhsTAmVe.mjs +361 -0
- package/fesm2022/acorex-platform-module-auth-client-session-lock-overlay.component-BhsTAmVe.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-set-pin-code.command-BJT7F-xz.mjs +116 -0
- package/fesm2022/acorex-platform-module-auth-client-set-pin-code.command-BJT7F-xz.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-set-pin-code.component-BHVqbYFv.mjs → acorex-platform-module-auth-client-set-pin-code.component-Cq4skm_3.mjs} +29 -20
- package/fesm2022/acorex-platform-module-auth-client-set-pin-code.component-Cq4skm_3.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-settings.provider-n1qbs6e1.mjs → acorex-platform-module-auth-client-settings.provider-Yaoz8yp3.mjs} +139 -11
- package/fesm2022/acorex-platform-module-auth-client-settings.provider-Yaoz8yp3.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-show-profile-command-CxMz1yy-.mjs → acorex-platform-module-auth-client-show-profile-command-BWoDxIdx.mjs} +5 -6
- package/fesm2022/acorex-platform-module-auth-client-show-profile-command-BWoDxIdx.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-signout-command-DqqrP5pk.mjs → acorex-platform-module-auth-client-signout-command-B7n_Fn4P.mjs} +5 -5
- package/fesm2022/acorex-platform-module-auth-client-signout-command-B7n_Fn4P.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-tenant-chooser.component-CHmg7D5H.mjs +67 -0
- package/fesm2022/acorex-platform-module-auth-client-tenant-chooser.component-CHmg7D5H.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client-two-factor-code.component-nsB4v25Z.mjs +40 -0
- package/fesm2022/acorex-platform-module-auth-client-two-factor-code.component-nsB4v25Z.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-two-factor.module-FAqKbmBb.mjs → acorex-platform-module-auth-client-two-factor.module-_jYo6xXr.mjs} +8 -11
- package/fesm2022/acorex-platform-module-auth-client-two-factor.module-_jYo6xXr.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-auth-client-view-login-history.command-B42BHIAL.mjs → acorex-platform-module-auth-client-view-login-history.command-ovj5rdHL.mjs} +13 -11
- package/fesm2022/acorex-platform-module-auth-client-view-login-history.command-ovj5rdHL.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-auth-client.mjs +1 -1
- package/package.json +1 -1
- package/types/acorex-platform-module-auth-client-contracts.d.ts +43 -9
- package/types/acorex-platform-module-auth-client.d.ts +63 -56
- package/fesm2022/acorex-platform-module-auth-client-acorex-platform-module-auth-client-mW7tx8C0.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-app-chooser.component-IPLp1kVv.mjs +0 -67
- package/fesm2022/acorex-platform-module-auth-client-app-chooser.component-IPLp1kVv.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-blank.layout-BRGgntib.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-change-password.command-O8Mgxoqj.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-change-photo.command-BcNq9mTU.mjs +0 -192
- package/fesm2022/acorex-platform-module-auth-client-change-photo.command-BcNq9mTU.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-edit-account-info.command-B-mVlXxg.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-edit-signature.command-CcTJJwAX.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-lock-screen.command-PMoJJxe7.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-login.module-C4S0RjM7.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-master.layout-DXwb5VSr.mjs +0 -24
- package/fesm2022/acorex-platform-module-auth-client-master.layout-DXwb5VSr.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-oauth-callback.component-CEMvfjj4.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-open-sessions.command-BsS9b6Xk.mjs +0 -196
- package/fesm2022/acorex-platform-module-auth-client-open-sessions.command-BsS9b6Xk.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-password.component-CIr6IBG6.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-password.component-DnFItGdA.mjs +0 -88
- package/fesm2022/acorex-platform-module-auth-client-password.component-DnFItGdA.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-profile-activity-chart.component-DTY1eEI_.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-profile-coming-soon.command-DBbFbzAx.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-profile-page.component-CJ9AA3ZN.mjs +0 -446
- package/fesm2022/acorex-platform-module-auth-client-profile-page.component-CJ9AA3ZN.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-register-password.component-ia6tdvTc.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-register.module--DG9m8iC.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-remove-pin-code.command-qtswigkv.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-reset-password.component-CTlrt_18.mjs +0 -115
- package/fesm2022/acorex-platform-module-auth-client-reset-password.component-CTlrt_18.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-result.component-DYJaB-FD.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-session-lock-overlay.component-CN1JqPBW.mjs +0 -346
- package/fesm2022/acorex-platform-module-auth-client-session-lock-overlay.component-CN1JqPBW.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-set-pin-code.command-mBEdso1T.mjs +0 -33
- package/fesm2022/acorex-platform-module-auth-client-set-pin-code.command-mBEdso1T.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-set-pin-code.component-BHVqbYFv.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-settings.provider-n1qbs6e1.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-show-profile-command-CxMz1yy-.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-signout-command-DqqrP5pk.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-tenant-chooser.component-B_9s4F36.mjs +0 -59
- package/fesm2022/acorex-platform-module-auth-client-tenant-chooser.component-B_9s4F36.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-two-factor-code.component-DAxlYlhM.mjs +0 -40
- package/fesm2022/acorex-platform-module-auth-client-two-factor-code.component-DAxlYlhM.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-two-factor.module-FAqKbmBb.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-auth-client-view-login-history.command-B42BHIAL.mjs.map +0 -1
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import { AXPMultiLanguageString, AXPActionMenuItem } from '@acorex-platform/framework-shared/core';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { InjectionToken } from '@angular/core';
|
|
4
|
-
import * as _acorex_platform_framework_client_core from '@acorex-platform/framework-client/core';
|
|
5
|
-
import { AXPDataSourceDefinitionProvider, AXPDataSourceDefinition } from '@acorex-platform/framework-client/core';
|
|
6
|
-
import * as _acorex_platform_module_auth_client from '@acorex-platform/module-auth-client';
|
|
7
4
|
import { AXMSecurityManagementDeviceSessionsEntityModel } from '@acorex-platform/module-security-management-client/contracts';
|
|
8
5
|
import { AXDataSourceFilterOption } from '@acorex/cdk/common';
|
|
9
|
-
import * as i2 from '@acorex-platform/framework-client/common';
|
|
6
|
+
import * as i2$1 from '@acorex-platform/framework-client/common';
|
|
10
7
|
import { AXPErrorHandler } from '@acorex-platform/framework-client/common';
|
|
11
|
-
import { AuthConfig } from 'angular-oauth2-oidc';
|
|
12
8
|
import * as i1 from '@angular/router';
|
|
13
9
|
import { CanActivateFn } from '@angular/router';
|
|
14
10
|
import * as i1$2 from '@angular/common';
|
|
11
|
+
import * as i2 from '@acorex-platform/framework-client/core';
|
|
15
12
|
import * as i1$1 from '@acorex/core/validation';
|
|
16
13
|
|
|
17
14
|
declare const PROFILE_PAGE_GROUPS_HOOK = "profile-page.groups";
|
|
@@ -22,6 +19,8 @@ type AXPUserProfileGroupsPayload = {
|
|
|
22
19
|
};
|
|
23
20
|
type AXPUserProfileSectionsPayload = {
|
|
24
21
|
sections: AXPUserProfileSection[];
|
|
22
|
+
/** When set, hooks should only contribute or enrich this tab group. */
|
|
23
|
+
groupId?: string;
|
|
25
24
|
};
|
|
26
25
|
type AXPUserProfileHeaderMetaPayload = {
|
|
27
26
|
items: AXPUserProfileHeaderMetaItem[];
|
|
@@ -96,6 +95,8 @@ interface AXPUserProfileSectionInsight {
|
|
|
96
95
|
icon?: string;
|
|
97
96
|
/** Plain line shown when no date is set. */
|
|
98
97
|
text?: string;
|
|
98
|
+
/** Field label shown as tooltip on the insight badge. */
|
|
99
|
+
title?: AXPMultiLanguageString;
|
|
99
100
|
/** Date value formatted in the template when valid. */
|
|
100
101
|
date?: Date;
|
|
101
102
|
/** Optional prefix shown before a formatted relative date. */
|
|
@@ -113,30 +114,23 @@ interface AXPUserProfileHeaderMetaItem {
|
|
|
113
114
|
declare function resolveUserProfileSectionContent(section: AXPUserProfileSection): AXPUserProfileSectionContent;
|
|
114
115
|
/** Whether the group renders a full-tab component instead of sections. */
|
|
115
116
|
declare function isUserProfileGroupComponent(group: AXPUserProfileGroup): boolean;
|
|
117
|
+
/** True when section hooks should run for `groupId` (all groups when the payload omits it). */
|
|
118
|
+
declare function isUserProfileSectionsGroupRequested(payload: AXPUserProfileSectionsPayload, groupId: string): boolean;
|
|
116
119
|
/** Visible actions on a section card. */
|
|
117
120
|
declare function visibleUserProfileSectionActions(actions: AXPUserProfileSectionAction[]): AXPUserProfileSectionAction[];
|
|
118
121
|
/** Default card action: explicit `default`, otherwise the first visible action. */
|
|
119
122
|
declare function resolveDefaultUserProfileSectionAction(actions: AXPUserProfileSectionAction[]): AXPUserProfileSectionAction | undefined;
|
|
120
123
|
|
|
121
|
-
type AXPUserAvatarStorageTarget = {
|
|
122
|
-
kind: 'person';
|
|
123
|
-
personId: string;
|
|
124
|
-
userId: string;
|
|
125
|
-
} | {
|
|
126
|
-
kind: 'user';
|
|
127
|
-
userId: string;
|
|
128
|
-
};
|
|
129
124
|
/**
|
|
130
125
|
* Client-side profile photo operations for self-service flows.
|
|
131
|
-
*
|
|
126
|
+
* Canonical store is SecurityManagement.User.avatar; Person.image is mirrored
|
|
127
|
+
* on the server by HCM avatar sync middleware.
|
|
132
128
|
*/
|
|
133
129
|
declare class AXPUserAvatarSyncService {
|
|
134
130
|
private readonly entityService;
|
|
135
131
|
private readonly fileStorage;
|
|
136
132
|
private readonly sessionService;
|
|
137
|
-
private readonly identityService;
|
|
138
133
|
private readonly userAvatarService;
|
|
139
|
-
resolveStorageTarget(userId: string): Promise<AXPUserAvatarStorageTarget>;
|
|
140
134
|
getCurrentAvatarRef(userId: string): Promise<string | null>;
|
|
141
135
|
getCurrentAvatarBlob(userId: string): Promise<Blob | null>;
|
|
142
136
|
uploadAndSetAvatar(userId: string, file: File): Promise<string>;
|
|
@@ -144,22 +138,11 @@ declare class AXPUserAvatarSyncService {
|
|
|
144
138
|
/** Keeps session, avatar cache, and shell avatars in sync after any avatar change. */
|
|
145
139
|
notifyAvatarChanged(userId: string, avatar: string | null): Promise<void>;
|
|
146
140
|
private refreshClientDisplay;
|
|
147
|
-
private personData;
|
|
148
141
|
private userData;
|
|
149
|
-
private findPersonByUserId;
|
|
150
|
-
private safeRemoveFile;
|
|
151
142
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPUserAvatarSyncService, never>;
|
|
152
143
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXPUserAvatarSyncService>;
|
|
153
144
|
}
|
|
154
145
|
|
|
155
|
-
/**
|
|
156
|
-
* Registers auth module data source definitions.
|
|
157
|
-
*/
|
|
158
|
-
declare class AXMAuthDataSourceProvider implements AXPDataSourceDefinitionProvider {
|
|
159
|
-
private readonly userActivity;
|
|
160
|
-
items(): Promise<_acorex_platform_framework_client_core.AXPDataSourceDefinition<_acorex_platform_module_auth_client.AXPUserActivityDataSourceItem>[]>;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
146
|
type AXPUserActivityLevel = 0 | 1 | 2 | 3 | 4;
|
|
164
147
|
interface AXPUserActivityDay {
|
|
165
148
|
date: string;
|
|
@@ -175,7 +158,7 @@ interface AXPUserActivityStats {
|
|
|
175
158
|
avgPerWeek: number;
|
|
176
159
|
total: number;
|
|
177
160
|
}
|
|
178
|
-
/** Single payload row returned by
|
|
161
|
+
/** Single payload row returned by Auth:GetUserActivity. */
|
|
179
162
|
interface AXPUserActivityDataSourceItem {
|
|
180
163
|
id: string;
|
|
181
164
|
userId: string;
|
|
@@ -207,13 +190,6 @@ declare function extractUserActivityUserId(filter: AXDataSourceFilterOption | un
|
|
|
207
190
|
declare function extractUserActivityStartDate(filter: AXDataSourceFilterOption | undefined): Date | undefined;
|
|
208
191
|
declare function extractUserActivityEndDate(filter: AXDataSourceFilterOption | undefined): Date | undefined;
|
|
209
192
|
|
|
210
|
-
/** Contribution-style user activity heatmap derived from device session sign-in dates. */
|
|
211
|
-
declare class AXMUserActivityDataSourceDefinition implements AXPDataSourceDefinitionProvider {
|
|
212
|
-
private readonly entityService;
|
|
213
|
-
items(): Promise<AXPDataSourceDefinition<AXPUserActivityDataSourceItem>[]>;
|
|
214
|
-
private loadUserSessions;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
193
|
declare class AXMAuthErrorHandler implements AXPErrorHandler {
|
|
218
194
|
private router;
|
|
219
195
|
private layoutService;
|
|
@@ -230,26 +206,28 @@ declare enum AXMAuthenticationTypes {
|
|
|
230
206
|
EmailCode = 4,
|
|
231
207
|
MobileCode = 5
|
|
232
208
|
}
|
|
233
|
-
|
|
209
|
+
/** Map persisted credential-type setting values to {@link AXMAuthenticationTypes}. */
|
|
210
|
+
declare function parseAuthCredentialType(value: unknown): AXMAuthenticationTypes;
|
|
211
|
+
/** Optional deploy-time OAuth client overrides (defaults live in platform auth strategies). */
|
|
212
|
+
interface AXMAuthClientConfig {
|
|
213
|
+
clientId?: string;
|
|
214
|
+
client_id?: string;
|
|
215
|
+
redirectUri?: string;
|
|
216
|
+
scope?: string;
|
|
217
|
+
issuer?: string;
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Compile-time / environment auth wiring only.
|
|
221
|
+
* Sign-in page branding, sign-up policy, credential type, and default strategy
|
|
222
|
+
* come from platform (P) settings — not this token.
|
|
223
|
+
*/
|
|
234
224
|
interface AXMAuthConfigs {
|
|
235
|
-
|
|
236
|
-
authConfig?: AuthConfig;
|
|
225
|
+
authConfig?: AXMAuthClientConfig;
|
|
237
226
|
baseUrl?: string;
|
|
238
|
-
end_url?: string;
|
|
239
|
-
signup?: {
|
|
240
|
-
enable: boolean;
|
|
241
|
-
url?: string;
|
|
242
|
-
};
|
|
243
|
-
signinPage?: {
|
|
244
|
-
description: string;
|
|
245
|
-
slogan: string;
|
|
246
|
-
};
|
|
247
|
-
defaultStrategyName?: string;
|
|
248
|
-
idleTimeout?: number;
|
|
249
227
|
}
|
|
228
|
+
declare const AXM_AUTH_CONFIG_TOKEN: InjectionToken<AXMAuthConfigs>;
|
|
250
229
|
declare const AXMDefaultAuthConfigs: AXMAuthConfigs;
|
|
251
230
|
declare function configAuthModule(config?: Partial<AXMAuthConfigs>): AXMAuthConfigs;
|
|
252
|
-
|
|
253
231
|
/**
|
|
254
232
|
* Injection token for login page guard.
|
|
255
233
|
* Apps can provide their own custom guard by providing this token.
|
|
@@ -257,9 +235,26 @@ declare function configAuthModule(config?: Partial<AXMAuthConfigs>): AXMAuthConf
|
|
|
257
235
|
*/
|
|
258
236
|
declare const AXM_LOGIN_GUARD_TOKEN: InjectionToken<CanActivateFn>;
|
|
259
237
|
|
|
238
|
+
/**
|
|
239
|
+
* Reads public platform auth UI settings loaded during app startup.
|
|
240
|
+
* Slogan and description are multi-language strings.
|
|
241
|
+
*/
|
|
242
|
+
declare class AXMAuthPlatformSettingsService {
|
|
243
|
+
private readonly settings;
|
|
244
|
+
slogan(): AXPMultiLanguageString;
|
|
245
|
+
description(): AXPMultiLanguageString;
|
|
246
|
+
signupEnabled(): boolean;
|
|
247
|
+
signupUrl(): string;
|
|
248
|
+
credentialType(): AXMAuthenticationTypes;
|
|
249
|
+
defaultStrategyName(): string;
|
|
250
|
+
private readMls;
|
|
251
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXMAuthPlatformSettingsService, never>;
|
|
252
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXMAuthPlatformSettingsService>;
|
|
253
|
+
}
|
|
254
|
+
|
|
260
255
|
declare class AXPAccountModule {
|
|
261
256
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPAccountModule, never>;
|
|
262
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AXPAccountModule, never, [typeof i1.RouterModule, typeof
|
|
257
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXPAccountModule, never, [typeof i1.RouterModule, typeof i2.AXPComponentSlotModule], never>;
|
|
263
258
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXPAccountModule>;
|
|
264
259
|
}
|
|
265
260
|
|
|
@@ -272,13 +267,15 @@ declare class AXMAuthValidationRulesModule {
|
|
|
272
267
|
declare class AXMAuthModule {
|
|
273
268
|
constructor();
|
|
274
269
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXMAuthModule, never>;
|
|
275
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AXMAuthModule, never, [typeof i1$2.CommonModule, typeof i2.AXPCommonModule, typeof i1.RouterModule, typeof AXPAccountModule, typeof AXMAuthValidationRulesModule], never>;
|
|
270
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXMAuthModule, never, [typeof i1$2.CommonModule, typeof i2$1.AXPCommonModule, typeof i1.RouterModule, typeof AXPAccountModule, typeof AXMAuthValidationRulesModule], never>;
|
|
276
271
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXMAuthModule>;
|
|
277
272
|
}
|
|
278
273
|
|
|
279
274
|
/**
|
|
280
|
-
*
|
|
281
|
-
*
|
|
275
|
+
* Login page guard.
|
|
276
|
+
* If the user already has a cookie session but has not finished tenant/app binding,
|
|
277
|
+
* send them to the chooser — never destroy the session.
|
|
278
|
+
* If the session is fully bound, send them home (do not show login again).
|
|
282
279
|
*/
|
|
283
280
|
declare const canActivateLogin: CanActivateFn;
|
|
284
281
|
|
|
@@ -311,6 +308,7 @@ declare class AXPIdleLockService {
|
|
|
311
308
|
private overlayRef;
|
|
312
309
|
private overlayOpening;
|
|
313
310
|
private enableTask;
|
|
311
|
+
private pendingLockScreenOffer;
|
|
314
312
|
private readonly sessionService;
|
|
315
313
|
private readonly settingsService;
|
|
316
314
|
private readonly entityService;
|
|
@@ -325,13 +323,22 @@ declare class AXPIdleLockService {
|
|
|
325
323
|
unlock(): void;
|
|
326
324
|
/** Locks the session overlay when Lock When Idle is enabled. */
|
|
327
325
|
lockScreen(): void;
|
|
326
|
+
/** Marks that PIN setup succeeded so the caller can offer lock-screen activation. */
|
|
327
|
+
requestLockScreenOffer(): void;
|
|
328
|
+
/** Returns whether PIN setup requested a lock-screen offer, then clears the flag. */
|
|
329
|
+
consumeLockScreenOffer(): boolean;
|
|
328
330
|
refreshPinState(): Promise<void>;
|
|
331
|
+
/** Refreshes lock-when-idle settings only (no User entity fetch). Used by profile menu hooks. */
|
|
332
|
+
refreshLockMenuState(): Promise<void>;
|
|
329
333
|
/** Refreshes lock settings and PIN state for menu/commands. */
|
|
330
334
|
refreshLockState(): Promise<void>;
|
|
331
335
|
/** Restores the lock overlay when the persisted session is locked. */
|
|
332
336
|
restoreFromPersistedSession(): Promise<void>;
|
|
333
337
|
/** Re-evaluates idle lock after the user sets or changes their security PIN. */
|
|
334
338
|
notifyPinChanged(): Promise<void>;
|
|
339
|
+
/** PIN/password entity reads require a fully authorized app context, except when restoring a lock overlay. */
|
|
340
|
+
private canLoadUserSecurityFields;
|
|
341
|
+
private ensurePinStateLoaded;
|
|
335
342
|
private scheduleEnable;
|
|
336
343
|
private runEnable;
|
|
337
344
|
/** Idle lock is active when enabled, or when a persisted lock must be restored/unlocked. */
|
|
@@ -386,5 +393,5 @@ declare class AXPAuthPasswordChangeTrackingService {
|
|
|
386
393
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXPAuthPasswordChangeTrackingService>;
|
|
387
394
|
}
|
|
388
395
|
|
|
389
|
-
export { AUTH_LOGIN_EXTERNAL_PROVIDERS_SLOT, AUTH_USER_ACTIVITY_DEFAULT_WEEKS,
|
|
390
|
-
export type { AXMAuthConfigs, AXPLoginHistoryEntry, AXPUserActivityDataSourceItem, AXPUserActivityDay, AXPUserActivityLevel, AXPUserActivityLoadParams, AXPUserActivityStats, AXPUserActivityWeek,
|
|
396
|
+
export { AUTH_LOGIN_EXTERNAL_PROVIDERS_SLOT, AUTH_USER_ACTIVITY_DEFAULT_WEEKS, AXMAuthErrorHandler, AXMAuthModule, AXMAuthPlatformSettingsService, AXMAuthenticationTypes, AXMDefaultAuthConfigs, AXM_AUTH_CONFIG_TOKEN, AXM_LOGIN_GUARD_TOKEN, AXPAuthPasswordChangeTrackingService, AXPIdleLockService, AXPLoginExternalProvidersComponent, AXPLoginHistoryService, AXPUserAvatarSyncService, PROFILE_PAGE_GROUPS_HOOK, PROFILE_PAGE_HEADER_META_HOOK, PROFILE_PAGE_SECTIONS_HOOK, aggregateDailySessionCounts, buildUserActivityDataSourceItem, buildUserActivityWeeks, canActivateLogin, computeUserActivityStats, configAuthModule, countToActivityLevel, extractUserActivityEndDate, extractUserActivityStartDate, extractUserActivityUserId, formatCompactActivityCount, isUserProfileGroupComponent, isUserProfileSectionsGroupRequested, parseAuthCredentialType, resolveDefaultUserActivityDateRange, resolveDefaultUserProfileSectionAction, resolveUserProfileSectionContent, visibleUserProfileSectionActions };
|
|
397
|
+
export type { AXMAuthClientConfig, AXMAuthConfigs, AXPLoginHistoryEntry, AXPUserActivityDataSourceItem, AXPUserActivityDay, AXPUserActivityLevel, AXPUserActivityLoadParams, AXPUserActivityStats, AXPUserActivityWeek, AXPUserProfileGroup, AXPUserProfileGroupComponentContent, AXPUserProfileGroupContent, AXPUserProfileGroupSectionsContent, AXPUserProfileGroupsPayload, AXPUserProfileHeaderMetaItem, AXPUserProfileHeaderMetaPayload, AXPUserProfileSection, AXPUserProfileSectionAction, AXPUserProfileSectionCardContent, AXPUserProfileSectionComponentContent, AXPUserProfileSectionContent, AXPUserProfileSectionInsight, AXPUserProfileSectionLayout, AXPUserProfileSectionsPayload };
|