leds-spark-lib
Version:
Biblioteca de geração de código
34 lines • 1.15 kB
TypeScript
/**
* API Integration Generator Module
*
* This module generates API integration layers that handle communication
* between the frontend and backend services. It creates type-safe API
* clients with proper authentication and error handling.
*
* Features:
* - Axios instance configuration
* - Authentication header management
* - Request/response interceptors
* - Loading state integration
* - Error handling
*/
import SEON from "seon-lib-implementation";
/**
* Main API generator function
*
* Creates API client configurations and integrations for backend communication.
*
* @param project_abstraction - Project metadata (not directly used in API generation)
* @param target_folder - Directory where API files will be generated
*
* Generated Files:
* - admin.ts: Admin API client with authentication
*
* Integration Features:
* - Environment-based configuration
* - Bearer token authentication
* - Global loading state management
* - Error interception and handling
*/
export declare function generate(project_abstraction: SEON.ProjectAbstraction, target_folder: string): void;
//# sourceMappingURL=generate.d.ts.map