Official TypeScript SDK for the DoDays API, providing type-safe access to all DoDays endpoints.
pnpm add @dodayslabs/ts-sdkimport { Configuration, DefaultApi } from "@dodayslabs/ts-sdk";
const config = new Configuration({
basePath: "https://api.dodays.co.uk",
apiKey: "your-api-key",
});
const api = new DefaultApi(config);
// Make API calls
const response = await api.getSomething();This SDK is automatically generated from the DoDays OpenAPI specification using OpenAPI Generator.
- Node.js v24.9.0 (use
nvm useto switch to the correct version) - pnpm 10.17.1+
# Install dependencies
pnpm install
# Generate and build the SDK
pnpm buildpnpm build- Generate SDK from OpenAPI spec and compile TypeScriptpnpm generate- Generate SDK code from docs/openapi.yamlpnpm compile- Compile TypeScript to JavaScript
- Source of Truth: OpenAPI specification at docs/openapi.yaml
- Generated Code:
src/directory (do not edit manually) - Build Output:
dist/directory (published to npm)
- Update the OpenAPI specification at docs/openapi.yaml
- Run
pnpm buildto regenerate and compile the SDK - The generated code in
src/will be automatically updated
Important: Do not manually edit files in the src/ directory as they will be overwritten during the next generation.
- Generator: OpenAPI Generator CLI v7.15.0
- Generator Type:
typescript-fetch(lightweight Fetch API-based client) - Configuration: See
openapitools.json
See LICENSE