@moh-sso/email 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/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/email/src/api/email.api.d.ts +1465 -0
- package/dist/_types/apps/email/src/api/index.d.ts +1 -0
- package/dist/_types/apps/email/src/components/email-outbox-actions-menu.component.d.ts +10 -0
- package/dist/_types/apps/email/src/components/email-outbox-bulk-actions.component.d.ts +10 -0
- package/dist/_types/apps/email/src/components/email-outbox-detail/email-outbox-details-modal.component.d.ts +6 -0
- package/dist/_types/apps/email/src/components/email-outbox-filters.component.d.ts +14 -0
- package/dist/_types/apps/email/src/components/email-outbox-panel/email-outbox-panel.component.d.ts +6 -0
- package/dist/_types/apps/email/src/index.d.ts +5 -0
- package/dist/_types/apps/email/src/pages/email-outbox.component.d.ts +1 -0
- package/dist/_types/apps/email/src/root.component.d.ts +2 -0
- package/dist/_types/apps/email/src/routes.d.ts +2 -0
- package/dist/_types/apps/email/src/single-spa.d.ts +1 -0
- package/dist/_types/apps/email/src/types/email.types.d.ts +99 -0
- package/dist/_types/apps/email/src/types/index.d.ts +1 -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/api.d.ts +1 -0
- package/dist/api.js +36 -0
- package/dist/api.js.map +1 -0
- package/dist/assets/email-8DfsqBcm.css +1 -0
- package/dist/assets/email.api-BFecBvcu.js +115 -0
- package/dist/assets/email.api-BFecBvcu.js.map +1 -0
- package/dist/assets/root.component-C1na_5E_.js +2034 -0
- package/dist/assets/root.component-C1na_5E_.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +41 -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 +62 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./email.api";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { EmailOutboxItem } from "../types";
|
|
2
|
+
type EmailOutboxActionsMenuProps = {
|
|
3
|
+
email: EmailOutboxItem;
|
|
4
|
+
isMutating?: boolean;
|
|
5
|
+
onView: () => void;
|
|
6
|
+
onRetry: () => void;
|
|
7
|
+
onDelete: () => void;
|
|
8
|
+
};
|
|
9
|
+
export declare function EmailOutboxActionsMenu({ email, isMutating, onView, onRetry, onDelete, }: EmailOutboxActionsMenuProps): import("react").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { EmailOutboxItem } from "../types";
|
|
2
|
+
type BulkAction = "retry" | "delete" | null;
|
|
3
|
+
type EmailOutboxBulkActionsProps = {
|
|
4
|
+
emails: EmailOutboxItem[];
|
|
5
|
+
loadingAction: BulkAction;
|
|
6
|
+
onRetry: () => void;
|
|
7
|
+
onDelete: () => void;
|
|
8
|
+
};
|
|
9
|
+
export declare function EmailOutboxBulkActions({ emails, loadingAction, onRetry, onDelete, }: EmailOutboxBulkActionsProps): import("react").JSX.Element | null;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type Option = {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
};
|
|
5
|
+
type EmailOutboxFiltersProps<TStatus extends string> = {
|
|
6
|
+
search: string;
|
|
7
|
+
status: TStatus;
|
|
8
|
+
statusOptions: readonly Option[];
|
|
9
|
+
onSearchChange: (value: string) => void;
|
|
10
|
+
onStatusChange: (value: TStatus) => void;
|
|
11
|
+
onReset: () => void;
|
|
12
|
+
};
|
|
13
|
+
export declare function EmailOutboxFilters<TStatus extends string>({ search, status, statusOptions, onSearchChange, onStatusChange, onReset, }: EmailOutboxFiltersProps<TStatus>): import("react").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function EmailOutbox(): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const bootstrap: (props: import("../../../packages/microfrontend/src/index.js").MicrofrontendMountProps) => Promise<void> | void, mount: (props: import("../../../packages/microfrontend/src/index.js").MicrofrontendMountProps) => Promise<void> | void, unmount: (props: import("../../../packages/microfrontend/src/index.js").MicrofrontendMountProps) => Promise<void> | void;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
export type EmailAddress = {
|
|
2
|
+
name?: string;
|
|
3
|
+
email: string;
|
|
4
|
+
};
|
|
5
|
+
export type EmailAttachment = {
|
|
6
|
+
file_name: string;
|
|
7
|
+
content_type?: string;
|
|
8
|
+
path?: string;
|
|
9
|
+
data_base64?: string;
|
|
10
|
+
content_id?: string;
|
|
11
|
+
inline?: boolean;
|
|
12
|
+
};
|
|
13
|
+
export type SendEmailRequest = {
|
|
14
|
+
id?: string;
|
|
15
|
+
from?: EmailAddress;
|
|
16
|
+
to?: EmailAddress[];
|
|
17
|
+
to_groups?: string[];
|
|
18
|
+
to_group_paths?: string[];
|
|
19
|
+
to_health_contexts?: string[];
|
|
20
|
+
include_health_context_descendants?: boolean;
|
|
21
|
+
cc?: EmailAddress[];
|
|
22
|
+
bcc?: EmailAddress[];
|
|
23
|
+
reply_to?: EmailAddress[];
|
|
24
|
+
subject: string;
|
|
25
|
+
text_body?: string;
|
|
26
|
+
html_body?: string;
|
|
27
|
+
template_name?: string;
|
|
28
|
+
template_data?: Record<string, unknown>;
|
|
29
|
+
attachments?: EmailAttachment[];
|
|
30
|
+
headers?: Record<string, string>;
|
|
31
|
+
metadata?: Record<string, string>;
|
|
32
|
+
scheduled_at?: string;
|
|
33
|
+
};
|
|
34
|
+
export type EmailRecipientPreviewRequest = {
|
|
35
|
+
to_groups?: string[];
|
|
36
|
+
to_group_paths?: string[];
|
|
37
|
+
to_health_contexts?: string[];
|
|
38
|
+
include_health_context_descendants?: boolean;
|
|
39
|
+
};
|
|
40
|
+
export type EmailRecipientPreviewResponse = {
|
|
41
|
+
recipient_count: number;
|
|
42
|
+
recipients?: EmailAddress[];
|
|
43
|
+
};
|
|
44
|
+
export type EmailStatus = "PENDING" | "PROCESSING" | "SENT" | "FAILED" | "RETRY";
|
|
45
|
+
export type EmailMessage = {
|
|
46
|
+
id?: string;
|
|
47
|
+
from?: EmailAddress;
|
|
48
|
+
to?: EmailAddress[];
|
|
49
|
+
cc?: EmailAddress[];
|
|
50
|
+
bcc?: EmailAddress[];
|
|
51
|
+
reply_to?: EmailAddress[];
|
|
52
|
+
subject?: string;
|
|
53
|
+
text_body?: string;
|
|
54
|
+
html_body?: string;
|
|
55
|
+
template_name?: string;
|
|
56
|
+
template_data?: Record<string, unknown>;
|
|
57
|
+
attachments?: EmailAttachment[];
|
|
58
|
+
headers?: Record<string, string>;
|
|
59
|
+
metadata?: Record<string, string>;
|
|
60
|
+
scheduled_at?: string | null;
|
|
61
|
+
attachment_count?: number;
|
|
62
|
+
};
|
|
63
|
+
export type EmailOutboxItemResponse = {
|
|
64
|
+
id: string;
|
|
65
|
+
tenant_id?: string | null;
|
|
66
|
+
message_id?: string | null;
|
|
67
|
+
message: EmailMessage;
|
|
68
|
+
status: EmailStatus | string;
|
|
69
|
+
attempts: number;
|
|
70
|
+
max_attempts: number;
|
|
71
|
+
last_error?: string | null;
|
|
72
|
+
scheduled_at?: string | null;
|
|
73
|
+
locked_at?: string | null;
|
|
74
|
+
sent_at?: string | null;
|
|
75
|
+
created_at: string;
|
|
76
|
+
updated_at: string;
|
|
77
|
+
};
|
|
78
|
+
export type EmailOutboxItem = {
|
|
79
|
+
id: string;
|
|
80
|
+
tenant_id?: string | null;
|
|
81
|
+
message_id?: string | null;
|
|
82
|
+
message: EmailMessage;
|
|
83
|
+
status: EmailStatus | string;
|
|
84
|
+
attempts: number;
|
|
85
|
+
max_attempts: number;
|
|
86
|
+
last_error?: string | null;
|
|
87
|
+
scheduled_at?: string | null;
|
|
88
|
+
locked_at?: string | null;
|
|
89
|
+
sent_at?: string | null;
|
|
90
|
+
created_at: string;
|
|
91
|
+
updated_at: string;
|
|
92
|
+
};
|
|
93
|
+
export type EmailListParams = {
|
|
94
|
+
limit?: number;
|
|
95
|
+
offset?: number;
|
|
96
|
+
};
|
|
97
|
+
export type EmailListByStatusParams = EmailListParams & {
|
|
98
|
+
status: EmailStatus | string;
|
|
99
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./email.types";
|