fixed refs
This commit is contained in:
parent
62baac7640
commit
24e82bbb78
5 changed files with 21 additions and 73 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
|
@ -7,6 +7,10 @@ node_modules/
|
||||||
dist/
|
dist/
|
||||||
build/
|
build/
|
||||||
.next/
|
.next/
|
||||||
|
*.js
|
||||||
|
*.js.map
|
||||||
|
*.d.ts
|
||||||
|
|
||||||
|
|
||||||
# Environment variables
|
# Environment variables
|
||||||
.env
|
.env
|
||||||
|
|
@ -28,6 +32,7 @@ pids
|
||||||
*.pid
|
*.pid
|
||||||
*.seed
|
*.seed
|
||||||
*.pid.lock
|
*.pid.lock
|
||||||
|
*.tsbuildinfo
|
||||||
|
|
||||||
# Coverage directory used by tools like istanbul
|
# Coverage directory used by tools like istanbul
|
||||||
coverage/
|
coverage/
|
||||||
|
|
|
||||||
|
|
@ -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[];
|
|
||||||
}
|
|
||||||
|
|
@ -15,6 +15,3 @@ export * from './events/events';
|
||||||
|
|
||||||
// API Types
|
// API Types
|
||||||
export * from './api/api';
|
export * from './api/api';
|
||||||
|
|
||||||
// Configuration Types
|
|
||||||
export * from './config/config';
|
|
||||||
|
|
|
||||||
|
|
@ -8,5 +8,8 @@
|
||||||
"include": [
|
"include": [
|
||||||
"src/**/*"
|
"src/**/*"
|
||||||
],
|
],
|
||||||
"exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.spec.ts"]
|
"exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.spec.ts"],
|
||||||
|
"references": [
|
||||||
|
{ "path": "../config" }
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,15 +26,27 @@
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
|
"disableReferencedProjectLoad": true,
|
||||||
|
"disableSourceOfProjectReferenceRedirect": false,
|
||||||
|
|
||||||
// Paths and output
|
// Paths and output
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@stock-bot/*": ["libs/*/src"]
|
"@stock-bot/*": ["libs/*/src"]
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"node_modules",
|
"node_modules",
|
||||||
"dist"
|
"dist"
|
||||||
|
],
|
||||||
|
"references": [
|
||||||
|
{ "path": "./libs/api-client" },
|
||||||
|
{ "path": "./libs/config" },
|
||||||
|
{ "path": "./libs/event-bus" },
|
||||||
|
{ "path": "./libs/http-client" },
|
||||||
|
{ "path": "./libs/shared-types" },
|
||||||
|
{ "path": "./libs/utils" },
|
||||||
]
|
]
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue