@acorex-platform/module-security-management-server 0.0.15 → 2.0.0-next.42
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/contracts/src/AXM_USER_ACCESS_STATE_DEFINITION_KEY.js.map +1 -1
- package/contracts/src/AXM_USER_EFFECTIVE_STATE_DEFINITION_KEY.js.map +1 -1
- package/contracts/src/ROLE_PERMISSIONS_PAGE_COMPONENT_KEY.d.ts +2 -0
- package/contracts/src/ROLE_PERMISSIONS_PAGE_COMPONENT_KEY.js +6 -0
- package/contracts/src/ROLE_PERMISSIONS_PAGE_COMPONENT_KEY.js.map +1 -0
- package/contracts/src/USER_ROLES_PAGE_COMPONENT_KEY.d.ts +1 -0
- package/contracts/src/USER_ROLES_PAGE_COMPONENT_KEY.js +5 -0
- package/contracts/src/USER_ROLES_PAGE_COMPONENT_KEY.js.map +1 -0
- package/contracts/src/create-application-role-rows.util.d.ts +15 -0
- package/contracts/src/create-application-role-rows.util.js +67 -0
- package/contracts/src/create-application-role-rows.util.js.map +1 -0
- package/contracts/src/device-session-admin-scope.d.ts +15 -0
- package/contracts/src/device-session-admin-scope.js +16 -0
- package/contracts/src/device-session-admin-scope.js.map +1 -0
- package/contracts/src/entities/device-sessions/device-sessions.entity.js +50 -1
- package/contracts/src/entities/device-sessions/device-sessions.entity.js.map +1 -1
- package/contracts/src/entities/device-sessions/device-sessions.types.d.ts +7 -0
- package/contracts/src/entities/device-sessions/device-sessions.types.js.map +1 -1
- package/contracts/src/entities/device-sessions/index.d.ts +0 -1
- package/contracts/src/entities/device-sessions/index.js +0 -1
- package/contracts/src/entities/device-sessions/index.js.map +1 -1
- package/contracts/src/entities/identity-provider/identity-provider.entity.d.ts +2 -0
- package/contracts/src/entities/identity-provider/identity-provider.entity.js +453 -0
- package/contracts/src/entities/identity-provider/identity-provider.entity.js.map +1 -0
- package/contracts/src/entities/identity-provider/identity-provider.types.d.ts +61 -0
- package/contracts/src/entities/identity-provider/identity-provider.types.js +14 -0
- package/contracts/src/entities/identity-provider/identity-provider.types.js.map +1 -0
- package/contracts/src/entities/identity-provider/index.d.ts +1 -0
- package/contracts/src/entities/identity-provider/index.js +5 -0
- package/contracts/src/entities/identity-provider/index.js.map +1 -0
- package/contracts/src/entities/index.d.ts +4 -0
- package/contracts/src/entities/index.js +4 -0
- package/contracts/src/entities/index.js.map +1 -1
- package/contracts/src/entities/policy/index.d.ts +0 -1
- package/contracts/src/entities/policy/index.js +0 -1
- package/contracts/src/entities/policy/index.js.map +1 -1
- package/contracts/src/entities/policy/policy.entity.js +15 -0
- package/contracts/src/entities/policy/policy.entity.js.map +1 -1
- package/contracts/src/entities/policy/policy.types.js.map +1 -1
- package/contracts/src/entities/profile/index.d.ts +0 -1
- package/contracts/src/entities/profile/index.js +0 -1
- package/contracts/src/entities/profile/index.js.map +1 -1
- package/contracts/src/entities/profile/profile.entity.js +15 -0
- package/contracts/src/entities/profile/profile.entity.js.map +1 -1
- package/contracts/src/entities/profile/profile.types.js.map +1 -1
- package/contracts/src/entities/role-permission/index.d.ts +1 -0
- package/contracts/src/entities/role-permission/index.js +5 -0
- package/contracts/src/entities/role-permission/index.js.map +1 -0
- package/contracts/src/entities/role-permission/role-permission.entity.d.ts +2 -0
- package/contracts/src/entities/role-permission/role-permission.entity.js +163 -0
- package/contracts/src/entities/role-permission/role-permission.entity.js.map +1 -0
- package/contracts/src/entities/role-permission/role-permission.types.d.ts +11 -0
- package/contracts/src/entities/role-permission/role-permission.types.js +5 -0
- package/contracts/src/entities/role-permission/role-permission.types.js.map +1 -0
- package/contracts/src/entities/roles/index.d.ts +0 -1
- package/contracts/src/entities/roles/index.js +0 -1
- package/contracts/src/entities/roles/index.js.map +1 -1
- package/contracts/src/entities/roles/roles.entity.js +73 -144
- package/contracts/src/entities/roles/roles.entity.js.map +1 -1
- package/contracts/src/entities/roles/roles.types.d.ts +4 -1
- package/contracts/src/entities/roles/roles.types.js.map +1 -1
- package/contracts/src/entities/user-role/index.d.ts +1 -0
- package/{src/lib/seed/tenant → contracts/src/entities/user-role}/index.js +1 -1
- package/contracts/src/entities/user-role/index.js.map +1 -0
- package/contracts/src/entities/user-role/user-role.entity.d.ts +2 -0
- package/contracts/src/entities/user-role/user-role.entity.js +164 -0
- package/contracts/src/entities/user-role/user-role.entity.js.map +1 -0
- package/contracts/src/entities/user-role/user-role.types.d.ts +11 -0
- package/contracts/src/entities/user-role/user-role.types.js +5 -0
- package/contracts/src/entities/user-role/user-role.types.js.map +1 -0
- package/contracts/src/entities/user-two-factor/index.d.ts +2 -0
- package/contracts/src/entities/user-two-factor/index.js +8 -0
- package/contracts/src/entities/user-two-factor/index.js.map +1 -0
- package/contracts/src/entities/user-two-factor/user-two-factor.entity.d.ts +6 -0
- package/contracts/src/entities/user-two-factor/user-two-factor.entity.js +103 -0
- package/contracts/src/entities/user-two-factor/user-two-factor.entity.js.map +1 -0
- package/contracts/src/entities/user-two-factor/user-two-factor.types.d.ts +24 -0
- package/contracts/src/entities/user-two-factor/user-two-factor.types.js +4 -0
- package/contracts/src/entities/user-two-factor/user-two-factor.types.js.map +1 -0
- package/contracts/src/entities/users/index.d.ts +1 -1
- package/contracts/src/entities/users/index.js +1 -1
- package/contracts/src/entities/users/index.js.map +1 -1
- package/contracts/src/entities/users/user-provisioning-list-actions.d.ts +8 -0
- package/contracts/src/entities/users/user-provisioning-list-actions.js +95 -0
- package/contracts/src/entities/users/user-provisioning-list-actions.js.map +1 -0
- package/contracts/src/entities/users/users.entity.js +341 -283
- package/contracts/src/entities/users/users.entity.js.map +1 -1
- package/contracts/src/entities/users/users.types.d.ts +24 -1
- package/contracts/src/entities/users/users.types.js.map +1 -1
- package/contracts/src/entity-catalog.d.ts +7 -0
- package/contracts/src/entity-catalog.js +28 -0
- package/contracts/src/entity-catalog.js.map +1 -0
- package/contracts/src/entity-entry.device-sessions.d.ts +1 -0
- package/contracts/src/entity-entry.device-sessions.js +6 -0
- package/contracts/src/entity-entry.device-sessions.js.map +1 -0
- package/contracts/src/entity-entry.identity-provider.d.ts +1 -0
- package/contracts/src/entity-entry.identity-provider.js +6 -0
- package/contracts/src/entity-entry.identity-provider.js.map +1 -0
- package/contracts/src/entity-entry.policy.d.ts +1 -0
- package/contracts/src/entity-entry.policy.js +6 -0
- package/contracts/src/entity-entry.policy.js.map +1 -0
- package/contracts/src/entity-entry.profile.d.ts +1 -0
- package/contracts/src/entity-entry.profile.js +6 -0
- package/contracts/src/entity-entry.profile.js.map +1 -0
- package/contracts/src/entity-entry.role-permission.d.ts +1 -0
- package/contracts/src/entity-entry.role-permission.js +6 -0
- package/contracts/src/entity-entry.role-permission.js.map +1 -0
- package/contracts/src/entity-entry.roles.d.ts +1 -0
- package/contracts/src/entity-entry.roles.js +6 -0
- package/contracts/src/entity-entry.roles.js.map +1 -0
- package/contracts/src/entity-entry.user-role.d.ts +1 -0
- package/contracts/src/entity-entry.user-role.js +6 -0
- package/contracts/src/entity-entry.user-role.js.map +1 -0
- package/contracts/src/entity-entry.user-two-factor.d.ts +1 -0
- package/contracts/src/entity-entry.user-two-factor.js +6 -0
- package/contracts/src/entity-entry.user-two-factor.js.map +1 -0
- package/contracts/src/entity-entry.users.d.ts +1 -0
- package/contracts/src/entity-entry.users.js +6 -0
- package/contracts/src/entity-entry.users.js.map +1 -0
- package/contracts/src/features.keys.d.ts +4 -0
- package/contracts/src/features.keys.js +4 -0
- package/contracts/src/features.keys.js.map +1 -1
- package/contracts/src/index.d.ts +13 -1
- package/contracts/src/index.js +13 -1
- package/contracts/src/index.js.map +1 -1
- package/contracts/src/invite-application-role-rows.util.d.ts +16 -0
- package/contracts/src/invite-application-role-rows.util.js +68 -0
- package/contracts/src/invite-application-role-rows.util.js.map +1 -0
- package/contracts/src/invite-assignable-roles.util.d.ts +34 -0
- package/contracts/src/invite-assignable-roles.util.js +75 -0
- package/contracts/src/invite-assignable-roles.util.js.map +1 -0
- package/contracts/src/lib/context.definitions.d.ts +2 -0
- package/contracts/src/lib/context.definitions.js +15 -0
- package/contracts/src/lib/context.definitions.js.map +1 -0
- package/contracts/src/manifest.d.ts +6 -0
- package/contracts/src/manifest.js +24 -0
- package/contracts/src/manifest.js.map +1 -0
- package/contracts/src/menu.keys.d.ts +1 -0
- package/contracts/src/menu.keys.js +1 -0
- package/contracts/src/menu.keys.js.map +1 -1
- package/contracts/src/permission.keys.d.ts +48 -18
- package/contracts/src/permission.keys.js +49 -21
- package/contracts/src/permission.keys.js.map +1 -1
- package/contracts/src/resolve-user-effective-state.d.ts +10 -0
- package/contracts/src/resolve-user-effective-state.js +46 -0
- package/contracts/src/resolve-user-effective-state.js.map +1 -0
- package/contracts/src/root-config.d.ts +33 -0
- package/contracts/src/root-config.js +33 -0
- package/contracts/src/root-config.js.map +1 -1
- package/contracts/src/server-commands.d.ts +340 -0
- package/contracts/src/server-commands.js +88 -0
- package/contracts/src/server-commands.js.map +1 -0
- package/contracts/src/settings.keys.d.ts +16 -0
- package/contracts/src/settings.keys.js +21 -0
- package/contracts/src/settings.keys.js.map +1 -0
- package/contracts/src/user-access-state.js.map +1 -1
- package/contracts/src/user-effective-state.js.map +1 -1
- package/contracts/src/user-invitation.d.ts +41 -0
- package/contracts/src/user-invitation.js +18 -0
- package/contracts/src/user-invitation.js.map +1 -0
- package/contracts/src/user-password-reset.d.ts +9 -0
- package/contracts/src/user-password-reset.js +5 -0
- package/contracts/src/user-password-reset.js.map +1 -0
- package/package.json +16 -11
- package/server/src/index.d.ts +3 -0
- package/server/src/index.js +11 -0
- package/server/src/index.js.map +1 -0
- package/server/src/lib/effective-access-history/effective-access-history.service.d.ts +35 -0
- package/server/src/lib/effective-access-history/effective-access-history.service.js +486 -0
- package/server/src/lib/effective-access-history/effective-access-history.service.js.map +1 -0
- package/server/src/lib/effective-access-history/effective-access-history.types.d.ts +64 -0
- package/server/src/lib/effective-access-history/effective-access-history.types.js +5 -0
- package/server/src/lib/effective-access-history/effective-access-history.types.js.map +1 -0
- package/server/src/lib/effective-access-history/version-as-of.util.d.ts +37 -0
- package/server/src/lib/effective-access-history/version-as-of.util.js +167 -0
- package/server/src/lib/effective-access-history/version-as-of.util.js.map +1 -0
- package/server/src/lib/entities/index.d.ts +1 -0
- package/server/src/lib/entities/index.js +5 -0
- package/{src/lib/seed/tenant → server/src/lib/entities}/index.js.map +1 -1
- package/server/src/lib/entities/security-management.entity-catalog.d.ts +1 -0
- package/server/src/lib/entities/security-management.entity-catalog.js +12 -0
- package/server/src/lib/entities/security-management.entity-catalog.js.map +1 -0
- package/server/src/lib/handlers/security-report.handlers.d.ts +36 -0
- package/server/src/lib/handlers/security-report.handlers.js +164 -0
- package/server/src/lib/handlers/security-report.handlers.js.map +1 -0
- package/server/src/lib/identity-provider/auth-oauth-clients.constants.d.ts +5 -0
- package/server/src/lib/identity-provider/auth-oauth-clients.constants.js +11 -0
- package/server/src/lib/identity-provider/auth-oauth-clients.constants.js.map +1 -0
- package/server/src/lib/identity-provider/identity-provider-catalog.service.d.ts +20 -0
- package/server/src/lib/identity-provider/identity-provider-catalog.service.js +169 -0
- package/server/src/lib/identity-provider/identity-provider-catalog.service.js.map +1 -0
- package/server/src/lib/identity-provider/identity-provider-ids.constants.d.ts +8 -0
- package/server/src/lib/identity-provider/identity-provider-ids.constants.js +19 -0
- package/server/src/lib/identity-provider/identity-provider-ids.constants.js.map +1 -0
- package/server/src/lib/identity-provider/identity-provider-stub.bootstrap.d.ts +12 -0
- package/server/src/lib/identity-provider/identity-provider-stub.bootstrap.js +48 -0
- package/server/src/lib/identity-provider/identity-provider-stub.bootstrap.js.map +1 -0
- package/server/src/lib/identity-provider/identity-provider.constants.d.ts +1 -0
- package/server/src/lib/identity-provider/identity-provider.constants.js +7 -0
- package/server/src/lib/identity-provider/identity-provider.constants.js.map +1 -0
- package/server/src/lib/middlewares/device-sessions-active.middleware.d.ts +15 -0
- package/server/src/lib/middlewares/device-sessions-active.middleware.js +76 -0
- package/server/src/lib/middlewares/device-sessions-active.middleware.js.map +1 -0
- package/server/src/lib/middlewares/device-sessions-app-scope.middleware.d.ts +29 -0
- package/server/src/lib/middlewares/device-sessions-app-scope.middleware.js +137 -0
- package/server/src/lib/middlewares/device-sessions-app-scope.middleware.js.map +1 -0
- package/server/src/lib/middlewares/device-sessions-app-scope.util.d.ts +41 -0
- package/server/src/lib/middlewares/device-sessions-app-scope.util.js +69 -0
- package/server/src/lib/middlewares/device-sessions-app-scope.util.js.map +1 -0
- package/server/src/lib/middlewares/device-sessions-token-revoke.middleware.d.ts +18 -0
- package/server/src/lib/middlewares/device-sessions-token-revoke.middleware.js +90 -0
- package/server/src/lib/middlewares/device-sessions-token-revoke.middleware.js.map +1 -0
- package/server/src/lib/middlewares/user-assigned-roles.middleware.d.ts +36 -0
- package/server/src/lib/middlewares/user-assigned-roles.middleware.js +359 -0
- package/server/src/lib/middlewares/user-assigned-roles.middleware.js.map +1 -0
- package/server/src/lib/middlewares/user-effective-state.middleware.d.ts +13 -0
- package/server/src/lib/middlewares/user-effective-state.middleware.js +57 -0
- package/server/src/lib/middlewares/user-effective-state.middleware.js.map +1 -0
- package/server/src/lib/middlewares/user-invitation-list.middleware.d.ts +32 -0
- package/server/src/lib/middlewares/user-invitation-list.middleware.js +250 -0
- package/server/src/lib/middlewares/user-invitation-list.middleware.js.map +1 -0
- package/server/src/lib/middlewares/user-profile-write.middleware.d.ts +18 -0
- package/server/src/lib/middlewares/user-profile-write.middleware.js +206 -0
- package/server/src/lib/middlewares/user-profile-write.middleware.js.map +1 -0
- package/server/src/lib/password-reset/change-own-password.command.d.ts +8 -0
- package/server/src/lib/password-reset/change-own-password.command.js +38 -0
- package/server/src/lib/password-reset/change-own-password.command.js.map +1 -0
- package/server/src/lib/password-reset/complete-password-reset.command.d.ts +8 -0
- package/server/src/lib/password-reset/complete-password-reset.command.js +37 -0
- package/server/src/lib/password-reset/complete-password-reset.command.js.map +1 -0
- package/server/src/lib/password-reset/get-own-password-status.command.d.ts +8 -0
- package/server/src/lib/password-reset/get-own-password-status.command.js +31 -0
- package/server/src/lib/password-reset/get-own-password-status.command.js.map +1 -0
- package/server/src/lib/password-reset/send-password-reset-email.command.d.ts +20 -0
- package/server/src/lib/password-reset/send-password-reset-email.command.js +43 -0
- package/server/src/lib/password-reset/send-password-reset-email.command.js.map +1 -0
- package/server/src/lib/password-reset/user-change-password.service.d.ts +24 -0
- package/server/src/lib/password-reset/user-change-password.service.js +92 -0
- package/server/src/lib/password-reset/user-change-password.service.js.map +1 -0
- package/server/src/lib/password-reset/user-password-reset.service.d.ts +26 -0
- package/server/src/lib/password-reset/user-password-reset.service.js +221 -0
- package/server/src/lib/password-reset/user-password-reset.service.js.map +1 -0
- package/server/src/lib/queries/get-permission-holders-history.query.d.ts +4 -0
- package/server/src/lib/queries/get-permission-holders-history.query.definition.d.ts +5 -0
- package/server/src/lib/queries/get-permission-holders-history.query.definition.js +38 -0
- package/server/src/lib/queries/get-permission-holders-history.query.definition.js.map +1 -0
- package/server/src/lib/queries/get-permission-holders-history.query.js +25 -0
- package/server/src/lib/queries/get-permission-holders-history.query.js.map +1 -0
- package/server/src/lib/queries/get-role-holders-history.query.d.ts +4 -0
- package/server/src/lib/queries/get-role-holders-history.query.definition.d.ts +5 -0
- package/server/src/lib/queries/get-role-holders-history.query.definition.js +38 -0
- package/server/src/lib/queries/get-role-holders-history.query.definition.js.map +1 -0
- package/server/src/lib/queries/get-role-holders-history.query.js +25 -0
- package/server/src/lib/queries/get-role-holders-history.query.js.map +1 -0
- package/server/src/lib/queries/get-user-effective-permissions-history.query.d.ts +4 -0
- package/server/src/lib/queries/get-user-effective-permissions-history.query.definition.d.ts +5 -0
- package/server/src/lib/queries/get-user-effective-permissions-history.query.definition.js +35 -0
- package/server/src/lib/queries/get-user-effective-permissions-history.query.definition.js.map +1 -0
- package/server/src/lib/queries/get-user-effective-permissions-history.query.js +26 -0
- package/server/src/lib/queries/get-user-effective-permissions-history.query.js.map +1 -0
- package/server/src/lib/queries/get-user-effective-roles-history.query.d.ts +4 -0
- package/server/src/lib/queries/get-user-effective-roles-history.query.definition.d.ts +5 -0
- package/server/src/lib/queries/get-user-effective-roles-history.query.definition.js +36 -0
- package/server/src/lib/queries/get-user-effective-roles-history.query.definition.js.map +1 -0
- package/server/src/lib/queries/get-user-effective-roles-history.query.js +25 -0
- package/server/src/lib/queries/get-user-effective-roles-history.query.js.map +1 -0
- package/server/src/lib/queries/get-user-password-change-history.query.d.ts +4 -0
- package/server/src/lib/queries/get-user-password-change-history.query.definition.d.ts +5 -0
- package/server/src/lib/queries/get-user-password-change-history.query.definition.js +33 -0
- package/server/src/lib/queries/get-user-password-change-history.query.definition.js.map +1 -0
- package/server/src/lib/queries/get-user-password-change-history.query.js +23 -0
- package/server/src/lib/queries/get-user-password-change-history.query.js.map +1 -0
- package/server/src/lib/queries/security-query.helpers.d.ts +47 -0
- package/server/src/lib/queries/security-query.helpers.js +184 -0
- package/server/src/lib/queries/security-query.helpers.js.map +1 -0
- package/server/src/lib/reports/password-change-history.service.d.ts +14 -0
- package/server/src/lib/reports/password-change-history.service.js +74 -0
- package/server/src/lib/reports/password-change-history.service.js.map +1 -0
- package/server/src/lib/reports/permission-display-catalog.d.ts +7 -0
- package/server/src/lib/reports/permission-display-catalog.js +101 -0
- package/server/src/lib/reports/permission-display-catalog.js.map +1 -0
- package/server/src/lib/reports/security-report-definition.provider.d.ts +5 -0
- package/server/src/lib/reports/security-report-definition.provider.js +23 -0
- package/server/src/lib/reports/security-report-definition.provider.js.map +1 -0
- package/server/src/lib/reports/security-report-parameter-groups.d.ts +343 -0
- package/server/src/lib/reports/security-report-parameter-groups.js +167 -0
- package/server/src/lib/reports/security-report-parameter-groups.js.map +1 -0
- package/server/src/lib/reports/security-report-scope.constants.d.ts +5 -0
- package/server/src/lib/reports/security-report-scope.constants.js +11 -0
- package/server/src/lib/reports/security-report-scope.constants.js.map +1 -0
- package/server/src/lib/reports/security-report.definitions.d.ts +12 -0
- package/server/src/lib/reports/security-report.definitions.js +386 -0
- package/server/src/lib/reports/security-report.definitions.js.map +1 -0
- package/server/src/lib/security-management-entity-storage.bootstrap.d.ts +26 -0
- package/server/src/lib/security-management-entity-storage.bootstrap.js +56 -0
- package/server/src/lib/security-management-entity-storage.bootstrap.js.map +1 -0
- package/server/src/lib/security-management-server.module.d.ts +7 -0
- package/server/src/lib/security-management-server.module.js +190 -0
- package/server/src/lib/security-management-server.module.js.map +1 -0
- package/server/src/lib/two-factor/admin-reset-two-factor.command.d.ts +8 -0
- package/server/src/lib/two-factor/admin-reset-two-factor.command.js +35 -0
- package/server/src/lib/two-factor/admin-reset-two-factor.command.js.map +1 -0
- package/server/src/lib/two-factor/confirm-two-factor-enrollment.command.d.ts +8 -0
- package/server/src/lib/two-factor/confirm-two-factor-enrollment.command.js +34 -0
- package/server/src/lib/two-factor/confirm-two-factor-enrollment.command.js.map +1 -0
- package/server/src/lib/two-factor/disable-two-factor.command.d.ts +8 -0
- package/server/src/lib/two-factor/disable-two-factor.command.js +31 -0
- package/server/src/lib/two-factor/disable-two-factor.command.js.map +1 -0
- package/server/src/lib/two-factor/generate-two-factor-recovery-codes.command.d.ts +8 -0
- package/server/src/lib/two-factor/generate-two-factor-recovery-codes.command.js +34 -0
- package/server/src/lib/two-factor/generate-two-factor-recovery-codes.command.js.map +1 -0
- package/server/src/lib/two-factor/get-two-factor-status.command.d.ts +8 -0
- package/server/src/lib/two-factor/get-two-factor-status.command.js +31 -0
- package/server/src/lib/two-factor/get-two-factor-status.command.js.map +1 -0
- package/server/src/lib/two-factor/recovery-codes.util.d.ts +11 -0
- package/server/src/lib/two-factor/recovery-codes.util.js +73 -0
- package/server/src/lib/two-factor/recovery-codes.util.js.map +1 -0
- package/server/src/lib/two-factor/start-two-factor-enrollment.command.d.ts +8 -0
- package/server/src/lib/two-factor/start-two-factor-enrollment.command.js +31 -0
- package/server/src/lib/two-factor/start-two-factor-enrollment.command.js.map +1 -0
- package/server/src/lib/two-factor/totp.util.d.ts +32 -0
- package/server/src/lib/two-factor/totp.util.js +128 -0
- package/server/src/lib/two-factor/totp.util.js.map +1 -0
- package/server/src/lib/two-factor/two-factor-encryption.util.d.ts +25 -0
- package/server/src/lib/two-factor/two-factor-encryption.util.js +123 -0
- package/server/src/lib/two-factor/two-factor-encryption.util.js.map +1 -0
- package/server/src/lib/two-factor/two-factor-gate.bootstrap.d.ts +9 -0
- package/server/src/lib/two-factor/two-factor-gate.bootstrap.js +65 -0
- package/server/src/lib/two-factor/two-factor-gate.bootstrap.js.map +1 -0
- package/server/src/lib/two-factor/two-factor-redis.store.d.ts +63 -0
- package/server/src/lib/two-factor/two-factor-redis.store.js +321 -0
- package/server/src/lib/two-factor/two-factor-redis.store.js.map +1 -0
- package/server/src/lib/two-factor/user-two-factor.service.d.ts +62 -0
- package/server/src/lib/two-factor/user-two-factor.service.js +573 -0
- package/server/src/lib/two-factor/user-two-factor.service.js.map +1 -0
- package/server/src/lib/two-factor/verify-two-factor-login.command.d.ts +18 -0
- package/server/src/lib/two-factor/verify-two-factor-login.command.js +54 -0
- package/server/src/lib/two-factor/verify-two-factor-login.command.js.map +1 -0
- package/server/src/lib/user-invitation/accept-invitation.command.d.ts +8 -0
- package/server/src/lib/user-invitation/accept-invitation.command.js +41 -0
- package/server/src/lib/user-invitation/accept-invitation.command.js.map +1 -0
- package/server/src/lib/user-invitation/accept-my-invitation.command.d.ts +8 -0
- package/server/src/lib/user-invitation/accept-my-invitation.command.js +40 -0
- package/server/src/lib/user-invitation/accept-my-invitation.command.js.map +1 -0
- package/server/src/lib/user-invitation/approve-join-request.command.d.ts +8 -0
- package/server/src/lib/user-invitation/approve-join-request.command.js +41 -0
- package/server/src/lib/user-invitation/approve-join-request.command.js.map +1 -0
- package/server/src/lib/user-invitation/cancel-invitation.command.d.ts +8 -0
- package/server/src/lib/user-invitation/cancel-invitation.command.js +37 -0
- package/server/src/lib/user-invitation/cancel-invitation.command.js.map +1 -0
- package/server/src/lib/user-invitation/cancel-my-join-request.command.d.ts +8 -0
- package/server/src/lib/user-invitation/cancel-my-join-request.command.js +40 -0
- package/server/src/lib/user-invitation/cancel-my-join-request.command.js.map +1 -0
- package/server/src/lib/user-invitation/create-user-in-tenant.command.d.ts +8 -0
- package/server/src/lib/user-invitation/create-user-in-tenant.command.js +37 -0
- package/server/src/lib/user-invitation/create-user-in-tenant.command.js.map +1 -0
- package/server/src/lib/user-invitation/decline-invitation.command.d.ts +8 -0
- package/server/src/lib/user-invitation/decline-invitation.command.js +37 -0
- package/server/src/lib/user-invitation/decline-invitation.command.js.map +1 -0
- package/server/src/lib/user-invitation/invite-user.command.d.ts +8 -0
- package/server/src/lib/user-invitation/invite-user.command.js +37 -0
- package/server/src/lib/user-invitation/invite-user.command.js.map +1 -0
- package/server/src/lib/user-invitation/list-invite-assignable-roles.command.d.ts +8 -0
- package/server/src/lib/user-invitation/list-invite-assignable-roles.command.js +41 -0
- package/server/src/lib/user-invitation/list-invite-assignable-roles.command.js.map +1 -0
- package/server/src/lib/user-invitation/list-my-join-requests.command.d.ts +8 -0
- package/server/src/lib/user-invitation/list-my-join-requests.command.js +40 -0
- package/server/src/lib/user-invitation/list-my-join-requests.command.js.map +1 -0
- package/server/src/lib/user-invitation/list-my-pending-invitations.command.d.ts +8 -0
- package/server/src/lib/user-invitation/list-my-pending-invitations.command.js +37 -0
- package/server/src/lib/user-invitation/list-my-pending-invitations.command.js.map +1 -0
- package/server/src/lib/user-invitation/list-tenant-entitled-applications.command.d.ts +8 -0
- package/server/src/lib/user-invitation/list-tenant-entitled-applications.command.js +41 -0
- package/server/src/lib/user-invitation/list-tenant-entitled-applications.command.js.map +1 -0
- package/server/src/lib/user-invitation/lookup-tenant-by-unique-name.command.d.ts +8 -0
- package/server/src/lib/user-invitation/lookup-tenant-by-unique-name.command.js +40 -0
- package/server/src/lib/user-invitation/lookup-tenant-by-unique-name.command.js.map +1 -0
- package/server/src/lib/user-invitation/reject-join-request.command.d.ts +8 -0
- package/server/src/lib/user-invitation/reject-join-request.command.js +41 -0
- package/server/src/lib/user-invitation/reject-join-request.command.js.map +1 -0
- package/server/src/lib/user-invitation/request-tenant-membership.command.d.ts +8 -0
- package/server/src/lib/user-invitation/request-tenant-membership.command.js +40 -0
- package/server/src/lib/user-invitation/request-tenant-membership.command.js.map +1 -0
- package/server/src/lib/user-invitation/resend-invitation.command.d.ts +12 -0
- package/server/src/lib/user-invitation/resend-invitation.command.js +37 -0
- package/server/src/lib/user-invitation/resend-invitation.command.js.map +1 -0
- package/server/src/lib/user-invitation/user-invitation-application-access.util.d.ts +25 -0
- package/server/src/lib/user-invitation/user-invitation-application-access.util.js +121 -0
- package/server/src/lib/user-invitation/user-invitation-application-access.util.js.map +1 -0
- package/server/src/lib/user-invitation/user-invitation.service.d.ts +162 -0
- package/server/src/lib/user-invitation/user-invitation.service.js +1658 -0
- package/server/src/lib/user-invitation/user-invitation.service.js.map +1 -0
- package/contracts/src/datasource.keys.d.ts +0 -4
- package/contracts/src/datasource.keys.js +0 -10
- package/contracts/src/datasource.keys.js.map +0 -1
- package/src/index.d.ts +0 -5
- package/src/index.js +0 -13
- package/src/index.js.map +0 -1
- package/src/lib/security-management-server.module.d.ts +0 -2
- package/src/lib/security-management-server.module.js +0 -23
- package/src/lib/security-management-server.module.js.map +0 -1
- package/src/lib/seed/index.d.ts +0 -22
- package/src/lib/seed/index.js +0 -24
- package/src/lib/seed/index.js.map +0 -1
- package/src/lib/seed/policy/index.d.ts +0 -2
- package/src/lib/seed/policy/index.js +0 -6
- package/src/lib/seed/policy/index.js.map +0 -1
- package/src/lib/seed/policy/policy.mock.d.ts +0 -7
- package/src/lib/seed/policy/policy.mock.js +0 -40
- package/src/lib/seed/policy/policy.mock.js.map +0 -1
- package/src/lib/seed/policy/policy.seed.d.ts +0 -5
- package/src/lib/seed/policy/policy.seed.js +0 -31
- package/src/lib/seed/policy/policy.seed.js.map +0 -1
- package/src/lib/seed/role/index.d.ts +0 -4
- package/src/lib/seed/role/index.js +0 -8
- package/src/lib/seed/role/index.js.map +0 -1
- package/src/lib/seed/role/role-ids.constants.d.ts +0 -14
- package/src/lib/seed/role/role-ids.constants.js +0 -20
- package/src/lib/seed/role/role-ids.constants.js.map +0 -1
- package/src/lib/seed/role/role-permission-keys.constants.d.ts +0 -578
- package/src/lib/seed/role/role-permission-keys.constants.js +0 -620
- package/src/lib/seed/role/role-permission-keys.constants.js.map +0 -1
- package/src/lib/seed/role/role.mock.d.ts +0 -4
- package/src/lib/seed/role/role.mock.js +0 -321
- package/src/lib/seed/role/role.mock.js.map +0 -1
- package/src/lib/seed/role/role.seed.d.ts +0 -5
- package/src/lib/seed/role/role.seed.js +0 -31
- package/src/lib/seed/role/role.seed.js.map +0 -1
- package/src/lib/seed/security-management-seed.provider.d.ts +0 -4
- package/src/lib/seed/security-management-seed.provider.js +0 -18
- package/src/lib/seed/security-management-seed.provider.js.map +0 -1
- package/src/lib/seed/security-management-seed.tokens.d.ts +0 -1
- package/src/lib/seed/security-management-seed.tokens.js +0 -7
- package/src/lib/seed/security-management-seed.tokens.js.map +0 -1
- package/src/lib/seed/security-management.seed-catalog.d.ts +0 -2
- package/src/lib/seed/security-management.seed-catalog.js +0 -17
- package/src/lib/seed/security-management.seed-catalog.js.map +0 -1
- package/src/lib/seed/tenant/index.d.ts +0 -1
- package/src/lib/seed/tenant/tenant-ids.constants.d.ts +0 -11
- package/src/lib/seed/tenant/tenant-ids.constants.js +0 -17
- package/src/lib/seed/tenant/tenant-ids.constants.js.map +0 -1
- package/src/lib/seed/user/index.d.ts +0 -4
- package/src/lib/seed/user/index.js +0 -13
- package/src/lib/seed/user/index.js.map +0 -1
- package/src/lib/seed/user/resolve-user-effective-state.util.d.ts +0 -14
- package/src/lib/seed/user/resolve-user-effective-state.util.js +0 -61
- package/src/lib/seed/user/resolve-user-effective-state.util.js.map +0 -1
- package/src/lib/seed/user/user.mock.d.ts +0 -20
- package/src/lib/seed/user/user.mock.js +0 -332
- package/src/lib/seed/user/user.mock.js.map +0 -1
- package/src/lib/seed/user/user.seed.d.ts +0 -5
- package/src/lib/seed/user/user.seed.js +0 -31
- package/src/lib/seed/user/user.seed.js.map +0 -1
|
@@ -4,21 +4,42 @@ exports.usersFactory = usersFactory;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const core_1 = require("@acorex-platform/framework-shared/core");
|
|
6
6
|
const entity_1 = require("@acorex-platform/framework-shared/entity");
|
|
7
|
-
const
|
|
7
|
+
const AXM_USER_ACCESS_STATE_DEFINITION_KEY_1 = require("../../AXM_USER_ACCESS_STATE_DEFINITION_KEY");
|
|
8
|
+
const AXM_USER_EFFECTIVE_STATE_DEFINITION_KEY_1 = require("../../AXM_USER_EFFECTIVE_STATE_DEFINITION_KEY");
|
|
9
|
+
const server_commands_1 = require("../../server-commands");
|
|
10
|
+
const user_provisioning_list_actions_1 = require("./user-provisioning-list-actions");
|
|
11
|
+
const USER_ROLES_PAGE_COMPONENT_KEY_1 = require("../../USER_ROLES_PAGE_COMPONENT_KEY");
|
|
12
|
+
const root_config_1 = require("../../root-config");
|
|
8
13
|
function usersFactory() {
|
|
9
14
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
10
|
-
const i18n = index_1.RootConfig.config.i18n;
|
|
11
15
|
const entityDef = {
|
|
12
|
-
module:
|
|
13
|
-
name:
|
|
14
|
-
title:
|
|
15
|
-
icon:
|
|
16
|
+
module: root_config_1.RootConfig.module.name,
|
|
17
|
+
name: root_config_1.RootConfig.entities.users.name,
|
|
18
|
+
title: root_config_1.RootConfig.entities.users.title,
|
|
19
|
+
icon: root_config_1.RootConfig.entities.users.icon,
|
|
20
|
+
searchTags: [
|
|
21
|
+
'user',
|
|
22
|
+
'users',
|
|
23
|
+
'account',
|
|
24
|
+
'identity',
|
|
25
|
+
'sign-in',
|
|
26
|
+
'password',
|
|
27
|
+
'access-state',
|
|
28
|
+
'lifecycle',
|
|
29
|
+
'authorization',
|
|
30
|
+
'home-tenant',
|
|
31
|
+
'کاربر',
|
|
32
|
+
'کاربران',
|
|
33
|
+
'رمز عبور',
|
|
34
|
+
'ورود',
|
|
35
|
+
'حساب کاربری',
|
|
36
|
+
],
|
|
16
37
|
formats: {
|
|
17
|
-
individual:
|
|
18
|
-
plural:
|
|
38
|
+
individual: root_config_1.RootConfig.entities.users.title,
|
|
39
|
+
plural: root_config_1.RootConfig.entities.users.titlePlural,
|
|
19
40
|
searchResult: {
|
|
20
41
|
title: '{{ displayName }}',
|
|
21
|
-
description:
|
|
42
|
+
description: '{{ context.eval("lastSignInAt", { pipes: ["timeleft"] }) || "@security-management:users.entities.user.fields.last-sign-in-at.never" }}',
|
|
22
43
|
},
|
|
23
44
|
},
|
|
24
45
|
plugins: [
|
|
@@ -38,12 +59,14 @@ function usersFactory() {
|
|
|
38
59
|
name: 'status',
|
|
39
60
|
options: {
|
|
40
61
|
field: 'accessState',
|
|
41
|
-
definition:
|
|
62
|
+
definition: AXM_USER_ACCESS_STATE_DEFINITION_KEY_1.AXM_USER_ACCESS_STATE_DEFINITION_KEY,
|
|
42
63
|
isPrimary: false,
|
|
43
64
|
groupId: 'user-account-access',
|
|
44
65
|
title: '@security-management:users.entities.user.fields.access-state.title',
|
|
45
66
|
showInCreate: false,
|
|
46
|
-
|
|
67
|
+
// Platform-scoped sign-in gate: display-only on User detail (tenant must not change).
|
|
68
|
+
// Platform mutations should go through a dedicated ops path once client isPlatform is available.
|
|
69
|
+
readonly: true,
|
|
47
70
|
generate: { views: { enabled: false } },
|
|
48
71
|
},
|
|
49
72
|
},
|
|
@@ -51,7 +74,7 @@ function usersFactory() {
|
|
|
51
74
|
name: 'status',
|
|
52
75
|
options: {
|
|
53
76
|
field: 'effectiveState',
|
|
54
|
-
definition:
|
|
77
|
+
definition: AXM_USER_EFFECTIVE_STATE_DEFINITION_KEY_1.AXM_USER_EFFECTIVE_STATE_DEFINITION_KEY,
|
|
55
78
|
isPrimary: true,
|
|
56
79
|
groupId: 'user-account-access',
|
|
57
80
|
title: '@security-management:users.entities.user.fields.effective-state.title',
|
|
@@ -60,11 +83,21 @@ function usersFactory() {
|
|
|
60
83
|
generate: { views: { enabled: true } },
|
|
61
84
|
},
|
|
62
85
|
},
|
|
86
|
+
{ name: 'unique-fields', options: { fields: 'email', scope: 'global' } },
|
|
63
87
|
{ name: 'history' },
|
|
64
88
|
{ name: 'lock' },
|
|
65
89
|
{ name: 'compare' },
|
|
90
|
+
{ name: 'reports' },
|
|
91
|
+
],
|
|
92
|
+
pages: [
|
|
93
|
+
{
|
|
94
|
+
componentKey: USER_ROLES_PAGE_COMPONENT_KEY_1.USER_ROLES_PAGE_COMPONENT_KEY,
|
|
95
|
+
title: '@security-management:users.entities.user.pages.roles.title',
|
|
96
|
+
icon: 'fa-light fa-user-tag',
|
|
97
|
+
layout: { order: 1, position: 'after' },
|
|
98
|
+
appearOn: { create: true, update: true },
|
|
99
|
+
},
|
|
66
100
|
],
|
|
67
|
-
pages: [],
|
|
68
101
|
groups: [
|
|
69
102
|
{
|
|
70
103
|
id: 'basic-info',
|
|
@@ -75,10 +108,6 @@ function usersFactory() {
|
|
|
75
108
|
title: '@general:terms.common.avatar',
|
|
76
109
|
icon: 'fa-light fa-image',
|
|
77
110
|
},
|
|
78
|
-
{
|
|
79
|
-
id: 'authorizations',
|
|
80
|
-
title: `@${i18n}:users.entities.user.groups.authorizations`,
|
|
81
|
-
},
|
|
82
111
|
{
|
|
83
112
|
id: 'user-account-access',
|
|
84
113
|
title: '@security-management:users.entities.user.groups.account-access',
|
|
@@ -104,6 +133,7 @@ function usersFactory() {
|
|
|
104
133
|
},
|
|
105
134
|
schema: {
|
|
106
135
|
dataType: 'string',
|
|
136
|
+
readonly: '{{ !!context.eval("id") }}',
|
|
107
137
|
interface: {
|
|
108
138
|
type: core_1.AXPWidgetsCatalog.text,
|
|
109
139
|
options: {},
|
|
@@ -144,12 +174,132 @@ function usersFactory() {
|
|
|
144
174
|
},
|
|
145
175
|
],
|
|
146
176
|
},
|
|
177
|
+
{
|
|
178
|
+
name: 'email',
|
|
179
|
+
title: '@general:terms.communication.email',
|
|
180
|
+
groupId: 'basic-info',
|
|
181
|
+
options: {
|
|
182
|
+
filter: {
|
|
183
|
+
advance: { enabled: true },
|
|
184
|
+
inline: { enabled: true },
|
|
185
|
+
},
|
|
186
|
+
sort: { enabled: true },
|
|
187
|
+
},
|
|
188
|
+
schema: {
|
|
189
|
+
dataType: 'string',
|
|
190
|
+
interface: {
|
|
191
|
+
type: core_1.AXPWidgetsCatalog.text,
|
|
192
|
+
options: {},
|
|
193
|
+
},
|
|
194
|
+
},
|
|
195
|
+
validations: [{ rule: 'required' }],
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
name: 'rolesList',
|
|
199
|
+
title: '@security-management:users.entities.user.fields.roles.title',
|
|
200
|
+
groupId: 'basic-info',
|
|
201
|
+
schema: {
|
|
202
|
+
dataType: 'array',
|
|
203
|
+
/**
|
|
204
|
+
* Display-only Role snapshots. Not a stored FK — source of truth is
|
|
205
|
+
* scoped SecurityManagement.UserRole. Name must not end in Id/Ids so
|
|
206
|
+
* the query planner does not join Role from this User document.
|
|
207
|
+
*/
|
|
208
|
+
readonly: true,
|
|
209
|
+
visible: false,
|
|
210
|
+
interface: {
|
|
211
|
+
type: core_1.AXPWidgetsList.Editors.LookupBox,
|
|
212
|
+
options: {
|
|
213
|
+
entity: `${root_config_1.RootConfig.module.name}.${root_config_1.RootConfig.entities.roles.name}`,
|
|
214
|
+
textField: 'title',
|
|
215
|
+
valueField: 'id',
|
|
216
|
+
multiple: true,
|
|
217
|
+
look: 'select',
|
|
218
|
+
},
|
|
219
|
+
},
|
|
220
|
+
},
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
/**
|
|
224
|
+
* Display-only (like rolesList). Never persisted on User documents.
|
|
225
|
+
* Hydrated from session-tenant TenantUser.statusId (+ acceptedAt → accepted).
|
|
226
|
+
*/
|
|
227
|
+
name: 'membershipStatusId',
|
|
228
|
+
title: '@security-management:users.entities.user.fields.membership-status.title',
|
|
229
|
+
groupId: 'user-account-access',
|
|
230
|
+
schema: {
|
|
231
|
+
dataType: 'string',
|
|
232
|
+
readonly: true,
|
|
233
|
+
nullable: true,
|
|
234
|
+
visible: false,
|
|
235
|
+
interface: {
|
|
236
|
+
type: core_1.AXPWidgetsList.Advanced.Status,
|
|
237
|
+
options: {
|
|
238
|
+
definitionKey: 'security-management.status.user-invitation',
|
|
239
|
+
},
|
|
240
|
+
},
|
|
241
|
+
},
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
/**
|
|
245
|
+
* Hidden view filter marker only; rewritten server-side to TenantUser
|
|
246
|
+
* invitation.source invite or join-request. Never persisted on User documents.
|
|
247
|
+
*/
|
|
248
|
+
name: 'membershipInviteScope',
|
|
249
|
+
title: '@security-management:users.entities.user.fields.membership-invite-scope.title',
|
|
250
|
+
groupId: 'user-account-access',
|
|
251
|
+
schema: {
|
|
252
|
+
dataType: 'string',
|
|
253
|
+
readonly: true,
|
|
254
|
+
visible: false,
|
|
255
|
+
nullable: true,
|
|
256
|
+
interface: {
|
|
257
|
+
type: core_1.AXPWidgetsCatalog.text,
|
|
258
|
+
options: {},
|
|
259
|
+
},
|
|
260
|
+
},
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
/**
|
|
264
|
+
* Display-only. Hydrated from session-tenant TenantUser.invitation.source.
|
|
265
|
+
* Used to show Approve/Reject only for pending join-requests.
|
|
266
|
+
*/
|
|
267
|
+
name: 'membershipInvitationSource',
|
|
268
|
+
title: '@security-management:users.entities.user.fields.membership-invitation-source.title',
|
|
269
|
+
groupId: 'user-account-access',
|
|
270
|
+
schema: {
|
|
271
|
+
dataType: 'string',
|
|
272
|
+
readonly: true,
|
|
273
|
+
visible: false,
|
|
274
|
+
nullable: true,
|
|
275
|
+
interface: {
|
|
276
|
+
type: core_1.AXPWidgetsCatalog.text,
|
|
277
|
+
options: {},
|
|
278
|
+
},
|
|
279
|
+
},
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
name: 'homeTenantId',
|
|
283
|
+
title: '@security-management:users.entities.user.fields.home-tenant.title',
|
|
284
|
+
groupId: 'basic-info',
|
|
285
|
+
schema: {
|
|
286
|
+
dataType: 'string',
|
|
287
|
+
/** Stamped on create from session; not shown on User forms. */
|
|
288
|
+
readonly: true,
|
|
289
|
+
visible: false,
|
|
290
|
+
interface: {
|
|
291
|
+
type: core_1.AXPWidgetsCatalog.text,
|
|
292
|
+
options: {},
|
|
293
|
+
},
|
|
294
|
+
},
|
|
295
|
+
},
|
|
147
296
|
{
|
|
148
297
|
name: 'password',
|
|
149
298
|
title: '@security-management:users.entities.user.fields.password.title',
|
|
150
|
-
groupId: '
|
|
299
|
+
groupId: 'basic-info',
|
|
151
300
|
schema: {
|
|
152
301
|
dataType: 'string',
|
|
302
|
+
visible: false,
|
|
153
303
|
interface: {
|
|
154
304
|
type: core_1.AXPWidgetsCatalog.text,
|
|
155
305
|
},
|
|
@@ -173,7 +323,7 @@ function usersFactory() {
|
|
|
173
323
|
{
|
|
174
324
|
name: 'pinCode',
|
|
175
325
|
title: '@security-management:users.entities.user.fields.pin-code.title',
|
|
176
|
-
groupId: '
|
|
326
|
+
groupId: 'basic-info',
|
|
177
327
|
schema: {
|
|
178
328
|
dataType: 'string',
|
|
179
329
|
readonly: true,
|
|
@@ -184,39 +334,70 @@ function usersFactory() {
|
|
|
184
334
|
},
|
|
185
335
|
},
|
|
186
336
|
{
|
|
187
|
-
name: '
|
|
188
|
-
title: '@security-management:users.entities.user.fields.
|
|
189
|
-
groupId: '
|
|
337
|
+
name: 'passwordChangedAt',
|
|
338
|
+
title: '@security-management:users.entities.user.fields.password-changed-at.title',
|
|
339
|
+
groupId: 'user-account-access',
|
|
190
340
|
schema: {
|
|
191
|
-
dataType: '
|
|
341
|
+
dataType: 'date',
|
|
342
|
+
readonly: true,
|
|
343
|
+
visible: false,
|
|
344
|
+
nullable: true,
|
|
192
345
|
interface: {
|
|
193
|
-
type: core_1.AXPWidgetsCatalog.
|
|
194
|
-
options: {
|
|
195
|
-
entity: 'SecurityManagement.Role',
|
|
196
|
-
multiple: true,
|
|
197
|
-
look: 'select',
|
|
198
|
-
expose: [
|
|
199
|
-
{ source: 'id', target: 'roles.{id}' },
|
|
200
|
-
{ source: 'title', target: 'roles.{title}' },
|
|
201
|
-
],
|
|
202
|
-
// columnResolve: {
|
|
203
|
-
// strategy: 'countOnly',
|
|
204
|
-
// countFieldPath: 'roles.length',
|
|
205
|
-
// queryKey: 'SecurityManagement:User:RolesForListColumn',
|
|
206
|
-
// queryParams: { userId: 'id' },
|
|
207
|
-
// queryResultItemsPath: 'items',
|
|
208
|
-
// },
|
|
209
|
-
},
|
|
346
|
+
type: core_1.AXPWidgetsCatalog.dateTime,
|
|
210
347
|
},
|
|
211
348
|
},
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
name: 'pinChangedAt',
|
|
352
|
+
title: '@security-management:users.entities.user.fields.pin-changed-at.title',
|
|
353
|
+
groupId: 'user-account-access',
|
|
354
|
+
schema: {
|
|
355
|
+
dataType: 'date',
|
|
356
|
+
readonly: true,
|
|
357
|
+
visible: false,
|
|
358
|
+
nullable: true,
|
|
359
|
+
interface: {
|
|
360
|
+
type: core_1.AXPWidgetsCatalog.dateTime,
|
|
215
361
|
},
|
|
216
|
-
|
|
362
|
+
},
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
name: 'lastSignInAt',
|
|
366
|
+
title: '@security-management:users.entities.user.fields.last-sign-in-at.title',
|
|
367
|
+
groupId: 'user-account-access',
|
|
368
|
+
schema: {
|
|
369
|
+
dataType: 'date',
|
|
370
|
+
readonly: true,
|
|
371
|
+
visible: false,
|
|
372
|
+
nullable: true,
|
|
373
|
+
interface: {
|
|
374
|
+
type: core_1.AXPWidgetsCatalog.dateTime,
|
|
375
|
+
},
|
|
376
|
+
},
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
name: 'passwordReset',
|
|
380
|
+
title: '@security-management:users.entities.user.fields.password-reset.title',
|
|
381
|
+
groupId: 'user-account-access',
|
|
382
|
+
schema: {
|
|
383
|
+
dataType: 'object',
|
|
384
|
+
readonly: true,
|
|
385
|
+
visible: false,
|
|
386
|
+
nullable: true,
|
|
387
|
+
interface: {
|
|
388
|
+
type: core_1.AXPWidgetsCatalog.text,
|
|
389
|
+
},
|
|
390
|
+
},
|
|
217
391
|
},
|
|
218
392
|
],
|
|
219
|
-
columns: [
|
|
393
|
+
columns: [
|
|
394
|
+
{ name: 'username' },
|
|
395
|
+
{ name: 'displayName' },
|
|
396
|
+
{ name: 'email' },
|
|
397
|
+
{ name: 'rolesList' },
|
|
398
|
+
{ name: 'membershipStatusId', options: { visible: false } },
|
|
399
|
+
{ name: 'lastSignInAt', options: { visible: false } },
|
|
400
|
+
],
|
|
220
401
|
interfaces: {
|
|
221
402
|
master: {
|
|
222
403
|
create: {
|
|
@@ -231,62 +412,25 @@ function usersFactory() {
|
|
|
231
412
|
order: 2,
|
|
232
413
|
layout: { positions: { lg: { colSpan: 4, colStart: 9 } } },
|
|
233
414
|
},
|
|
234
|
-
{
|
|
235
|
-
id: 'authorizations',
|
|
236
|
-
order: 3,
|
|
237
|
-
},
|
|
238
415
|
],
|
|
239
416
|
properties: [
|
|
240
417
|
{
|
|
241
418
|
name: 'username',
|
|
242
|
-
layout: {
|
|
243
|
-
positions: {
|
|
244
|
-
lg: {
|
|
245
|
-
colSpan: 6,
|
|
246
|
-
},
|
|
247
|
-
},
|
|
248
|
-
},
|
|
419
|
+
layout: { positions: { lg: { colSpan: 6 } } },
|
|
249
420
|
},
|
|
250
421
|
{
|
|
251
422
|
name: 'displayName',
|
|
252
|
-
layout: {
|
|
253
|
-
positions: {
|
|
254
|
-
lg: {
|
|
255
|
-
colSpan: 6,
|
|
256
|
-
},
|
|
257
|
-
},
|
|
258
|
-
},
|
|
423
|
+
layout: { positions: { lg: { colSpan: 6 } } },
|
|
259
424
|
},
|
|
260
425
|
{
|
|
261
|
-
name: '
|
|
262
|
-
layout: {
|
|
263
|
-
label: { visible: false },
|
|
264
|
-
positions: {
|
|
265
|
-
lg: {
|
|
266
|
-
colSpan: 12,
|
|
267
|
-
order: 1,
|
|
268
|
-
},
|
|
269
|
-
},
|
|
270
|
-
},
|
|
426
|
+
name: 'email',
|
|
427
|
+
layout: { positions: { lg: { colSpan: 12 } } },
|
|
271
428
|
},
|
|
272
429
|
{
|
|
273
|
-
name: '
|
|
274
|
-
layout: {
|
|
275
|
-
positions: {
|
|
276
|
-
lg: {
|
|
277
|
-
colSpan: 12,
|
|
278
|
-
},
|
|
279
|
-
},
|
|
280
|
-
},
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
name: 'password',
|
|
430
|
+
name: 'avatar',
|
|
284
431
|
layout: {
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
colSpan: 12,
|
|
288
|
-
},
|
|
289
|
-
},
|
|
432
|
+
label: { visible: false },
|
|
433
|
+
positions: { lg: { colSpan: 12, order: 1 } },
|
|
290
434
|
},
|
|
291
435
|
},
|
|
292
436
|
],
|
|
@@ -303,104 +447,31 @@ function usersFactory() {
|
|
|
303
447
|
order: 2,
|
|
304
448
|
layout: { positions: { lg: { colSpan: 4, colStart: 9 } } },
|
|
305
449
|
},
|
|
306
|
-
{
|
|
307
|
-
id: 'authorizations',
|
|
308
|
-
order: 3,
|
|
309
|
-
layout: { positions: { lg: { colSpan: 12, colStart: 1 } } },
|
|
310
|
-
},
|
|
311
450
|
{
|
|
312
451
|
id: 'user-account-access',
|
|
313
|
-
order:
|
|
452
|
+
order: 3,
|
|
314
453
|
layout: { positions: { lg: { colSpan: 12, colStart: 1 } } },
|
|
315
454
|
},
|
|
316
455
|
],
|
|
317
456
|
properties: [
|
|
318
|
-
{
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
positions: {
|
|
322
|
-
lg: {
|
|
323
|
-
colSpan: 6,
|
|
324
|
-
},
|
|
325
|
-
},
|
|
326
|
-
},
|
|
327
|
-
},
|
|
328
|
-
{
|
|
329
|
-
name: 'displayName',
|
|
330
|
-
layout: {
|
|
331
|
-
positions: {
|
|
332
|
-
lg: {
|
|
333
|
-
colSpan: 6,
|
|
334
|
-
},
|
|
335
|
-
},
|
|
336
|
-
},
|
|
337
|
-
},
|
|
457
|
+
{ name: 'username', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
458
|
+
{ name: 'displayName', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
459
|
+
{ name: 'email', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
338
460
|
{
|
|
339
461
|
name: 'avatar',
|
|
340
462
|
layout: {
|
|
341
463
|
label: { visible: false },
|
|
342
|
-
positions: {
|
|
343
|
-
lg: {
|
|
344
|
-
colSpan: 12,
|
|
345
|
-
order: 1,
|
|
346
|
-
},
|
|
347
|
-
},
|
|
348
|
-
},
|
|
349
|
-
},
|
|
350
|
-
{
|
|
351
|
-
name: 'roleIds',
|
|
352
|
-
layout: {
|
|
353
|
-
positions: {
|
|
354
|
-
lg: {
|
|
355
|
-
colSpan: 12,
|
|
356
|
-
},
|
|
357
|
-
},
|
|
358
|
-
},
|
|
359
|
-
},
|
|
360
|
-
{
|
|
361
|
-
name: 'password',
|
|
362
|
-
layout: {
|
|
363
|
-
positions: {
|
|
364
|
-
lg: {
|
|
365
|
-
colSpan: 12,
|
|
366
|
-
},
|
|
367
|
-
},
|
|
368
|
-
},
|
|
369
|
-
},
|
|
370
|
-
{
|
|
371
|
-
name: 'accountState',
|
|
372
|
-
layout: {
|
|
373
|
-
positions: {
|
|
374
|
-
lg: {
|
|
375
|
-
colSpan: 4,
|
|
376
|
-
},
|
|
377
|
-
},
|
|
378
|
-
},
|
|
379
|
-
},
|
|
380
|
-
{
|
|
381
|
-
name: 'accessState',
|
|
382
|
-
layout: {
|
|
383
|
-
positions: {
|
|
384
|
-
lg: {
|
|
385
|
-
colSpan: 4,
|
|
386
|
-
},
|
|
387
|
-
},
|
|
388
|
-
},
|
|
389
|
-
},
|
|
390
|
-
{
|
|
391
|
-
name: 'effectiveState',
|
|
392
|
-
layout: {
|
|
393
|
-
positions: {
|
|
394
|
-
lg: {
|
|
395
|
-
colSpan: 4,
|
|
396
|
-
},
|
|
397
|
-
},
|
|
464
|
+
positions: { lg: { colSpan: 12, order: 1 } },
|
|
398
465
|
},
|
|
399
466
|
},
|
|
467
|
+
{ name: 'accountState', layout: { positions: { lg: { colSpan: 4 } } } },
|
|
468
|
+
{ name: 'accessState', layout: { positions: { lg: { colSpan: 4 } } } },
|
|
469
|
+
{ name: 'effectiveState', layout: { positions: { lg: { colSpan: 4 } } } },
|
|
400
470
|
],
|
|
401
471
|
},
|
|
402
472
|
single: {
|
|
403
473
|
title: '{{ context.eval("displayName") ?? context.eval("username") }}',
|
|
474
|
+
description: '{{ context.eval("lastSignInAt", { pipes: ["timeleft"] }) || "@security-management:users.entities.user.fields.last-sign-in-at.never" }}',
|
|
404
475
|
sections: [
|
|
405
476
|
{
|
|
406
477
|
id: 'basic-info',
|
|
@@ -412,140 +483,127 @@ function usersFactory() {
|
|
|
412
483
|
order: 2,
|
|
413
484
|
layout: { positions: { lg: { colSpan: 4, colStart: 9 } } },
|
|
414
485
|
},
|
|
415
|
-
{
|
|
416
|
-
id: 'authorizations',
|
|
417
|
-
order: 3,
|
|
418
|
-
layout: { positions: { lg: { colSpan: 12, colStart: 1 } } },
|
|
419
|
-
},
|
|
420
486
|
{
|
|
421
487
|
id: 'user-account-access',
|
|
422
|
-
order:
|
|
488
|
+
order: 3,
|
|
423
489
|
layout: { positions: { lg: { colSpan: 12, colStart: 1 } } },
|
|
424
490
|
},
|
|
425
491
|
],
|
|
426
492
|
properties: [
|
|
427
|
-
{
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
positions: {
|
|
431
|
-
lg: {
|
|
432
|
-
colSpan: 6,
|
|
433
|
-
},
|
|
434
|
-
},
|
|
435
|
-
},
|
|
436
|
-
},
|
|
437
|
-
{
|
|
438
|
-
name: 'displayName',
|
|
439
|
-
layout: {
|
|
440
|
-
positions: {
|
|
441
|
-
lg: {
|
|
442
|
-
colSpan: 6,
|
|
443
|
-
},
|
|
444
|
-
},
|
|
445
|
-
},
|
|
446
|
-
},
|
|
493
|
+
{ name: 'username', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
494
|
+
{ name: 'displayName', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
495
|
+
{ name: 'email', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
447
496
|
{
|
|
448
497
|
name: 'avatar',
|
|
449
498
|
layout: {
|
|
450
499
|
label: { visible: false },
|
|
451
|
-
positions: {
|
|
452
|
-
lg: {
|
|
453
|
-
colSpan: 12,
|
|
454
|
-
order: 1,
|
|
455
|
-
},
|
|
456
|
-
},
|
|
457
|
-
},
|
|
458
|
-
},
|
|
459
|
-
{
|
|
460
|
-
name: 'password',
|
|
461
|
-
layout: {
|
|
462
|
-
positions: {
|
|
463
|
-
lg: {
|
|
464
|
-
colSpan: 12,
|
|
465
|
-
},
|
|
466
|
-
},
|
|
467
|
-
},
|
|
468
|
-
},
|
|
469
|
-
{
|
|
470
|
-
name: 'roleIds',
|
|
471
|
-
layout: {
|
|
472
|
-
positions: {
|
|
473
|
-
lg: {
|
|
474
|
-
colSpan: 12,
|
|
475
|
-
},
|
|
476
|
-
},
|
|
477
|
-
},
|
|
478
|
-
},
|
|
479
|
-
{
|
|
480
|
-
name: 'accountState',
|
|
481
|
-
layout: {
|
|
482
|
-
positions: {
|
|
483
|
-
lg: {
|
|
484
|
-
colSpan: 4,
|
|
485
|
-
},
|
|
486
|
-
},
|
|
487
|
-
},
|
|
488
|
-
},
|
|
489
|
-
{
|
|
490
|
-
name: 'accessState',
|
|
491
|
-
layout: {
|
|
492
|
-
positions: {
|
|
493
|
-
lg: {
|
|
494
|
-
colSpan: 4,
|
|
495
|
-
},
|
|
496
|
-
},
|
|
497
|
-
},
|
|
498
|
-
},
|
|
499
|
-
{
|
|
500
|
-
name: 'effectiveState',
|
|
501
|
-
layout: {
|
|
502
|
-
positions: {
|
|
503
|
-
lg: {
|
|
504
|
-
colSpan: 4,
|
|
505
|
-
},
|
|
506
|
-
},
|
|
500
|
+
positions: { lg: { colSpan: 12, order: 1 } },
|
|
507
501
|
},
|
|
508
502
|
},
|
|
503
|
+
{ name: 'accountState', layout: { positions: { lg: { colSpan: 4 } } } },
|
|
504
|
+
{ name: 'accessState', layout: { positions: { lg: { colSpan: 4 } } } },
|
|
505
|
+
{ name: 'effectiveState', layout: { positions: { lg: { colSpan: 4 } } } },
|
|
506
|
+
],
|
|
507
|
+
actions: [
|
|
508
|
+
{
|
|
509
|
+
title: '@security-management:users.entities.user.actions.send-password-reset.title',
|
|
510
|
+
icon: 'fa-light fa-envelope',
|
|
511
|
+
command: server_commands_1.AXM_USER_SEND_PASSWORD_RESET_COMMAND,
|
|
512
|
+
priority: 'secondary',
|
|
513
|
+
type: 'view',
|
|
514
|
+
scope: entity_1.AXPEntityCommandScope.Individual,
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
title: '@security-management:users.entities.user.actions.reset-two-factor.title',
|
|
518
|
+
icon: 'fa-light fa-shield-keyhole',
|
|
519
|
+
command: server_commands_1.AXM_USER_RESET_TWO_FACTOR_COMMAND,
|
|
520
|
+
priority: 'secondary',
|
|
521
|
+
type: 'view',
|
|
522
|
+
scope: entity_1.AXPEntityCommandScope.Individual,
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
title: '@security-management:users.entities.user.actions.resend-invitation.title',
|
|
526
|
+
icon: 'fa-light fa-paper-plane',
|
|
527
|
+
command: server_commands_1.AXM_USER_RESEND_INVITATION_COMMAND,
|
|
528
|
+
priority: 'secondary',
|
|
529
|
+
type: 'view',
|
|
530
|
+
scope: entity_1.AXPEntityCommandScope.Individual,
|
|
531
|
+
hidden: '{{ context.eval("membershipStatusId") !== "pending" || context.eval("membershipInvitationSource") !== "invite" }}',
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
title: '@security-management:users.entities.user.actions.cancel-invitation.title',
|
|
535
|
+
icon: 'fa-light fa-user-xmark',
|
|
536
|
+
command: server_commands_1.AXM_USER_CANCEL_INVITATION_COMMAND,
|
|
537
|
+
priority: 'secondary',
|
|
538
|
+
type: 'view',
|
|
539
|
+
scope: entity_1.AXPEntityCommandScope.Individual,
|
|
540
|
+
hidden: '{{ context.eval("membershipStatusId") !== "pending" || context.eval("membershipInvitationSource") !== "invite" }}',
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
title: '@security-management:users.entities.user.actions.approve-join-request.title',
|
|
544
|
+
icon: 'fa-light fa-user-check',
|
|
545
|
+
command: server_commands_1.AXM_USER_APPROVE_JOIN_REQUEST_COMMAND,
|
|
546
|
+
color: 'success',
|
|
547
|
+
priority: 'primary',
|
|
548
|
+
type: 'view',
|
|
549
|
+
scope: entity_1.AXPEntityCommandScope.Individual,
|
|
550
|
+
hidden: '{{ context.eval("membershipStatusId") !== "pending" || context.eval("membershipInvitationSource") !== "join-request" }}',
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
title: '@security-management:users.entities.user.actions.reject-join-request.title',
|
|
554
|
+
icon: 'fa-light fa-user-xmark',
|
|
555
|
+
command: server_commands_1.AXM_USER_REJECT_JOIN_REQUEST_COMMAND,
|
|
556
|
+
color: 'warning',
|
|
557
|
+
priority: 'primary',
|
|
558
|
+
type: 'view',
|
|
559
|
+
scope: entity_1.AXPEntityCommandScope.Individual,
|
|
560
|
+
hidden: '{{ context.eval("membershipStatusId") !== "pending" || context.eval("membershipInvitationSource") !== "join-request" }}',
|
|
561
|
+
},
|
|
562
|
+
...(0, entity_1.entityMasterRecordActions)(),
|
|
509
563
|
],
|
|
510
|
-
actions: [...(0, entity_1.entityMasterRecordActions)()],
|
|
511
564
|
},
|
|
512
565
|
list: {
|
|
513
|
-
actions: [
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
{
|
|
524
|
-
name: 'displayName',
|
|
525
|
-
title: 'Display Name',
|
|
526
|
-
showAs: {
|
|
527
|
-
type: core_1.AXPWidgetsCatalog.text,
|
|
528
|
-
},
|
|
529
|
-
},
|
|
530
|
-
{
|
|
531
|
-
name: 'roleIds',
|
|
532
|
-
},
|
|
566
|
+
actions: [
|
|
567
|
+
...(0, user_provisioning_list_actions_1.userProvisioningListActions)(),
|
|
568
|
+
...(0, entity_1.entityMasterCrudActions)({ create: false }),
|
|
569
|
+
],
|
|
570
|
+
views: [
|
|
571
|
+
(0, entity_1.createAllQueryView)({
|
|
572
|
+
sorts: [{ name: 'displayName', dir: 'asc' }],
|
|
573
|
+
}),
|
|
574
|
+
(0, entity_1.createQueryView)('invitations', '@security-management:users.entities.user.views.invitations.title', true, {
|
|
575
|
+
conditions: [
|
|
533
576
|
{
|
|
534
|
-
name: '
|
|
577
|
+
name: 'membershipInviteScope',
|
|
578
|
+
operator: { type: 'equal' },
|
|
579
|
+
value: 'lifecycle',
|
|
580
|
+
hidden: true,
|
|
535
581
|
},
|
|
536
582
|
],
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
(0, entity_1.createAllQueryView)({
|
|
583
|
+
columns: [
|
|
584
|
+
'username',
|
|
585
|
+
'displayName',
|
|
586
|
+
'email',
|
|
587
|
+
'membershipStatusId',
|
|
588
|
+
'rolesList',
|
|
589
|
+
],
|
|
545
590
|
sorts: [{ name: 'displayName', dir: 'asc' }],
|
|
546
591
|
}),
|
|
547
592
|
],
|
|
548
593
|
},
|
|
594
|
+
card: {
|
|
595
|
+
enabled: true,
|
|
596
|
+
header: {
|
|
597
|
+
title: 'displayName',
|
|
598
|
+
description: '{{ context.eval("lastSignInAt", { pipes: ["timeleft"] }) || "@security-management:users.entities.user.fields.last-sign-in-at.never" }}',
|
|
599
|
+
avatar: 'avatar',
|
|
600
|
+
},
|
|
601
|
+
fields: [
|
|
602
|
+
{ name: 'username', display: 'meta' },
|
|
603
|
+
{ name: 'email', display: 'meta' },
|
|
604
|
+
{ name: 'rolesList', display: 'simple' },
|
|
605
|
+
],
|
|
606
|
+
},
|
|
549
607
|
},
|
|
550
608
|
},
|
|
551
609
|
};
|