TS types for Wazo APIs
To generate types from the latest production yml documentation, run the following commands:
# Install dependencies
pnpm install
# Generate the types
pnpm run buildTypes are compiled into the dist directory.
To generate types from an edge environment, you can override the OpenAPI spec URLs using environment variables. Create a .env file at the root of the project:
# Example .env file pointing to an edge environment
AUTH=https://your-dev-server.com/api/auth/1.0/api/api.yml
# ...Then run the build command:
pnpm run buildNote: You only need to override the services you want to use from your dev environment. Unset variables will default to the production OpenAPI specs from https://openapi.wazo.community/.
This project is licensed under the GPL-3 License. See the LICENSE file for more information.