OpenAPI-generated TypeScript-axios client for CloudHospital API. Current version 5.90.39. Automatically regenerated from Swagger spec; requires manual generation via openapi-generator-cli. Key differentiator: auto-generated, strongly-typed client for CloudHospital's API using TypeScript and Axios, with DateTime mapped to Date type.
npm install ch-api-client-typescript2No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import and use the generated client to fetch countries list with proper types.
Run openapi-generator-cli generate -g typescript-axios -o src -i <swagger-url> --type-mappings=DateTime=Date
Update import paths to use new package name.
Use Date type for any DateTime fields in API responses.
Create Configuration object with basePath pointing to valid CloudHospital API endpoint.
Stick with Axios 0.21.x or regenerate client with updated generator.
Run npm install ch-api-client-typescript2 --save and verify import path.
Install Axios 0.21.x: npm install axios@0.21.4
Regenerate client with latest Swagger spec.