Skip to content

TinxHQ/wazo-ts-types

Repository files navigation

wazo-ts-types

TS types for Wazo APIs

How to generate types

Default (stable version)

To generate types from the latest production yml documentation, run the following commands:

# Install dependencies
pnpm install

# Generate the types
pnpm run build

Types are compiled into the dist directory.

Edge environment

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 build

Note: 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/.

License

This project is licensed under the GPL-3 License. See the LICENSE file for more information.

About

TS types for Wazo APIs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •