root: update options for generating TS API (#3833)

This commit is contained in:
Jens L 2022-10-21 09:08:25 +02:00 committed by GitHub
parent f5ef92ca6f
commit fd6a3d6230
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 2 deletions

View File

@ -90,11 +90,11 @@ gen-client-ts:
-i /local/schema.yml \
-g typescript-fetch \
-o /local/gen-ts-api \
--additional-properties=typescriptThreePlus=true,supportsES6=true,npmName=@goauthentik/api,npmVersion=${NPM_VERSION} \
-c /local/scripts/api-ts-config.yaml \
--additional-properties=npmVersion=${NPM_VERSION} \
--git-repo-id authentik \
--git-user-id goauthentik
mkdir -p web/node_modules/@goauthentik/api
\cp -fv scripts/web_api_readme.md gen-ts-api/README.md
cd gen-ts-api && npm i
\cp -rfv gen-ts-api/* web/node_modules/@goauthentik/api

View File

@ -0,0 +1,12 @@
templateDir: /local/scripts/api-ts-templates/
additionalProperties:
typescriptThreePlus: true
supportsES6: true
npmName: "@goauthentik/api"
fileContentDataType: Blob
enumUnknownDefaultCase: true
useObjectParameters: true
files:
README.mustache:
templateType: SupportingFiles
destinationFilename: README.md