stock-bot/apps/data-ingestion/src/handlers/index.ts
2025-06-21 22:30:19 -04:00

29 lines
No EOL
911 B
TypeScript

/**
* Handler auto-registration
* Import all handlers here to trigger auto-registration
*/
import type { IDataIngestionServices } from '@stock-bot/di';
import { createServiceAdapter } from '@stock-bot/di';
import { QMHandler } from './qm/qm.handler';
import { WebShareHandler } from './webshare/webshare.handler';
/**
* Initialize and register all handlers
*/
export function initializeAllHandlers(services: IDataIngestionServices): void {
// Create generic service container adapter
const serviceContainer = createServiceAdapter(services);
// QM Handler
const qmHandler = new QMHandler(serviceContainer);
qmHandler.register();
// WebShare Handler
const webShareHandler = new WebShareHandler(serviceContainer);
webShareHandler.register();
// TODO: Add other handlers here as they're converted
// const ibHandler = new IBHandler(serviceContainer);
// ibHandler.register();
}