@moh-sso/data-validation 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.
Files changed (126) hide show
  1. package/README.md +24 -2
  2. package/dist/_types/apps/data-validation/src/api/dqa.api.d.ts +2936 -0
  3. package/dist/_types/apps/data-validation/src/api/index.d.ts +1 -0
  4. package/dist/_types/apps/data-validation/src/components/dqa/dqa-engine-panel.d.ts +1 -0
  5. package/dist/_types/apps/data-validation/src/components/dqa/dqa-flags-panel.d.ts +3 -0
  6. package/dist/_types/apps/data-validation/src/components/dqa/dqa-rule-form.d.ts +10 -0
  7. package/dist/_types/apps/data-validation/src/components/dqa/dqa-rule-mapping-panel.d.ts +1 -0
  8. package/dist/_types/apps/data-validation/src/components/dqa/dqa-rules-panel.d.ts +1 -0
  9. package/dist/_types/apps/data-validation/src/components/dqa/dqa-runs-panel.d.ts +1 -0
  10. package/dist/_types/apps/data-validation/src/components/dqa/dqa-schedule-run-modal.d.ts +11 -0
  11. package/dist/_types/apps/data-validation/src/components/dqa/dqa-table-form.d.ts +9 -0
  12. package/dist/_types/apps/data-validation/src/components/dqa/dqa-tables-panel.d.ts +1 -0
  13. package/dist/_types/apps/data-validation/src/dqa.types.d.ts +144 -0
  14. package/dist/_types/apps/data-validation/src/index.d.ts +4 -0
  15. package/dist/_types/apps/data-validation/src/pages/data-validation.page.d.ts +1 -0
  16. package/dist/_types/apps/data-validation/src/root.component.d.ts +2 -0
  17. package/dist/_types/apps/data-validation/src/routes.d.ts +2 -0
  18. package/dist/_types/apps/data-validation/src/single-spa.d.ts +1 -0
  19. package/dist/_types/packages/api/src/api/baseApi.d.ts +2 -0
  20. package/dist/_types/packages/api/src/index.d.ts +1 -0
  21. package/dist/_types/packages/auth/src/api/auth.api.d.ts +531 -0
  22. package/dist/_types/packages/auth/src/api/health-context.api.d.ts +374 -0
  23. package/dist/_types/packages/auth/src/auth/AuthBootstrap.d.ts +1 -0
  24. package/dist/_types/packages/auth/src/auth/HealthContextProvider.d.ts +20 -0
  25. package/dist/_types/packages/auth/src/auth/PermissionGuard.d.ts +10 -0
  26. package/dist/_types/packages/auth/src/auth/auth.selectors.d.ts +896 -0
  27. package/dist/_types/packages/auth/src/auth/auth.slice.d.ts +14 -0
  28. package/dist/_types/packages/auth/src/auth/auth.types.d.ts +61 -0
  29. package/dist/_types/packages/auth/src/auth/login-url.d.ts +2 -0
  30. package/dist/_types/packages/auth/src/auth/permissions.d.ts +58 -0
  31. package/dist/_types/packages/auth/src/auth/rbac.d.ts +8 -0
  32. package/dist/_types/packages/auth/src/auth/system-launch-url.d.ts +9 -0
  33. package/dist/_types/packages/auth/src/auth/useAuthorization.d.ts +14 -0
  34. package/dist/_types/packages/auth/src/index.d.ts +14 -0
  35. package/dist/_types/packages/config/src/appMeta.d.ts +3 -0
  36. package/dist/_types/packages/config/src/index.d.ts +6 -0
  37. package/dist/_types/packages/config/src/lib/constants/api.constants.d.ts +178 -0
  38. package/dist/_types/packages/config/src/lib/constants/document-templates.d.ts +11 -0
  39. package/dist/_types/packages/config/src/lib/errors/errorMessages.d.ts +2 -0
  40. package/dist/_types/packages/config/src/lib/errors/errorSeverity.d.ts +3 -0
  41. package/dist/_types/packages/config/src/lib/errors/errorTypes.d.ts +1 -0
  42. package/dist/_types/packages/microfrontend/src/basename.d.ts +1 -0
  43. package/dist/_types/packages/microfrontend/src/index.d.ts +6 -0
  44. package/dist/_types/packages/microfrontend/src/lifecycle.d.ts +6 -0
  45. package/dist/_types/packages/microfrontend/src/navigation.d.ts +2 -0
  46. package/dist/_types/packages/microfrontend/src/props.d.ts +44 -0
  47. package/dist/_types/packages/microfrontend/src/react-lifecycle.d.ts +11 -0
  48. package/dist/_types/packages/microfrontend/src/routes.d.ts +13 -0
  49. package/dist/_types/packages/state/src/clients/clients.selectors.d.ts +534 -0
  50. package/dist/_types/packages/state/src/clients/clients.slice.d.ts +4 -0
  51. package/dist/_types/packages/state/src/document/documents.selectors.d.ts +1 -0
  52. package/dist/_types/packages/state/src/index.d.ts +29 -0
  53. package/dist/_types/packages/state/src/ui/ui.state.d.ts +1 -0
  54. package/dist/_types/packages/types/src/index.d.ts +6 -0
  55. package/dist/_types/packages/types/src/types/announcement-summary.types.d.ts +16 -0
  56. package/dist/_types/packages/types/src/types/client-role.types.d.ts +6 -0
  57. package/dist/_types/packages/types/src/types/client.types.d.ts +46 -0
  58. package/dist/_types/packages/types/src/types/document-processing.types.d.ts +1 -0
  59. package/dist/_types/packages/types/src/types/notifications.types.d.ts +96 -0
  60. package/dist/_types/packages/types/src/types/system-navigation.types.d.ts +18 -0
  61. package/dist/_types/packages/ui/src/accessibility/index.d.ts +1 -0
  62. package/dist/_types/packages/ui/src/accessibility/useFocusTrap.d.ts +10 -0
  63. package/dist/_types/packages/ui/src/branding/BuildMeta.d.ts +6 -0
  64. package/dist/_types/packages/ui/src/branding/PublicFooter.d.ts +6 -0
  65. package/dist/_types/packages/ui/src/branding/index.d.ts +2 -0
  66. package/dist/_types/packages/ui/src/data-display/DataTablePagination.d.ts +12 -0
  67. package/dist/_types/packages/ui/src/data-display/DataTableShell.d.ts +35 -0
  68. package/dist/_types/packages/ui/src/data-display/RowActionsCell.d.ts +7 -0
  69. package/dist/_types/packages/ui/src/data-display/TableEmptyState.d.ts +8 -0
  70. package/dist/_types/packages/ui/src/data-display/TableStatusTag.d.ts +8 -0
  71. package/dist/_types/packages/ui/src/data-display/index.d.ts +5 -0
  72. package/dist/_types/packages/ui/src/feedback/comingsoon/ComingSoon.d.ts +7 -0
  73. package/dist/_types/packages/ui/src/feedback/emptystate/EmptyState.d.ts +15 -0
  74. package/dist/_types/packages/ui/src/feedback/errorstate/ErrorState.d.ts +14 -0
  75. package/dist/_types/packages/ui/src/feedback/errorstate/MicrofrontendErrorBoundary.d.ts +16 -0
  76. package/dist/_types/packages/ui/src/feedback/index.d.ts +5 -0
  77. package/dist/_types/packages/ui/src/feedback/loadingstate/LoadingState.d.ts +5 -0
  78. package/dist/_types/packages/ui/src/forms/CaseFormsGrid.d.ts +1 -0
  79. package/dist/_types/packages/ui/src/forms/index.d.ts +1 -0
  80. package/dist/_types/packages/ui/src/index.d.ts +16 -0
  81. package/dist/_types/packages/ui/src/layout/PageShell/PageShell.d.ts +9 -0
  82. package/dist/_types/packages/ui/src/layout/SectionCard/SectionCard.d.ts +11 -0
  83. package/dist/_types/packages/ui/src/layout/index.d.ts +2 -0
  84. package/dist/_types/packages/ui/src/navigation/appmenu/AppGridContent.d.ts +12 -0
  85. package/dist/_types/packages/ui/src/navigation/appmenu/AppMenu.component.d.ts +6 -0
  86. package/dist/_types/packages/ui/src/navigation/appmenu/AppMenuItem.component.d.ts +13 -0
  87. package/dist/_types/packages/ui/src/navigation/appmenu/appMenuGroups.d.ts +11 -0
  88. package/dist/_types/packages/ui/src/navigation/breadcrumbs/AppBreadcrumbs.d.ts +12 -0
  89. package/dist/_types/packages/ui/src/navigation/breadcrumbs/BreadcrumbBar.d.ts +10 -0
  90. package/dist/_types/packages/ui/src/navigation/index.d.ts +2 -0
  91. package/dist/_types/packages/ui/src/navigation/sidenav/ClientSideNav.d.ts +14 -0
  92. package/dist/_types/packages/ui/src/notifications/FormInlineAlert.d.ts +7 -0
  93. package/dist/_types/packages/ui/src/notifications/NotificationsPanel.d.ts +14 -0
  94. package/dist/_types/packages/ui/src/notifications/index.d.ts +4 -0
  95. package/dist/_types/packages/ui/src/notifications/toast/ToastProvider.d.ts +20 -0
  96. package/dist/_types/packages/ui/src/notifications/toast/useToast.d.ts +20 -0
  97. package/dist/_types/packages/ui/src/overlays/header-panel/ReusableHeaderPanel.d.ts +17 -0
  98. package/dist/_types/packages/ui/src/overlays/header-panel/header-panel.context.d.ts +23 -0
  99. package/dist/_types/packages/ui/src/overlays/index.d.ts +4 -0
  100. package/dist/_types/packages/ui/src/overlays/modal/ReusableModal.d.ts +20 -0
  101. package/dist/_types/packages/ui/src/overlays/modal/modal.context.d.ts +14 -0
  102. package/dist/_types/packages/ui/src/shell/ExternalAppHeader.d.ts +22 -0
  103. package/dist/_types/packages/ui/src/shell/PublicHeader.component.d.ts +8 -0
  104. package/dist/_types/packages/ui/src/shell/UserHeader.component.d.ts +17 -0
  105. package/dist/_types/packages/ui/src/shell/index.d.ts +5 -0
  106. package/dist/_types/packages/ui/src/theme/ThemeProvider.d.ts +8 -0
  107. package/dist/_types/packages/ui/src/theme/index.d.ts +1 -0
  108. package/dist/_types/packages/ui/src/utils/severity.d.ts +22 -0
  109. package/dist/_types/packages/ui/src/utils/status.d.ts +1 -0
  110. package/dist/api.js +44 -0
  111. package/dist/api.js.map +1 -0
  112. package/dist/assets/data-validation-lOVvOVbh.css +1 -0
  113. package/dist/assets/dqa.api-CFS6woCz.js +158 -0
  114. package/dist/assets/dqa.api-CFS6woCz.js.map +1 -0
  115. package/dist/assets/root.component-Cj9uPVaA.js +981 -0
  116. package/dist/assets/root.component-Cj9uPVaA.js.map +1 -0
  117. package/dist/index.d.ts +1 -0
  118. package/dist/index.js +49 -0
  119. package/dist/index.js.map +1 -0
  120. package/dist/routes.d.ts +1 -0
  121. package/dist/routes.js +33 -0
  122. package/dist/routes.js.map +1 -0
  123. package/dist/single-spa.d.ts +1 -0
  124. package/dist/single-spa.js +32 -0
  125. package/dist/single-spa.js.map +1 -0
  126. package/package.json +53 -4
