@moh-sso/state 0.0.0-stage → 1.4.0
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 +21 -2
- 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/auth/auth.slice.d.ts +14 -0
- package/dist/_types/packages/auth/src/auth/auth.types.d.ts +61 -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/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/index.d.ts +1 -0
- package/dist/index.js +100 -0
- package/package.json +38 -4
package/README.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
-
#
|
|
1
|
+
# State Package
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
`@moh-sso/state` owns the shared Redux store and global frontend state slices.
|
|
4
|
+
|
|
5
|
+
## Responsibilities
|
|
6
|
+
|
|
7
|
+
- Configure the global Redux store.
|
|
8
|
+
- Register RTK Query middleware.
|
|
9
|
+
- Provide global client/navigation state.
|
|
10
|
+
- Export selectors shared by shell and apps.
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
import { store, selectClients } from "@moh-sso/state";
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Development
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npm run build -w @moh-sso/state
|
|
22
|
+
```
|
|
@@ -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";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { AuthUser } from "./auth.types";
|
|
2
|
+
type AuthState = {
|
|
3
|
+
accessToken: string | null;
|
|
4
|
+
user: AuthUser | null;
|
|
5
|
+
loading: boolean;
|
|
6
|
+
loaded: boolean;
|
|
7
|
+
isAuthenticated: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const loginSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
10
|
+
user: AuthUser;
|
|
11
|
+
accessToken?: string | null;
|
|
12
|
+
}, "auth/loginSuccess">, logout: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"auth/logout">, setAccessToken: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "auth/setAccessToken">, authLoaded: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"auth/authLoaded">;
|
|
13
|
+
declare const _default: import("redux").Reducer<AuthState>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export interface AuthUser {
|
|
2
|
+
id: string;
|
|
3
|
+
username: string;
|
|
4
|
+
email?: string;
|
|
5
|
+
firstName?: string;
|
|
6
|
+
lastName?: string;
|
|
7
|
+
fullName?: string;
|
|
8
|
+
isAdmin: boolean;
|
|
9
|
+
isUser: boolean;
|
|
10
|
+
realmRoles: string[];
|
|
11
|
+
clientRoles: Record<string, string[]>;
|
|
12
|
+
permissions: Permission[];
|
|
13
|
+
systems: System[];
|
|
14
|
+
accessibleSystems: SystemAccess[];
|
|
15
|
+
enabled: boolean;
|
|
16
|
+
emailVerified: boolean;
|
|
17
|
+
requirePwdChange: boolean;
|
|
18
|
+
lastLoginAt?: string;
|
|
19
|
+
createdAt?: string;
|
|
20
|
+
updatedAt?: string;
|
|
21
|
+
healthContexts?: EffectiveHealthContext[];
|
|
22
|
+
activeHealthContext?: EffectiveHealthContext;
|
|
23
|
+
}
|
|
24
|
+
export type HealthContextType = "NATIONAL" | "REGION" | "DISTRICT" | "CITY" | "DIVISION" | "MUNICIPALITY" | "COUNTY" | "SUB_COUNTY" | "PARISH" | "FACILITY" | "PROGRAM" | "DEPARTMENT" | "TEAM" | "CUSTOM";
|
|
25
|
+
export type HealthContextScopeMode = "NODE_ONLY" | "NODE_AND_DESCENDANTS";
|
|
26
|
+
export interface EffectiveHealthContext {
|
|
27
|
+
id: string;
|
|
28
|
+
code: string;
|
|
29
|
+
name: string;
|
|
30
|
+
contextType: HealthContextType;
|
|
31
|
+
parentId?: string;
|
|
32
|
+
source: string;
|
|
33
|
+
metadata: Record<string, unknown>;
|
|
34
|
+
enabled: boolean;
|
|
35
|
+
version: number;
|
|
36
|
+
scopeMode: HealthContextScopeMode;
|
|
37
|
+
assignmentType: "DIRECT" | "GROUP" | "DEFAULT";
|
|
38
|
+
assignmentId: string;
|
|
39
|
+
sourceGroupId?: string;
|
|
40
|
+
sourceGroupPath?: string;
|
|
41
|
+
isDefault: boolean;
|
|
42
|
+
isActive: boolean;
|
|
43
|
+
}
|
|
44
|
+
export interface SystemAccess {
|
|
45
|
+
clientId: string;
|
|
46
|
+
displayName: string;
|
|
47
|
+
launchUrl?: string;
|
|
48
|
+
authenticatedLaunchUrl?: string;
|
|
49
|
+
icon?: string;
|
|
50
|
+
category?: string;
|
|
51
|
+
navigation?: string;
|
|
52
|
+
systemType?: "platform" | "external";
|
|
53
|
+
displayInLauncher?: boolean;
|
|
54
|
+
displayInSideNav?: boolean;
|
|
55
|
+
launchMode?: "internal" | "new_tab" | "same_tab";
|
|
56
|
+
sortOrder?: number;
|
|
57
|
+
roles: string[];
|
|
58
|
+
}
|
|
59
|
+
export type Role = string;
|
|
60
|
+
export type System = string;
|
|
61
|
+
export type Permission = "portal:access" | "systems:read" | "systems:launch" | "users:read" | "users:write" | "users:roles:write" | "clients:read" | "clients:write" | "clients:roles:write" | "announcements:read" | "announcements:write" | "announcements:publish" | "documents:read" | "documents:write" | "documents:process" | "document_templates:read" | "document_templates:write" | "document_templates:publish" | "surveillance:read" | "surveillance:import" | "surveillance:manage_locations" | "surveillance:manage_alerts" | "email:read" | "email:send" | "email:manage" | "storage_locations:read" | "storage_locations:write" | "data_quality:read" | "data_quality:write" | "data_quality:resolve" | "issue_tracker:resolve" | "report_browser:read" | "report_scheduler:read" | "report_scheduler:create" | "report_scheduler:update" | "report_scheduler:delete" | "report_scheduler:execute" | "report_scheduler:history" | "report_scheduler:manage" | "outbreak:access" | "outbreak:manage" | "metrics:read" | "audit:read" | "notifications:read" | "notifications:write" | "rbac:read" | "rbac:write" | "rbac:roles:write" | "rbac:permissions:write" | "issue_tracker:read" | "issue_tracker:write" | "issue_tracker:manage" | "issue_tracker:assign" | "issue_tracker:close" | "issue_tracker:reopen" | "issue_tracker:comment";
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
export declare const API: {
|
|
2
|
+
readonly serviceBase: any;
|
|
3
|
+
readonly root: string;
|
|
4
|
+
readonly version: "v1";
|
|
5
|
+
readonly base: string;
|
|
6
|
+
readonly build: {
|
|
7
|
+
readonly version: () => string;
|
|
8
|
+
};
|
|
9
|
+
readonly auth: {
|
|
10
|
+
readonly base: `${string}/auth`;
|
|
11
|
+
readonly login: () => string;
|
|
12
|
+
readonly launch: () => string;
|
|
13
|
+
readonly callback: () => string;
|
|
14
|
+
readonly refresh: () => string;
|
|
15
|
+
readonly logout: () => string;
|
|
16
|
+
readonly me: () => string;
|
|
17
|
+
};
|
|
18
|
+
readonly healthContexts: {
|
|
19
|
+
readonly mine: () => string;
|
|
20
|
+
readonly explanation: (contextId: string) => string;
|
|
21
|
+
readonly select: () => string;
|
|
22
|
+
readonly admin: () => string;
|
|
23
|
+
readonly userAssignments: (userId: string) => string;
|
|
24
|
+
readonly groupAssignments: (groupId: string) => string;
|
|
25
|
+
};
|
|
26
|
+
readonly clients: {
|
|
27
|
+
readonly base: `${string}/clients`;
|
|
28
|
+
readonly list: () => string;
|
|
29
|
+
readonly byId: (id: string) => string;
|
|
30
|
+
readonly create: () => string;
|
|
31
|
+
readonly delete: (id: string) => string;
|
|
32
|
+
readonly update: (id: string) => string;
|
|
33
|
+
readonly roles: {
|
|
34
|
+
readonly list: (clientId: string) => string;
|
|
35
|
+
readonly create: (clientId: string) => string;
|
|
36
|
+
readonly delete: (clientId: string, role: string) => string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
readonly users: {
|
|
40
|
+
readonly base: `${string}/users`;
|
|
41
|
+
readonly list: () => string;
|
|
42
|
+
readonly byId: (id: string) => string;
|
|
43
|
+
readonly create: () => string;
|
|
44
|
+
readonly delete: (id: string) => string;
|
|
45
|
+
readonly update: (id: string) => string;
|
|
46
|
+
readonly resetPassword: (id: string) => string;
|
|
47
|
+
};
|
|
48
|
+
readonly visualizer: {
|
|
49
|
+
readonly themes: () => string;
|
|
50
|
+
readonly theme: () => string;
|
|
51
|
+
readonly hierarchy: () => string;
|
|
52
|
+
readonly dataValues: () => string;
|
|
53
|
+
readonly datasets: () => string;
|
|
54
|
+
readonly dataElements: () => string;
|
|
55
|
+
};
|
|
56
|
+
readonly issue: {
|
|
57
|
+
readonly list: () => string;
|
|
58
|
+
};
|
|
59
|
+
readonly dataValidation: {
|
|
60
|
+
readonly dqa: {
|
|
61
|
+
readonly tables: {
|
|
62
|
+
readonly list: () => string;
|
|
63
|
+
readonly upsert: () => string;
|
|
64
|
+
readonly remove: (tableId: string) => string;
|
|
65
|
+
};
|
|
66
|
+
readonly columns: (table: string) => string;
|
|
67
|
+
readonly rules: {
|
|
68
|
+
readonly list: (tableId?: string) => string;
|
|
69
|
+
readonly upsert: () => string;
|
|
70
|
+
readonly compile: () => string;
|
|
71
|
+
readonly mapping: {
|
|
72
|
+
readonly preview: () => string;
|
|
73
|
+
readonly apply: () => string;
|
|
74
|
+
};
|
|
75
|
+
readonly remove: (tableId: string, code: string) => string;
|
|
76
|
+
};
|
|
77
|
+
readonly run: () => string;
|
|
78
|
+
readonly schedules: {
|
|
79
|
+
readonly create: () => string;
|
|
80
|
+
readonly list: (status?: string) => string;
|
|
81
|
+
readonly cancel: (scheduleId: number | string) => string;
|
|
82
|
+
};
|
|
83
|
+
readonly runs: {
|
|
84
|
+
readonly list: (tableId?: string) => string;
|
|
85
|
+
readonly flags: (runId: number | string, severity?: string) => string;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
readonly admin: {
|
|
90
|
+
readonly base: `${string}/admin`;
|
|
91
|
+
readonly users: {
|
|
92
|
+
readonly list: () => string;
|
|
93
|
+
readonly byId: (id: string) => string;
|
|
94
|
+
readonly create: () => string;
|
|
95
|
+
readonly update: (id: string) => string;
|
|
96
|
+
readonly delete: (id: string) => string;
|
|
97
|
+
readonly toggle: (id: string) => string;
|
|
98
|
+
readonly resetPassword: (id: string) => string;
|
|
99
|
+
readonly passwordResetEmail: (id: string) => string;
|
|
100
|
+
readonly import: {
|
|
101
|
+
readonly preview: () => string;
|
|
102
|
+
readonly execute: () => string;
|
|
103
|
+
readonly job: (jobId: string) => string;
|
|
104
|
+
readonly errorsCsv: (jobId: string) => string;
|
|
105
|
+
readonly templateCsv: () => string;
|
|
106
|
+
};
|
|
107
|
+
readonly clientRoles: {
|
|
108
|
+
readonly list: (userId: string, clientId: string) => string;
|
|
109
|
+
readonly update: (userId: string) => string;
|
|
110
|
+
readonly assign: (userId: string, clientId: string) => string;
|
|
111
|
+
readonly remove: (userId: string, clientId: string, role: string) => string;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
readonly metrics: {
|
|
115
|
+
readonly overview: () => string;
|
|
116
|
+
readonly system: {
|
|
117
|
+
readonly countUsers: () => string;
|
|
118
|
+
readonly countDisabledUsers: () => string;
|
|
119
|
+
readonly activeToday: () => string;
|
|
120
|
+
readonly activeThisWeek: () => string;
|
|
121
|
+
readonly loginTrend: () => string;
|
|
122
|
+
readonly loginTrendRange: () => string;
|
|
123
|
+
};
|
|
124
|
+
readonly security: {
|
|
125
|
+
readonly failedLogins: () => string;
|
|
126
|
+
readonly failedLoginsRange: () => string;
|
|
127
|
+
readonly suspiciousLogins: () => string;
|
|
128
|
+
};
|
|
129
|
+
readonly clients: {
|
|
130
|
+
readonly count: () => string;
|
|
131
|
+
readonly mostAccessed: () => string;
|
|
132
|
+
readonly loginCount: () => string;
|
|
133
|
+
readonly activeToday: () => string;
|
|
134
|
+
};
|
|
135
|
+
readonly users: {
|
|
136
|
+
readonly newRange: () => string;
|
|
137
|
+
readonly newTrend: () => string;
|
|
138
|
+
readonly neverLoggedIn: () => string;
|
|
139
|
+
readonly lastLogin: (userId: string) => string;
|
|
140
|
+
readonly clientUsage: (userId: string) => string;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
readonly audit: {
|
|
144
|
+
readonly base: `${string}/admin/audit-logs`;
|
|
145
|
+
readonly list: () => string;
|
|
146
|
+
readonly actions: () => string;
|
|
147
|
+
readonly byId: (id: string) => string;
|
|
148
|
+
readonly metrics: {
|
|
149
|
+
readonly overview: () => string;
|
|
150
|
+
readonly failedLoginsByDay: () => string;
|
|
151
|
+
readonly topFailureIps: () => string;
|
|
152
|
+
};
|
|
153
|
+
readonly export: () => string;
|
|
154
|
+
};
|
|
155
|
+
readonly notifications: {
|
|
156
|
+
readonly base: `${string}/admin/notifications`;
|
|
157
|
+
readonly notify: () => string;
|
|
158
|
+
readonly list: () => string;
|
|
159
|
+
readonly byId: (id: string) => string;
|
|
160
|
+
readonly markAsRead: (id: string) => string;
|
|
161
|
+
readonly delete: (id: string) => string;
|
|
162
|
+
readonly count: () => string;
|
|
163
|
+
readonly countUnread: () => string;
|
|
164
|
+
readonly deleteOld: () => string;
|
|
165
|
+
readonly deliveries: (id: string) => string;
|
|
166
|
+
readonly deliveryList: () => string;
|
|
167
|
+
readonly deliveryMetrics: () => string;
|
|
168
|
+
readonly deliveryById: (deliveryId: string) => string;
|
|
169
|
+
readonly retryDelivery: (deliveryId: string) => string;
|
|
170
|
+
readonly cancelDelivery: (deliveryId: string) => string;
|
|
171
|
+
readonly testSms: () => string;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
readonly notifications: {
|
|
175
|
+
readonly preferences: () => string;
|
|
176
|
+
};
|
|
177
|
+
readonly health: () => string;
|
|
178
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { DocumentProcessType } from "../../../../types/src/index.js";
|
|
2
|
+
export type StandardTemplateKey = "" | "district_status" | "facility_metrics" | "alerts" | "lab_results";
|
|
3
|
+
export type StandardTemplate = {
|
|
4
|
+
key: Exclude<StandardTemplateKey, "">;
|
|
5
|
+
label: string;
|
|
6
|
+
requiredHeaders: string[];
|
|
7
|
+
optionalHeaders?: string[];
|
|
8
|
+
allowedExtensions: string[];
|
|
9
|
+
suggestedProcessType?: DocumentProcessType;
|
|
10
|
+
};
|
|
11
|
+
export declare const STANDARD_TEMPLATES: StandardTemplate[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type BackendErrorCode = "CLIENT_ALREADY_EXISTS" | "USER_ALREADY_EXISTS" | "INVALID_CLIENT_ID" | "VALIDATION_FAILED" | "UNAUTHORIZED" | "FORBIDDEN" | "CLIENT_DISABLED" | "USER_DISABLED" | "RATE_LIMITED" | "INTERNAL_ERROR";
|