AutoBE
    Preparing search index...

    Class AutoBeInterfaceCompiler

    Custom Interface compiler that handles API specification and NestJS application generation.

    This compiler transforms validated AutoBeOpenApi.IDocument AST structures into comprehensive NestJS projects through a sophisticated multi-stage transformation pipeline. The Interface compiler bridges the gap between database design and application implementation, ensuring perfect alignment with business requirements and database schemas.

    The compiler leverages NestiaMigrateApplication for robust NestJS project generation and HttpMigration for bidirectional conversion between AutoBE AST and standard OpenAPI formats. All generated TypeScript code is automatically formatted with Prettier and organized with proper import sorting for production-ready quality.

    Key capabilities include generating complete NestJS applications with controllers, DTOs, client SDKs, and E2E test scaffolds, all enhanced with keyworded parameter optimization for AI consumption and comprehensive documentation derived from AST descriptions.

    Samchon

    Implements

    Index

    Constructors

    Methods

    • Inverts standard OpenAPI document back to AutoBE OpenAPI AST format.

      Converts a standard OpenApi.IDocument back into the specialized AutoBeOpenApi.IDocument AST format used by the vibe coding pipeline. This inverse transformation enables integration with existing OpenAPI specifications or importing externally created API designs into the AutoBE development workflow.

      The inversion process analyzes the OpenAPI structure and reconstructs the corresponding AST representation while maintaining compatibility with the AutoBE compilation and validation systems. This enables seamless bidirectional conversion between AutoBE's optimized format and industry-standard specifications.

      Parameters

      • document: IDocument

        Standard OpenAPI document to convert

      Returns Promise<IDocument>

      Promise resolving to AutoBE OpenAPI AST document for vibe coding pipeline integration

    • Transforms AutoBE OpenAPI AST document to standard OpenAPI specification.

      Converts the specialized AutoBeOpenApi.IDocument AST format into the standard OpenApi.IDocument format that conforms to the official OpenAPI specification. This transformation expands simplified type references into complete OpenAPI schema definitions while preserving all semantic meaning and business context.

      The resulting OpenAPI document undergoes comprehensive validation against OpenAPI 3.1 specification standards, ensuring complete industry compliance and compatibility with the broader OpenAPI tooling ecosystem.

      Parameters

      • document: IDocument

        AutoBE OpenAPI AST document to transform

      Returns Promise<IDocument>

      Promise resolving to standard OpenAPI document with full specification compliance

    • Writes complete NestJS application files from validated AutoBE OpenAPI AST document.

      Performs the complete transformation pipeline from validated AutoBeOpenApi.IDocument AST structures to production-ready NestJS project files. This includes generating controllers, DTOs, client SDKs, test scaffolds, and all supporting infrastructure code with comprehensive documentation and type safety assurance.

      The writing process includes revolutionary enhancements such as keyworded parameter optimization for AI consumption, comprehensive JSDoc documentation derived from AST descriptions, intelligent test scaffolds, and end-to-end type safety throughout the entire application stack.

      Parameters

      • document: IDocument

        Validated AutoBE OpenAPI AST document containing complete API specification

      Returns Promise<Record<string, string>>

      Promise resolving to key-value pairs mapping file paths to generated NestJS project contents ready for deployment