@moh-sso/announcements 0.0.0-stage → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -2
- package/dist/_types/apps/announcements/src/api/announcement.api.d.ts +3490 -0
- package/dist/_types/apps/announcements/src/api/index.d.ts +1 -0
- package/dist/_types/apps/announcements/src/components/announcement-actions-menu.component.d.ts +12 -0
- package/dist/_types/apps/announcements/src/components/announcement-attachments.component.d.ts +5 -0
- package/dist/_types/apps/announcements/src/components/announcement-bulk-actions.component.d.ts +14 -0
- package/dist/_types/apps/announcements/src/components/announcement-filters.component.d.ts +23 -0
- package/dist/_types/apps/announcements/src/components/announcements-form.component.d.ts +37 -0
- package/dist/_types/apps/announcements/src/components/manage-announcement-panel.d.ts +9 -0
- package/dist/_types/apps/announcements/src/index.d.ts +6 -0
- package/dist/_types/apps/announcements/src/pages/announcements.components.d.ts +1 -0
- package/dist/_types/apps/announcements/src/root.component.d.ts +2 -0
- package/dist/_types/apps/announcements/src/routes.d.ts +2 -0
- package/dist/_types/apps/announcements/src/single-spa.d.ts +1 -0
- package/dist/_types/apps/announcements/src/types/announcements.types.d.ts +172 -0
- package/dist/_types/apps/announcements/src/types/index.d.ts +1 -0
- package/dist/_types/apps/clients/src/types/client-role.types.d.ts +6 -0
- package/dist/_types/apps/clients/src/types/index.d.ts +2 -0
- package/dist/_types/apps/clients/src/types/user-role.types.d.ts +6 -0
- package/dist/_types/apps/rbac/src/api/health-context.api.d.ts +2482 -0
- package/dist/_types/apps/rbac/src/api/index.d.ts +2 -0
- package/dist/_types/apps/rbac/src/api/rbac.api.d.ts +10383 -0
- package/dist/_types/apps/rbac/src/components/AccessRequestsPanel.d.ts +6 -0
- package/dist/_types/apps/rbac/src/components/AuditTrailPanel.d.ts +1 -0
- package/dist/_types/apps/rbac/src/components/ChangeRequestsPanel.d.ts +9 -0
- package/dist/_types/apps/rbac/src/components/EffectiveAccessPanel.d.ts +1 -0
- package/dist/_types/apps/rbac/src/components/GovernanceToolsPanel.d.ts +5 -0
- package/dist/_types/apps/rbac/src/components/HealthContextsPanel.d.ts +1 -0
- package/dist/_types/apps/rbac/src/components/ImportExportPanel.d.ts +11 -0
- package/dist/_types/apps/rbac/src/components/PermissionCatalogPanel.d.ts +12 -0
- package/dist/_types/apps/rbac/src/components/PolicySimulatorPanel.d.ts +25 -0
- package/dist/_types/apps/rbac/src/components/RoleTemplatesPanel.d.ts +8 -0
- package/dist/_types/apps/rbac/src/components/SyncDriftPanel.d.ts +5 -0
- package/dist/_types/apps/rbac/src/index.d.ts +5 -0
- package/dist/_types/apps/rbac/src/pages/rbac-management.page.d.ts +1 -0
- package/dist/_types/apps/rbac/src/root.component.d.ts +2 -0
- package/dist/_types/apps/rbac/src/routes.d.ts +2 -0
- package/dist/_types/apps/rbac/src/types/health-context.types.d.ts +92 -0
- package/dist/_types/apps/rbac/src/types/index.d.ts +2 -0
- package/dist/_types/apps/rbac/src/types/rbac.types.d.ts +451 -0
- package/dist/_types/apps/users/src/api/index.d.ts +1 -0
- package/dist/_types/apps/users/src/api/users.api.d.ts +1799 -0
- package/dist/_types/apps/users/src/components/EnableUserModal.d.ts +8 -0
- package/dist/_types/apps/users/src/components/ResetPasswordModal.d.ts +8 -0
- package/dist/_types/apps/users/src/components/UserFilters.d.ts +12 -0
- package/dist/_types/apps/users/src/components/access-control/UserAccessPanel.d.ts +5 -0
- package/dist/_types/apps/users/src/components/create-user-panel.d.ts +9 -0
- package/dist/_types/apps/users/src/components/useEnableUserModal.d.ts +9 -0
- package/dist/_types/apps/users/src/components/useResetPasswordModal.d.ts +9 -0
- package/dist/_types/apps/users/src/index.d.ts +6 -0
- package/dist/_types/apps/users/src/pages/user-actions-menu.component.d.ts +11 -0
- package/dist/_types/apps/users/src/pages/user-bulk-actions.component.d.ts +11 -0
- package/dist/_types/apps/users/src/pages/user.component.d.ts +1 -0
- package/dist/_types/apps/users/src/root.component.d.ts +2 -0
- package/dist/_types/apps/users/src/routes.d.ts +2 -0
- package/dist/_types/apps/users/src/types/index.d.ts +1 -0
- package/dist/_types/apps/users/src/types/user.types.d.ts +26 -0
- package/dist/_types/packages/api/src/api/baseApi.d.ts +2 -0
- package/dist/_types/packages/api/src/index.d.ts +1 -0
- package/dist/_types/packages/auth/src/api/auth.api.d.ts +531 -0
- package/dist/_types/packages/auth/src/api/health-context.api.d.ts +374 -0
- package/dist/_types/packages/auth/src/auth/AuthBootstrap.d.ts +1 -0
- package/dist/_types/packages/auth/src/auth/HealthContextProvider.d.ts +20 -0
- package/dist/_types/packages/auth/src/auth/PermissionGuard.d.ts +10 -0
- package/dist/_types/packages/auth/src/auth/auth.selectors.d.ts +896 -0
- package/dist/_types/packages/auth/src/auth/auth.slice.d.ts +14 -0
- package/dist/_types/packages/auth/src/auth/auth.types.d.ts +61 -0
- package/dist/_types/packages/auth/src/auth/login-url.d.ts +2 -0
- package/dist/_types/packages/auth/src/auth/permissions.d.ts +58 -0
- package/dist/_types/packages/auth/src/auth/rbac.d.ts +8 -0
- package/dist/_types/packages/auth/src/auth/system-launch-url.d.ts +9 -0
- package/dist/_types/packages/auth/src/auth/useAuthorization.d.ts +14 -0
- package/dist/_types/packages/auth/src/index.d.ts +14 -0
- package/dist/_types/packages/config/src/appMeta.d.ts +3 -0
- package/dist/_types/packages/config/src/index.d.ts +6 -0
- package/dist/_types/packages/config/src/lib/constants/api.constants.d.ts +178 -0
- package/dist/_types/packages/config/src/lib/constants/document-templates.d.ts +11 -0
- package/dist/_types/packages/config/src/lib/errors/errorMessages.d.ts +2 -0
- package/dist/_types/packages/config/src/lib/errors/errorSeverity.d.ts +3 -0
- package/dist/_types/packages/config/src/lib/errors/errorTypes.d.ts +1 -0
- package/dist/_types/packages/microfrontend/src/basename.d.ts +1 -0
- package/dist/_types/packages/microfrontend/src/index.d.ts +6 -0
- package/dist/_types/packages/microfrontend/src/lifecycle.d.ts +6 -0
- package/dist/_types/packages/microfrontend/src/navigation.d.ts +2 -0
- package/dist/_types/packages/microfrontend/src/props.d.ts +44 -0
- package/dist/_types/packages/microfrontend/src/react-lifecycle.d.ts +11 -0
- package/dist/_types/packages/microfrontend/src/routes.d.ts +13 -0
- package/dist/_types/packages/state/src/clients/clients.selectors.d.ts +534 -0
- package/dist/_types/packages/state/src/clients/clients.slice.d.ts +4 -0
- package/dist/_types/packages/state/src/document/documents.selectors.d.ts +1 -0
- package/dist/_types/packages/state/src/index.d.ts +29 -0
- package/dist/_types/packages/state/src/ui/ui.state.d.ts +1 -0
- package/dist/_types/packages/types/src/index.d.ts +6 -0
- package/dist/_types/packages/types/src/types/announcement-summary.types.d.ts +16 -0
- package/dist/_types/packages/types/src/types/client-role.types.d.ts +6 -0
- package/dist/_types/packages/types/src/types/client.types.d.ts +46 -0
- package/dist/_types/packages/types/src/types/document-processing.types.d.ts +1 -0
- package/dist/_types/packages/types/src/types/notifications.types.d.ts +96 -0
- package/dist/_types/packages/types/src/types/system-navigation.types.d.ts +18 -0
- package/dist/_types/packages/ui/src/accessibility/index.d.ts +1 -0
- package/dist/_types/packages/ui/src/accessibility/useFocusTrap.d.ts +10 -0
- package/dist/_types/packages/ui/src/branding/BuildMeta.d.ts +6 -0
- package/dist/_types/packages/ui/src/branding/PublicFooter.d.ts +6 -0
- package/dist/_types/packages/ui/src/branding/index.d.ts +2 -0
- package/dist/_types/packages/ui/src/data-display/DataTablePagination.d.ts +12 -0
- package/dist/_types/packages/ui/src/data-display/DataTableShell.d.ts +35 -0
- package/dist/_types/packages/ui/src/data-display/RowActionsCell.d.ts +7 -0
- package/dist/_types/packages/ui/src/data-display/TableEmptyState.d.ts +8 -0
- package/dist/_types/packages/ui/src/data-display/TableStatusTag.d.ts +8 -0
- package/dist/_types/packages/ui/src/data-display/index.d.ts +5 -0
- package/dist/_types/packages/ui/src/feedback/comingsoon/ComingSoon.d.ts +7 -0
- package/dist/_types/packages/ui/src/feedback/emptystate/EmptyState.d.ts +15 -0
- package/dist/_types/packages/ui/src/feedback/errorstate/ErrorState.d.ts +14 -0
- package/dist/_types/packages/ui/src/feedback/errorstate/MicrofrontendErrorBoundary.d.ts +16 -0
- package/dist/_types/packages/ui/src/feedback/index.d.ts +5 -0
- package/dist/_types/packages/ui/src/feedback/loadingstate/LoadingState.d.ts +5 -0
- package/dist/_types/packages/ui/src/forms/CaseFormsGrid.d.ts +1 -0
- package/dist/_types/packages/ui/src/forms/index.d.ts +1 -0
- package/dist/_types/packages/ui/src/index.d.ts +16 -0
- package/dist/_types/packages/ui/src/layout/PageShell/PageShell.d.ts +9 -0
- package/dist/_types/packages/ui/src/layout/SectionCard/SectionCard.d.ts +11 -0
- package/dist/_types/packages/ui/src/layout/index.d.ts +2 -0
- package/dist/_types/packages/ui/src/navigation/appmenu/AppGridContent.d.ts +12 -0
- package/dist/_types/packages/ui/src/navigation/appmenu/AppMenu.component.d.ts +6 -0
- package/dist/_types/packages/ui/src/navigation/appmenu/AppMenuItem.component.d.ts +13 -0
- package/dist/_types/packages/ui/src/navigation/appmenu/appMenuGroups.d.ts +11 -0
- package/dist/_types/packages/ui/src/navigation/breadcrumbs/AppBreadcrumbs.d.ts +12 -0
- package/dist/_types/packages/ui/src/navigation/breadcrumbs/BreadcrumbBar.d.ts +10 -0
- package/dist/_types/packages/ui/src/navigation/index.d.ts +2 -0
- package/dist/_types/packages/ui/src/navigation/sidenav/ClientSideNav.d.ts +14 -0
- package/dist/_types/packages/ui/src/notifications/FormInlineAlert.d.ts +7 -0
- package/dist/_types/packages/ui/src/notifications/NotificationsPanel.d.ts +14 -0
- package/dist/_types/packages/ui/src/notifications/index.d.ts +4 -0
- package/dist/_types/packages/ui/src/notifications/toast/ToastProvider.d.ts +20 -0
- package/dist/_types/packages/ui/src/notifications/toast/useToast.d.ts +20 -0
- package/dist/_types/packages/ui/src/overlays/header-panel/ReusableHeaderPanel.d.ts +17 -0
- package/dist/_types/packages/ui/src/overlays/header-panel/header-panel.context.d.ts +23 -0
- package/dist/_types/packages/ui/src/overlays/index.d.ts +4 -0
- package/dist/_types/packages/ui/src/overlays/modal/ReusableModal.d.ts +20 -0
- package/dist/_types/packages/ui/src/overlays/modal/modal.context.d.ts +14 -0
- package/dist/_types/packages/ui/src/shell/ExternalAppHeader.d.ts +22 -0
- package/dist/_types/packages/ui/src/shell/PublicHeader.component.d.ts +8 -0
- package/dist/_types/packages/ui/src/shell/UserHeader.component.d.ts +17 -0
- package/dist/_types/packages/ui/src/shell/index.d.ts +5 -0
- package/dist/_types/packages/ui/src/theme/ThemeProvider.d.ts +8 -0
- package/dist/_types/packages/ui/src/theme/index.d.ts +1 -0
- package/dist/_types/packages/ui/src/utils/severity.d.ts +22 -0
- package/dist/_types/packages/ui/src/utils/status.d.ts +1 -0
- package/dist/_types/packages/utils/src/index.d.ts +1 -0
- package/dist/_types/packages/utils/src/utils/utils.d.ts +16 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +50 -0
- package/dist/api.js.map +1 -0
- package/dist/assets/announcement.api-Di1LFSh_.js +312 -0
- package/dist/assets/announcement.api-Di1LFSh_.js.map +1 -0
- package/dist/assets/announcements-BzR5RE3Z.css +1 -0
- package/dist/assets/root.component-BuA-VwR7.js +2227 -0
- package/dist/assets/root.component-BuA-VwR7.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +56 -0
- package/dist/index.js.map +1 -0
- package/dist/routes.d.ts +1 -0
- package/dist/routes.js +32 -0
- package/dist/routes.js.map +1 -0
- package/dist/single-spa.d.ts +1 -0
- package/dist/single-spa.js +32 -0
- package/dist/single-spa.js.map +1 -0
- package/dist/types.d.ts +1 -0
- package/dist/types.js +25 -0
- package/dist/types.js.map +1 -0
- package/package.json +65 -4
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type EnableUserModalProps = {
|
|
2
|
+
username: string;
|
|
3
|
+
enabled: boolean;
|
|
4
|
+
onConfirm: () => Promise<void> | void;
|
|
5
|
+
onCancel: () => void;
|
|
6
|
+
};
|
|
7
|
+
export declare function EnableUserModal({ username, enabled, onConfirm, onCancel }: EnableUserModalProps): import("react").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type ResetPasswordModalProps = {
|
|
2
|
+
username: string;
|
|
3
|
+
email?: string | null;
|
|
4
|
+
onConfirm: () => Promise<void> | void;
|
|
5
|
+
onCancel: () => void;
|
|
6
|
+
};
|
|
7
|
+
export declare function ResetPasswordModal({ username, email, onConfirm, onCancel, }: ResetPasswordModalProps): import("react").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface UserFiltersProps {
|
|
2
|
+
onReset: () => void;
|
|
3
|
+
status: string;
|
|
4
|
+
roles: string[];
|
|
5
|
+
selectedRole: string;
|
|
6
|
+
neverLoggedIn: boolean;
|
|
7
|
+
onStatusChange: (v: string) => void;
|
|
8
|
+
onRoleChange: (v: string) => void;
|
|
9
|
+
onToggleNeverLoggedIn: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function UserFilters({ onReset, status, roles, selectedRole, neverLoggedIn, onStatusChange, onRoleChange, onToggleNeverLoggedIn, }: UserFiltersProps): import("react").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { User } from "../types";
|
|
2
|
+
export type UserFormMode = "create" | "edit";
|
|
3
|
+
type Props = {
|
|
4
|
+
mode: UserFormMode;
|
|
5
|
+
initialUser?: User;
|
|
6
|
+
onSuccess?: () => void;
|
|
7
|
+
};
|
|
8
|
+
export declare function UserFormPanel({ mode, initialUser, onSuccess }: Props): import("react").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type OpenEnableUserModalArgs = {
|
|
2
|
+
username: string;
|
|
3
|
+
enabled: boolean;
|
|
4
|
+
onConfirm: () => Promise<void> | void;
|
|
5
|
+
};
|
|
6
|
+
export declare function useEnableUserModal(): {
|
|
7
|
+
openEnableUserModal: ({ username, enabled, onConfirm }: OpenEnableUserModalArgs) => void;
|
|
8
|
+
};
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type OpenResetPasswordModalArgs = {
|
|
2
|
+
username: string;
|
|
3
|
+
email?: string | null;
|
|
4
|
+
onConfirm: () => Promise<void> | void;
|
|
5
|
+
};
|
|
6
|
+
export declare function useResetPasswordModal(): {
|
|
7
|
+
openResetPasswordModal: ({ username, email, onConfirm }: OpenResetPasswordModalArgs) => void;
|
|
8
|
+
};
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { User } from "../types";
|
|
2
|
+
type Props = {
|
|
3
|
+
user: User;
|
|
4
|
+
isCurrentUser?: boolean;
|
|
5
|
+
onEdit: () => void;
|
|
6
|
+
onManageRoles: () => void;
|
|
7
|
+
onToggleStatus: () => void;
|
|
8
|
+
onResetPassword: () => void;
|
|
9
|
+
};
|
|
10
|
+
export declare function UserActionsMenu({ user, isCurrentUser, onEdit, onManageRoles, onToggleStatus, onResetPassword, }: Props): import("react").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { User } from "../types";
|
|
2
|
+
type BulkAction = "enable" | "disable" | null;
|
|
3
|
+
type Props = {
|
|
4
|
+
users: User[];
|
|
5
|
+
currentUserId?: string;
|
|
6
|
+
loadingAction: BulkAction;
|
|
7
|
+
onEnable: () => Promise<void>;
|
|
8
|
+
onDisable: () => Promise<void>;
|
|
9
|
+
};
|
|
10
|
+
export declare function UserBulkActions({ users, currentUserId, loadingAction, onEnable, onDisable, }: Props): import("react").JSX.Element | null;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function UsersPage(): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./user.types";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface User {
|
|
2
|
+
id: string;
|
|
3
|
+
username: string;
|
|
4
|
+
email?: string;
|
|
5
|
+
firstName?: string;
|
|
6
|
+
lastName?: string;
|
|
7
|
+
enabled: boolean;
|
|
8
|
+
emailVerified: boolean;
|
|
9
|
+
isAdmin: boolean;
|
|
10
|
+
isActive?: boolean;
|
|
11
|
+
realmRoles: string[];
|
|
12
|
+
clientRoles: Record<string, string[]>;
|
|
13
|
+
lastLoginAt?: string;
|
|
14
|
+
createdAt?: string;
|
|
15
|
+
updatedAt?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface CreateUserPayload {
|
|
18
|
+
username: string;
|
|
19
|
+
email: string;
|
|
20
|
+
firstName?: string;
|
|
21
|
+
lastName?: string;
|
|
22
|
+
enabled?: boolean;
|
|
23
|
+
emailVerified?: boolean;
|
|
24
|
+
realmRoles?: string[];
|
|
25
|
+
clientRoles?: Record<string, string[]>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { type BaseQueryFn, type FetchArgs, type FetchBaseQueryError } from "@reduxjs/toolkit/query/react";
|
|
2
|
+
export declare const baseApi: import("@reduxjs/toolkit/query").Api<BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, {}, "api", "Surveillance" | "Documents" | "Auth" | "User" | "Client" | "Audit" | "Metrics" | "Notification" | "ClientRole" | "UserClientRole" | "Document" | "DocumentProcesses" | "StorageLocations" | "StorageLocation" | "UserSession" | "UserSessions" | "Announcements" | "ThemeElement" | "GeoJson" | "Issues" | "Transactions" | "Emails" | "DocumentTemplates" | "DocumentSheets" | "DocumentColumns" | "RbacSystem" | "RbacGroup" | "RbacPermission" | "RbacRealmRole" | "RbacAccessRequest" | "RbacChangeRequest" | "RbacAudit" | "Datasets" | "DataElements" | "DataValidationRules" | "HealthContext" | "DQATables" | "DQARules" | "DQARuns" | "DQASchedules" | "DQAFlags", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./api/baseApi";
|