arela
Version:
AI-powered CTO with multi-agent orchestration, code summarization, visual testing (web + mobile) for blazing fast development.
29 lines • 1.05 kB
TypeScript
/**
* Match API calls to endpoints
*/
import { ApiCall, ApiEndpoint, EndpointMatch } from './types';
/**
* Match calls to endpoints using fuzzy matching
*/
export declare function matchCallsToEndpoints(calls: ApiCall[], endpoints: ApiEndpoint[], threshold?: number): EndpointMatch[];
/**
* Find unmatched calls (frontend calls with no matching endpoint)
*/
export declare function findUnmatchedCalls(calls: ApiCall[], matches: EndpointMatch[]): ApiCall[];
/**
* Find unmatched endpoints (backend endpoints with no frontend calls)
*/
export declare function findUnmatchedEndpoints(endpoints: ApiEndpoint[], matches: EndpointMatch[]): ApiEndpoint[];
/**
* Get matching statistics
*/
export declare function getMatchingStats(calls: ApiCall[], endpoints: ApiEndpoint[], matches: EndpointMatch[]): {
totalCalls: number;
totalEndpoints: number;
matchedCount: number;
unmatchedCallsCount: number;
unmatchedEndpointsCount: number;
matchPercentage: number;
avgSimilarity: number;
};
//# sourceMappingURL=matcher.d.ts.map