node-apis
Version:
🚀 Advanced TypeScript API generator with clean architecture, comprehensive testing, and automatic formatting. Generate production-ready Node.js APIs with complete integration test suites.
31 lines • 1.17 kB
TypeScript
/**
* Module generation service - Main business logic
*/
import { GenerationInput, GenerationResult } from '../types/generation.types';
import { ApiType } from '../types/common.types';
/**
* Generates the API module folder structure
*/
export declare const generateModuleStructure: ({ moduleName, options, apiType, }: GenerationInput) => Promise<GenerationResult>;
/**
* Phase 1: Creates only the main module directory and types subdirectory
* Used for two-phase generation where we want to generate types first
*/
export declare const generateModuleStructurePhase1: ({ moduleName, options, framework, }: Omit<GenerationInput, "apiType"> & {
framework?: string;
}) => Promise<GenerationResult>;
/**
* Phase 2: Creates remaining subdirectories based on API type
* Used after user confirms the generated types
*/
export declare const generateModuleStructurePhase2: ({ modulePath, apiType, trpcStyle, framework, }: {
modulePath: string;
apiType: ApiType;
trpcStyle?: boolean;
framework?: string;
}) => Promise<{
success: boolean;
createdDirectories: string[];
error?: string;
}>;
//# sourceMappingURL=module-generator.service.d.ts.map