fixed refs

This commit is contained in:
Bojan Kucera 2025-06-03 15:53:26 -04:00
parent 62baac7640
commit 24e82bbb78
5 changed files with 21 additions and 73 deletions

5
.gitignore vendored
View file

@ -7,6 +7,10 @@ node_modules/
dist/
build/
.next/
*.js
*.js.map
*.d.ts
# Environment variables
.env
@ -28,6 +32,7 @@ pids
*.pid
*.seed
*.pid.lock
*.tsbuildinfo
# Coverage directory used by tools like istanbul
coverage/

View file

@ -1,69 +0,0 @@
// Configuration Types
export interface DatabaseConfig {
questdb: {
host: string;
port: number;
database: string;
};
postgres: {
host: string;
port: number;
database: string;
username: string;
password: string;
};
dragonfly: {
host: string;
port: number;
password?: string;
};
mongodb?: {
uri: string;
database: string;
};
}
export interface BrokerConfig {
name: string;
apiKey: string;
secretKey: string;
baseUrl: string;
sandbox: boolean;
rateLimit?: {
maxRequestsPerSecond: number;
maxRequestsPerMinute: number;
};
}
export interface DataProviderConfig {
name: string;
apiKey: string;
baseUrl: string;
rateLimits: {
requestsPerSecond: number;
requestsPerDay: number;
};
}
export interface LoggingConfig {
level: 'debug' | 'info' | 'warn' | 'error';
format: 'json' | 'text';
destination: 'console' | 'file' | 'both';
filePath?: string;
}
export interface SystemConfig {
databases: DatabaseConfig;
brokers: BrokerConfig[];
dataProviders: DataProviderConfig[];
logging: LoggingConfig;
services: {
[key: string]: ServiceConfig;
};
}
interface ServiceConfig {
port: number;
host: string;
dependencies: string[];
}

View file

@ -15,6 +15,3 @@ export * from './events/events';
// API Types
export * from './api/api';
// Configuration Types
export * from './config/config';

View file

@ -8,5 +8,8 @@
"include": [
"src/**/*"
],
"exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.spec.ts"]
"exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.spec.ts"],
"references": [
{ "path": "../config" }
]
}

View file

@ -26,15 +26,27 @@
"resolveJsonModule": true,
"sourceMap": true,
"declaration": true,
"disableReferencedProjectLoad": true,
"disableSourceOfProjectReferenceRedirect": false,
// Paths and output
"baseUrl": ".",
"paths": {
"@stock-bot/*": ["libs/*/src"]
}
},
"exclude": [
"node_modules",
"dist"
],
"references": [
{ "path": "./libs/api-client" },
{ "path": "./libs/config" },
{ "path": "./libs/event-bus" },
{ "path": "./libs/http-client" },
{ "path": "./libs/shared-types" },
{ "path": "./libs/utils" },
]
}