Files
windmill/typescript-client/build.sh
Guillaume Bouvignies 2155a6c133 feat: S3 objects are now typed in Python and TS SDK (#2878)
* feat: S3 objects are now typed in Python and TS SDK

* fix ts and python SDK after testing

* cleanup
2023-12-20 09:16:33 +01:00

12 lines
514 B
Bash
Executable File

#!/bin/bash
set -eou pipefail
npx --yes openapi-typescript-codegen --input ../backend/windmill-api/openapi.yaml \
--output ./src --useOptions \
&& sed -i '213 i \\ request.referrerPolicy = \"no-referrer\"\n' src/core/request.ts
cp client.ts src/
cp s3Types.ts src/
echo 'export { type S3Object } from "./s3Types";' >> src/index.ts
echo 'export { setClient, getVariable, setVariable, getResource, setResource, getResumeUrls, setState, getState, denoS3LightClientSettings } from "./client";' >> src/index.ts