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

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" }
]
}