UNPKG

pms-analysis-reports-mcp-server

Version:

PMS analysis reports server handling maintenance reports, equipment analysis, compliance tracking, and performance metrics with ERP access for data extraction

40 lines (39 loc) 1.61 kB
export { fetchCompanyImoNumbers, shouldBypassImoFiltering, isValidImoForCompany } from './company-filtering.js'; /** * ============================================================================ * OLD IMPLEMENTATION (COMMENTED OUT - REPLACED BY OPTIMIZED VERSION) * ============================================================================ * The old implementation has been replaced with an optimized version that includes: * - In-memory caching with TTL (5 minutes) * - MongoDB connection pooling * - Set-based IMO lookups (O(1) instead of O(n)) * - Cached environment variables and config * * See: src/utils/company-filtering.ts for the optimized implementation * ============================================================================ */ /** * Initialize IMO cache for a company * @param companyName - Name of the company to initialize cache for */ export declare function initializeImoCache(companyName: string, dbName?: string, mongoUri?: string): Promise<void>; /** * Load cached IMO numbers from file */ export declare function loadCachedImos(): string[]; /** * Save IMO numbers to cache file */ export declare function saveCachedImos(imos: string[], companyName: string): void; /** * Check if company should skip IMO validation (e.g., for development/testing) */ export declare function shouldSkipImoValidation(companyName: string): boolean; /** * Get company IMOs with intelligent fallback strategy */ export declare function getCompanyImosWithFallback(): string[]; /** * Clear all cached data (for testing/reset purposes) */ export declare function clearCache(): void;