removed http client for a simple fetch wrapper with logging in utils

This commit is contained in:
Boki 2025-06-22 09:03:34 -04:00
parent 89cbfb7848
commit a07a71d92a
36 changed files with 100 additions and 1465 deletions

View file

@ -18,10 +18,6 @@ export class DataIngestionServiceAdapter implements IServiceContainer {
get logger() { return this.dataServices.logger; }
get cache() { return this.dataServices.cache; }
get queue() { return this.dataServices.queue; }
get http() {
// HTTP client not in current data services - will be added when needed
return null;
}
get proxy(): any {
// Proxy manager should be injected via Awilix container
// This adapter is for legacy compatibility

View file

@ -89,11 +89,6 @@ export function createServiceContainer(config: AppConfig): AwilixContainer {
return manager;
}).singleton(),
// HTTP client can be added here when decoupled
httpClient: asFunction(() => {
// TODO: Import and create HTTP client when decoupled
return null;
}).singleton(),
// MongoDB client with injected logger
mongoClient: asFunction(({ mongoConfig, logger }) => {
@ -152,7 +147,6 @@ export function createServiceContainer(config: AppConfig): AwilixContainer {
logger: cradle.logger,
cache: cradle.cache,
proxy: cradle.proxyManager,
http: cradle.httpClient,
browser: cradle.browser,
mongodb: cradle.mongoClient,
postgres: cradle.postgresClient,
@ -224,7 +218,6 @@ export interface ServiceCradle {
logger: any;
cache: CacheProvider;
proxyManager: ProxyManager;
httpClient: any;
browser: any;
mongoClient: any;
postgresClient: any;

View file

@ -12,7 +12,6 @@ export abstract class BaseHandler implements IHandler {
readonly logger;
readonly cache;
readonly queue;
readonly http;
readonly proxy;
readonly browser;
readonly mongodb;
@ -26,7 +25,6 @@ export abstract class BaseHandler implements IHandler {
this.logger = getLogger(this.constructor.name);
this.cache = services.cache;
this.queue = services.queue;
this.http = services.http;
this.proxy = services.proxy;
this.browser = services.browser;
this.mongodb = services.mongodb;

View file

@ -14,7 +14,6 @@ export interface IServiceContainer {
readonly logger: any; // Logger instance
readonly cache: any; // Cache provider (Redis/Dragonfly)
readonly queue: any; // Queue manager (BullMQ)
readonly http: any; // HTTP client with proxy support
readonly proxy: ProxyManager; // Proxy manager service
readonly browser?: any; // Browser automation (Playwright)