Instantiates the service writer.
The ts-morph Project instance for AST manipulation.
The target directory where service files will be written.
The complete list of IR models (used for type resolution in method signatures).
The OpenAPI specification title for file header metadata.
The OpenAPI specification version for file header metadata.
Generates NestJS service classes with dual HTTP transport methods.
Dual Method Strategy:
$): Issues raw HTTP calls viaHttpService, returnsObservable<T>.firstValueFrom(), returnsPromise<T>for convenience.Both methods share the same URL construction, parameter binding, and error handling logic; the Promise variant simply adapts the Observable for async/await patterns.
Each service includes:
HttpServicevia constructor.