UNPKG

syia-mcp-utils

Version:

Global utility functions for MCP server

20 lines (19 loc) 904 B
/** * Fetch IMO numbers for a specific company from MongoDB * @param companyName The name of the company to fetch IMO numbers for * @returns Array of IMO numbers as strings */ export declare function fetchCompanyImoNumbers(companyName: string): Promise<string[]>; /** * Check if IMO filtering should be bypassed for admin companies * @param companyName - Name of the company to check * @returns True if filtering should be bypassed */ export declare function shouldBypassImoFiltering(companyName: string): boolean; /** * Validate if an IMO number is valid for the current company * @param imoNumber - IMO number to validate (string or number) * @param companyName - Company name to fetch IMO numbers for * @returns Promise that resolves to boolean indicating if IMO is valid */ export declare function isValidImoForCompany(imoNumber: string | number, companyName: string): Promise<boolean>;