Fix TypeScript build errors

- Remove duplicate EscalationLevel export from regulatory.ts
- Add missing logger.ts and reports.ts files to audit package
- Fix treasury package type issues
- Clean dist folders and rebuild
This commit is contained in:
defiQUG
2026-01-23 14:53:05 -08:00
parent 8c771da399
commit aedf572b99
185 changed files with 2925 additions and 4 deletions

3
apps/web/src/App.d.ts vendored Normal file
View File

@@ -0,0 +1,3 @@
declare function App(): import("react/jsx-runtime").JSX.Element;
export default App;
//# sourceMappingURL=App.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["App.tsx"],"names":[],"mappings":"AAMA,iBAAS,GAAG,4CAuDX;AAED,eAAe,GAAG,CAAC"}

11
apps/web/src/App.js Normal file
View File

@@ -0,0 +1,11 @@
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { BrowserRouter, Routes, Route, Link } from 'react-router-dom';
import DashboardPage from './pages/DashboardPage';
import TransactionsPage from './pages/TransactionsPage';
import TreasuryPage from './pages/TreasuryPage';
import ReportsPage from './pages/ReportsPage';
function App() {
return (_jsx(BrowserRouter, { children: _jsxs("div", { className: "min-h-screen bg-gray-50", children: [_jsx("nav", { className: "bg-white shadow-sm border-b", children: _jsx("div", { className: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8", children: _jsx("div", { className: "flex justify-between h-16", children: _jsxs("div", { className: "flex", children: [_jsx("div", { className: "flex-shrink-0 flex items-center", children: _jsx("h1", { className: "text-xl font-bold text-gray-900", children: "Brazil SWIFT Operations" }) }), _jsxs("div", { className: "hidden sm:ml-6 sm:flex sm:space-x-8", children: [_jsx(Link, { to: "/", className: "border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium", children: "Dashboard" }), _jsx(Link, { to: "/transactions", className: "border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium", children: "Transactions" }), _jsx(Link, { to: "/treasury", className: "border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium", children: "Treasury" }), _jsx(Link, { to: "/reports", className: "border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium", children: "Reports" })] })] }) }) }) }), _jsx("main", { className: "max-w-7xl mx-auto py-6 sm:px-6 lg:px-8", children: _jsxs(Routes, { children: [_jsx(Route, { path: "/", element: _jsx(DashboardPage, {}) }), _jsx(Route, { path: "/transactions", element: _jsx(TransactionsPage, {}) }), _jsx(Route, { path: "/treasury", element: _jsx(TreasuryPage, {}) }), _jsx(Route, { path: "/reports", element: _jsx(ReportsPage, {}) })] }) })] }) }));
}
export default App;
//# sourceMappingURL=App.js.map

1
apps/web/src/App.js.map Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"App.js","sourceRoot":"","sources":["App.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,aAAa,MAAM,uBAAuB,CAAC;AAClD,OAAO,gBAAgB,MAAM,0BAA0B,CAAC;AACxD,OAAO,YAAY,MAAM,sBAAsB,CAAC;AAChD,OAAO,WAAW,MAAM,qBAAqB,CAAC;AAE9C,SAAS,GAAG;IACV,OAAO,CACL,KAAC,aAAa,cACZ,eAAK,SAAS,EAAC,yBAAyB,aACtC,cAAK,SAAS,EAAC,6BAA6B,YAC1C,cAAK,SAAS,EAAC,wCAAwC,YACrD,cAAK,SAAS,EAAC,2BAA2B,YACxC,eAAK,SAAS,EAAC,MAAM,aACnB,cAAK,SAAS,EAAC,iCAAiC,YAC9C,aAAI,SAAS,EAAC,iCAAiC,wCAE1C,GACD,EACN,eAAK,SAAS,EAAC,qCAAqC,aAClD,KAAC,IAAI,IACH,EAAE,EAAC,GAAG,EACN,SAAS,EAAC,8IAA8I,0BAGnJ,EACP,KAAC,IAAI,IACH,EAAE,EAAC,eAAe,EAClB,SAAS,EAAC,8IAA8I,6BAGnJ,EACP,KAAC,IAAI,IACH,EAAE,EAAC,WAAW,EACd,SAAS,EAAC,8IAA8I,yBAGnJ,EACP,KAAC,IAAI,IACH,EAAE,EAAC,UAAU,EACb,SAAS,EAAC,8IAA8I,wBAGnJ,IACH,IACF,GACF,GACF,GACF,EAEN,eAAM,SAAS,EAAC,wCAAwC,YACtD,MAAC,MAAM,eACL,KAAC,KAAK,IAAC,IAAI,EAAC,GAAG,EAAC,OAAO,EAAE,KAAC,aAAa,KAAG,GAAI,EAC9C,KAAC,KAAK,IAAC,IAAI,EAAC,eAAe,EAAC,OAAO,EAAE,KAAC,gBAAgB,KAAG,GAAI,EAC7D,KAAC,KAAK,IAAC,IAAI,EAAC,WAAW,EAAC,OAAO,EAAE,KAAC,YAAY,KAAG,GAAI,EACrD,KAAC,KAAK,IAAC,IAAI,EAAC,UAAU,EAAC,OAAO,EAAE,KAAC,WAAW,KAAG,GAAI,IAC5C,GACJ,IACH,GACQ,CACjB,CAAC;AACJ,CAAC;AAED,eAAe,GAAG,CAAC"}

2
apps/web/src/main.d.ts vendored Normal file
View File

@@ -0,0 +1,2 @@
import './index.css';
//# sourceMappingURL=main.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["main.tsx"],"names":[],"mappings":"AAGA,OAAO,aAAa,CAAC"}

7
apps/web/src/main.js Normal file
View File

@@ -0,0 +1,7 @@
import { jsx as _jsx } from "react/jsx-runtime";
import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
import './index.css';
ReactDOM.createRoot(document.getElementById('root')).render(_jsx(React.StrictMode, { children: _jsx(App, {}) }));
//# sourceMappingURL=main.js.map

1
apps/web/src/main.js.map Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"main.js","sourceRoot":"","sources":["main.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,QAAQ,MAAM,kBAAkB,CAAC;AACxC,OAAO,GAAG,MAAM,OAAO,CAAC;AACxB,OAAO,aAAa,CAAC;AAErB,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAE,CAAC,CAAC,MAAM,CAC1D,KAAC,KAAK,CAAC,UAAU,cACf,KAAC,GAAG,KAAG,GACU,CACpB,CAAC"}

2
apps/web/src/pages/DashboardPage.d.ts vendored Normal file
View File

@@ -0,0 +1,2 @@
export default function DashboardPage(): import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=DashboardPage.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"DashboardPage.d.ts","sourceRoot":"","sources":["DashboardPage.tsx"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,aAAa,4CASpC"}

View File

@@ -0,0 +1,5 @@
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
export default function DashboardPage() {
return (_jsx("div", { className: "px-4 py-6 sm:px-0", children: _jsxs("div", { className: "border-4 border-dashed border-gray-200 rounded-lg h-96 p-8", children: [_jsx("h1", { className: "text-2xl font-bold mb-4", children: "Dashboard" }), _jsx("p", { className: "text-gray-600", children: "Brazil SWIFT Operations Platform" })] }) }));
}
//# sourceMappingURL=DashboardPage.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"DashboardPage.js","sourceRoot":"","sources":["DashboardPage.tsx"],"names":[],"mappings":";AAEA,MAAM,CAAC,OAAO,UAAU,aAAa;IACnC,OAAO,CACL,cAAK,SAAS,EAAC,mBAAmB,YAChC,eAAK,SAAS,EAAC,4DAA4D,aACzE,aAAI,SAAS,EAAC,yBAAyB,0BAAe,EACtD,YAAG,SAAS,EAAC,eAAe,iDAAqC,IAC7D,GACF,CACP,CAAC;AACJ,CAAC"}

2
apps/web/src/pages/ReportsPage.d.ts vendored Normal file
View File

@@ -0,0 +1,2 @@
export default function ReportsPage(): import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=ReportsPage.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ReportsPage.d.ts","sourceRoot":"","sources":["ReportsPage.tsx"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,WAAW,4CAOlC"}

View File

@@ -0,0 +1,5 @@
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
export default function ReportsPage() {
return (_jsxs("div", { className: "px-4 py-6 sm:px-0", children: [_jsx("h1", { className: "text-2xl font-bold mb-4", children: "ReportsPage" }), _jsx("p", { className: "text-gray-600", children: "ReportsPage interface" })] }));
}
//# sourceMappingURL=ReportsPage.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ReportsPage.js","sourceRoot":"","sources":["ReportsPage.tsx"],"names":[],"mappings":";AAEA,MAAM,CAAC,OAAO,UAAU,WAAW;IACjC,OAAO,CACL,eAAK,SAAS,EAAC,mBAAmB,aAChC,aAAI,SAAS,EAAC,yBAAyB,4BAAiB,EACxD,YAAG,SAAS,EAAC,eAAe,sCAA0B,IAClD,CACP,CAAC;AACJ,CAAC"}

View File

@@ -0,0 +1,2 @@
export default function TransactionsPage(): import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=TransactionsPage.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"TransactionsPage.d.ts","sourceRoot":"","sources":["TransactionsPage.tsx"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,gBAAgB,4CAOvC"}

View File

@@ -0,0 +1,5 @@
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
export default function TransactionsPage() {
return (_jsxs("div", { className: "px-4 py-6 sm:px-0", children: [_jsx("h1", { className: "text-2xl font-bold mb-4", children: "TransactionsPage" }), _jsx("p", { className: "text-gray-600", children: "TransactionsPage interface" })] }));
}
//# sourceMappingURL=TransactionsPage.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"TransactionsPage.js","sourceRoot":"","sources":["TransactionsPage.tsx"],"names":[],"mappings":";AAEA,MAAM,CAAC,OAAO,UAAU,gBAAgB;IACtC,OAAO,CACL,eAAK,SAAS,EAAC,mBAAmB,aAChC,aAAI,SAAS,EAAC,yBAAyB,iCAAsB,EAC7D,YAAG,SAAS,EAAC,eAAe,2CAA+B,IACvD,CACP,CAAC;AACJ,CAAC"}

2
apps/web/src/pages/TreasuryPage.d.ts vendored Normal file
View File

@@ -0,0 +1,2 @@
export default function TreasuryPage(): import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=TreasuryPage.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"TreasuryPage.d.ts","sourceRoot":"","sources":["TreasuryPage.tsx"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,YAAY,4CAOnC"}

View File

@@ -0,0 +1,5 @@
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
export default function TreasuryPage() {
return (_jsxs("div", { className: "px-4 py-6 sm:px-0", children: [_jsx("h1", { className: "text-2xl font-bold mb-4", children: "TreasuryPage" }), _jsx("p", { className: "text-gray-600", children: "TreasuryPage interface" })] }));
}
//# sourceMappingURL=TreasuryPage.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"TreasuryPage.js","sourceRoot":"","sources":["TreasuryPage.tsx"],"names":[],"mappings":";AAEA,MAAM,CAAC,OAAO,UAAU,YAAY;IAClC,OAAO,CACL,eAAK,SAAS,EAAC,mBAAmB,aAChC,aAAI,SAAS,EAAC,yBAAyB,6BAAkB,EACzD,YAAG,SAAS,EAAC,eAAe,uCAA2B,IACnD,CACP,CAAC;AACJ,CAAC"}

View File

@@ -0,0 +1,10 @@
import type { Transaction, BrazilRegulatoryResult } from '@brazil-swift-ops/types';
interface TransactionStore {
transactions: Transaction[];
results: Map<string, BrazilRegulatoryResult>;
addTransaction: (txn: Transaction) => void;
evaluateTransaction: (txn: Transaction) => BrazilRegulatoryResult;
}
export declare const useTransactionStore: import("zustand").UseBoundStore<import("zustand").StoreApi<TransactionStore>>;
export {};
//# sourceMappingURL=transactionStore.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"transactionStore.d.ts","sourceRoot":"","sources":["transactionStore.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAGnF,UAAU,gBAAgB;IACxB,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC;IAC7C,cAAc,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,IAAI,CAAC;IAC3C,mBAAmB,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,sBAAsB,CAAC;CACnE;AAED,eAAO,MAAM,mBAAmB,+EAiB7B,CAAC"}

View File

@@ -0,0 +1,21 @@
import { create } from 'zustand';
import { evaluateTransaction } from '@brazil-swift-ops/rules-engine';
export const useTransactionStore = create((set) => ({
transactions: [],
results: new Map(),
addTransaction: (txn) => {
const result = evaluateTransaction(txn);
set((state) => ({
transactions: [...state.transactions, txn],
results: new Map(state.results).set(txn.id, result),
}));
},
evaluateTransaction: (txn) => {
const result = evaluateTransaction(txn);
set((state) => ({
results: new Map(state.results).set(txn.id, result),
}));
return result;
},
}));
//# sourceMappingURL=transactionStore.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"transactionStore.js","sourceRoot":"","sources":["transactionStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEjC,OAAO,EAAE,mBAAmB,EAAiB,MAAM,gCAAgC,CAAC;AASpF,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAmB,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;IACpE,YAAY,EAAE,EAAE;IAChB,OAAO,EAAE,IAAI,GAAG,EAAE;IAClB,cAAc,EAAE,CAAC,GAAG,EAAE,EAAE;QACtB,MAAM,MAAM,GAAG,mBAAmB,CAAC,GAAG,CAAC,CAAC;QACxC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;YACd,YAAY,EAAE,CAAC,GAAG,KAAK,CAAC,YAAY,EAAE,GAAG,CAAC;YAC1C,OAAO,EAAE,IAAI,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,EAAE,MAAM,CAAC;SACpD,CAAC,CAAC,CAAC;IACN,CAAC;IACD,mBAAmB,EAAE,CAAC,GAAG,EAAE,EAAE;QAC3B,MAAM,MAAM,GAAG,mBAAmB,CAAC,GAAG,CAAC,CAAC;QACxC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;YACd,OAAO,EAAE,IAAI,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,EAAE,MAAM,CAAC;SACpD,CAAC,CAAC,CAAC;QACJ,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAC,CAAC,CAAC"}