mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-19 16:02:14 +00:00
ef76a90e34
* Better UI for S3 download and S3 TS SDK endpoints * gitignore typescript client node_modules * USe Windmill BE upload endpoint for TS SDK * Use WM backend endpoint in Python upload SDK endpoint * revert changes * Add expiration for Python * Add downaload endpoint * Add toggle for public S3 resource * revert changes to package.json * Add link to doc page * fix unauthorized bug
15 lines
831 B
Bash
Executable File
15 lines
831 B
Bash
Executable File
#!/bin/bash
|
|
set -eou pipefail
|
|
script_dirpath="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
rm -rf "${script_dirpath}/src"
|
|
|
|
npx --yes openapi-typescript-codegen --input "${script_dirpath}/../backend/windmill-api/openapi.yaml" \
|
|
--output "${script_dirpath}/src" --useOptions \
|
|
# && sed -i '213 i \\ request.referrerPolicy = \"no-referrer\"\n' src/core/request.ts
|
|
|
|
cp "${script_dirpath}/client.ts" "${script_dirpath}/src/"
|
|
cp "${script_dirpath}/s3Types.ts" "${script_dirpath}/src/"
|
|
echo 'export type { S3Object, DenoS3LightClientSettings } from "./s3Types";' >> "${script_dirpath}/src/index.ts"
|
|
echo 'export { setClient, getVariable, setVariable, getResource, setResource, getResumeUrls, setState, getState, getIdToken, denoS3LightClientSettings, loadS3File, writeS3File } from "./client";' >> "${script_dirpath}/src/index.ts"
|