parcepatacore-compliance-review-react 1.0.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 +24 -0
- package/dist/compliance-review-react.cjs.js +9 -0
- package/dist/compliance-review-react.es.js +2706 -0
- package/dist/components/CaseStatusBadge.d.ts +6 -0
- package/dist/components/CaseSummaryCard.d.ts +8 -0
- package/dist/components/MakerCheckerApprovalCard.d.ts +8 -0
- package/dist/components/PriorityChip.d.ts +6 -0
- package/dist/components/ReviewProvider.d.ts +14 -0
- package/dist/components/ReviewQueueWidget.d.ts +7 -0
- package/dist/components/SlaMonitorWidget.d.ts +3 -0
- package/dist/index.d.ts +9 -0
- package/dist/services/apiClient.d.ts +4 -0
- package/dist/types/index.d.ts +27 -0
- package/package.json +45 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { CRMakerChecker } from '../types';
|
|
3
|
+
|
|
4
|
+
export interface MakerCheckerApprovalCardProps {
|
|
5
|
+
submission: CRMakerChecker;
|
|
6
|
+
onDecisionSubmitted?: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const MakerCheckerApprovalCard: React.FC<MakerCheckerApprovalCardProps>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
interface ComplianceContextType {
|
|
4
|
+
baseUrl: string;
|
|
5
|
+
tenantId: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const useCompliance: () => ComplianceContextType;
|
|
8
|
+
export interface ComplianceProviderProps {
|
|
9
|
+
baseUrl?: string;
|
|
10
|
+
tenantId?: string;
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export declare const ComplianceProvider: React.FC<ComplianceProviderProps>;
|
|
14
|
+
export {};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './types';
|
|
2
|
+
export * from './services/apiClient';
|
|
3
|
+
export * from './components/ReviewProvider';
|
|
4
|
+
export * from './components/CaseStatusBadge';
|
|
5
|
+
export * from './components/PriorityChip';
|
|
6
|
+
export * from './components/CaseSummaryCard';
|
|
7
|
+
export * from './components/MakerCheckerApprovalCard';
|
|
8
|
+
export * from './components/ReviewQueueWidget';
|
|
9
|
+
export * from './components/SlaMonitorWidget';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export type CasePriority = 'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW';
|
|
2
|
+
export type CaseStatus = 'NEW' | 'IN_REVIEW' | 'PENDING_DECISION' | 'ESCALATED' | 'APPROVED' | 'REJECTED' | 'REMEDIATION_REQUIRED';
|
|
3
|
+
export interface CRCase {
|
|
4
|
+
id: string;
|
|
5
|
+
case_number: string;
|
|
6
|
+
customer_id: string;
|
|
7
|
+
customer_name: string;
|
|
8
|
+
entity_type: string;
|
|
9
|
+
case_type: string;
|
|
10
|
+
priority: CasePriority;
|
|
11
|
+
status: CaseStatus;
|
|
12
|
+
assigned_officer?: string | null;
|
|
13
|
+
risk_score: number;
|
|
14
|
+
risk_tier: string;
|
|
15
|
+
created_at: string;
|
|
16
|
+
}
|
|
17
|
+
export interface CRMakerChecker {
|
|
18
|
+
id: string;
|
|
19
|
+
case_id: string;
|
|
20
|
+
case_number?: string;
|
|
21
|
+
customer_name?: string;
|
|
22
|
+
proposed_decision: string;
|
|
23
|
+
maker_name: string;
|
|
24
|
+
maker_rationale: string;
|
|
25
|
+
checker_status: string;
|
|
26
|
+
created_at: string;
|
|
27
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "parcepatacore-compliance-review-react",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "React Component SDK for Athena Compliance Review & Maker-Checker Dual Control Engine",
|
|
5
|
+
"main": "dist/compliance-review-react.cjs.js",
|
|
6
|
+
"module": "dist/compliance-review-react.es.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/compliance-review-react.es.js",
|
|
11
|
+
"require": "./dist/compliance-review-react.cjs.js"
|
|
12
|
+
},
|
|
13
|
+
"./style.css": "./dist/style.css"
|
|
14
|
+
},
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public"
|
|
21
|
+
},
|
|
22
|
+
"type": "module",
|
|
23
|
+
"scripts": {
|
|
24
|
+
"dev": "vite",
|
|
25
|
+
"build": "tsc && vite build"
|
|
26
|
+
},
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
29
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@types/react": "^18.2.66",
|
|
33
|
+
"@types/react-dom": "^18.2.22",
|
|
34
|
+
"@vitejs/plugin-react": "^4.2.1",
|
|
35
|
+
"lucide-react": "^0.344.0",
|
|
36
|
+
"react": "^18.2.0",
|
|
37
|
+
"react-dom": "^18.2.0",
|
|
38
|
+
"typescript": "^5.2.2",
|
|
39
|
+
"vite": "^5.1.6",
|
|
40
|
+
"vite-plugin-dts": "^3.9.1"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"axios": "^1.6.7"
|
|
44
|
+
}
|
|
45
|
+
}
|