@@ -0,0 +1 @@
1
+ export * from "./dqa.api";
@@ -0,0 +1 @@
1
+ export declare function DQAEnginePanel(): import("react").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare function DQAFlagsPanel({ runId }: {
2
+ runId: number;
3
+ }): import("react").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { type DQARule, type DQARuleInput } from "../../dqa.types";
2
+ type Props = {
3
+ tableOptions: string[];
4
+ initialRule?: DQARule;
5
+ isSubmitting: boolean;
6
+ onSubmit: (rule: DQARuleInput) => Promise<void> | void;
7
+ onClose: () => void;
8
+ };
9
+ export declare function DQARuleForm({ tableOptions, initialRule, isSubmitting, onSubmit, onClose }: Props): import("react").JSX.Element;
10
+ export {};
@@ -0,0 +1 @@
1
+ export declare function DQARuleMappingPanel(): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function DQARulesPanel(): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function DQARunsPanel(): import("react").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import type { DQARunScope, DQATableMapping } from "../../dqa.types";
2
+ type Props = {
3
+ table: DQATableMapping;
4
+ isRunning: boolean;
5
+ isScheduling: boolean;
6
+ onRunNow: (scope: DQARunScope) => Promise<void> | void;
7
+ onRunLater: (scope: DQARunScope, scheduledAt: Date) => Promise<void> | void;
8
+ onClose: () => void;
9
+ };
10
+ export declare function DQAScheduleRunModal({ table, isRunning, isScheduling, onRunNow, onRunLater, onClose, }: Props): import("react").JSX.Element;
11
+ export {};
@@ -0,0 +1,9 @@
1
+ import type { DQATableMapping } from "../../dqa.types";
2
+ type Props = {
3
+ initialTable?: DQATableMapping;
4
+ isSubmitting: boolean;
5
+ onSubmit: (table: DQATableMapping) => Promise<void> | void;
6
+ onClose: () => void;
7
+ };
8
+ export declare function DQATableForm({ initialTable, isSubmitting, onSubmit, onClose }: Props): import("react").JSX.Element;
9
+ export {};
@@ -0,0 +1 @@
1
+ export declare function DQATablesPanel(): import("react").JSX.Element;
@@ -0,0 +1,144 @@
1
+ export type DQARuleType = "metric" | "row_expression" | "row_join" | "aggregate_compare" | "reference" | "raw_sql";
2
+ export declare const DQA_RULE_TYPES: {
3
+ value: DQARuleType;
4
+ label: string;
5
+ description: string;
6
+ }[];
7
+ export type DQAZones = {
8
+ warn: string;
9
+ fail: string;
10
+ };
11
+ export type DQATableMapping = {
12
+ table_id: string;
13
+ physical_table: string;
14
+ description?: string;
15
+ is_active: boolean;
16
+ /** Column holding the reporting period, used to scope a run. */
17
+ period_column?: string;
18
+ /** Columns kept on each flag. Empty keeps every identifying column. */
19
+ dim_columns: string[];
20
+ /** Columns offered as filters when launching a run. */
21
+ filter_columns: string[];
22
+ };
23
+ export type DQAPhysicalColumn = {
24
+ name: string;
25
+ type: string;
26
+ };
27
+ export type DQARule = {
28
+ id: number;
29
+ identity: string;
30
+ code: string;
31
+ table_id: string;
32
+ type: DQARuleType;
33
+ category: string;
34
+ name: string;
35
+ enabled: boolean;
36
+ row_filter?: string;
37
+ group_by?: string[];
38
+ zones: DQAZones;
39
+ definition: Record<string, unknown>;
40
+ compiled_sql?: string;
41
+ created_by?: string;
42
+ created_at: string;
43
+ updated_at: string;
44
+ };
45
+ export type DQARuleInput = {
46
+ code: string;
47
+ table_id: string;
48
+ type: DQARuleType;
49
+ category?: string;
50
+ name?: string;
51
+ enabled?: boolean;
52
+ row_filter?: string;
53
+ group_by?: string[];
54
+ zones: DQAZones;
55
+ definition: Record<string, unknown>;
56
+ };
57
+ export type DQACompilePreview = {
58
+ kind: string;
59
+ measure_sql: string;
60
+ sample_sql?: string;
61
+ };
62
+ export type DQARunResult = {
63
+ run_id: number;
64
+ table_id: string;
65
+ rules_evaluated: number;
66
+ total_flags: number;
67
+ fails: number;
68
+ warns: number;
69
+ compile_errors?: {
70
+ code: string;
71
+ error: string;
72
+ }[];
73
+ };
74
+ export type DQARunSummary = {
75
+ id: number;
76
+ table_id: string;
77
+ run_at: string;
78
+ rules_evaluated: number;
79
+ total_flags: number;
80
+ errors: number;
81
+ warnings: number;
82
+ triggered_by?: string;
83
+ };
84
+ export type DQAFlag = {
85
+ id: number;
86
+ run_id: number;
87
+ table_id: string;
88
+ rule_code: string;
89
+ severity: "warn" | "fail";
90
+ category: string;
91
+ detail: string;
92
+ entity_id?: string;
93
+ period_date?: string;
94
+ district?: string;
95
+ entity_name?: string;
96
+ row_id?: string;
97
+ dims?: Record<string, unknown>;
98
+ comment?: string;
99
+ };
100
+ export type DQARunPeriod = {
101
+ year: number;
102
+ month: number;
103
+ };
104
+ export type DQARunFilter = {
105
+ column: string;
106
+ value: string;
107
+ };
108
+ /** Narrows a scan to chosen reporting periods and filter values. */
109
+ export type DQARunScope = {
110
+ periods: DQARunPeriod[];
111
+ filters: DQARunFilter[];
112
+ };
113
+ export type DQAScheduledRun = {
114
+ id: number;
115
+ table_id: string;
116
+ scope: DQARunScope;
117
+ scheduled_at: string;
118
+ status: "pending" | "running" | "done" | "failed" | "cancelled";
119
+ created_by?: string;
120
+ created_at: string;
121
+ started_at?: string;
122
+ finished_at?: string;
123
+ run_id?: number;
124
+ error?: string;
125
+ };
126
+ /** An existing rule from another table, checked against a target table. */
127
+ export type DQARuleMappingCandidate = {
128
+ code: string;
129
+ source_table_id: string;
130
+ type: string;
131
+ category?: string;
132
+ name?: string;
133
+ mappable: boolean;
134
+ reason?: string;
135
+ already_on_table: boolean;
136
+ };
137
+ export type DQARuleMappingResult = {
138
+ table_id: string;
139
+ applied: string[];
140
+ failed: {
141
+ code: string;
142
+ error: string;
143
+ }[];
144
+ };
@@ -0,0 +1,4 @@
1
+ export { DataValidationRoot } from "./root.component";
2
+ export * from "./api";
3
+ export { dataValidationRoute } from "./routes";
4
+ export { default as DataValidationPage } from "./pages/data-validation.page";
@@ -0,0 +1 @@
1
+ export default function DataValidationPage(): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { MicrofrontendRuntimeProps } from "../../../packages/microfrontend/src/index.js";
2
+ export declare function DataValidationRoot(props: MicrofrontendRuntimeProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { MicrofrontendRoute } from "../../../packages/microfrontend/src/index.js";
2
+ export declare const dataValidationRoute: MicrofrontendRoute;
@@ -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,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";