@apistudio/apim-cli
Version:
CLI for API Management Products
30 lines • 1.6 kB
TypeScript
import { CoreTransformOrchestrator, IConfigRegistry, ITransformerRegistry, WrappedAsset, IConfigLoader, StudioAsset } from "@apic/smith-transformer";
/**
* LWGW implementation of the Transform Orchestrator
* Specifically for transforming to LWGW gateway
*/
export declare class LwgwTransformerOrchestrator extends CoreTransformOrchestrator {
private postTransformer;
/**
* Create a new LWGW transform orchestrator
* @param configRegistry Configuration registry
* @param transformerRegistry Transformer registry
*/
constructor(configRegistry: IConfigRegistry, transformerRegistry: ITransformerRegistry, configLoader: IConfigLoader);
/**
* Post-transformation hook that organizes assets into execute, catch, and finally sections
* @param transformedAssets Array of transformed assets
* @param resources Resources extracted from the ZIP file
* @param apiName Name of the API being processed
* @param apiMetadata Metadata of the API
* @returns Organized assets in assembly structure
*/
protected postTransform(allAssets: StudioAsset[], transformedAssets: WrappedAsset[], resources: Record<string, string>, apiName: string, apiMetadata: any): Promise<any>;
protected isApiValid(api: StudioAsset, relatedAssets: StudioAsset[]): boolean;
}
/**
* Factory function to create a LWGW transform orchestrator with default registries
* @returns A new LWGW transform orchestrator
*/
export declare function createLwgwOrchestrator(): Promise<LwgwTransformerOrchestrator>;
//# sourceMappingURL=lwgw-transformer-orchestrator.impl.d.ts.map