Skip to content

updated typescript sdk to use latest openApi-generator to latest 7.1.… #25

updated typescript sdk to use latest openApi-generator to latest 7.1.…

updated typescript sdk to use latest openApi-generator to latest 7.1.… #25

Workflow file for this run

name: "Build Typescript SDK"
env:
SAIL_CLIENT_ID: ${{ secrets.SDK_TEST_TENANT_CLIENT_ID }}
SAIL_CLIENT_SECRET: ${{ secrets.SDK_TEST_TENANT_CLIENT_SECRET }}
SAIL_BASE_URL: ${{ secrets.SDK_TEST_TENANT_BASE_URL }}
on:
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build_typescript_sdk:
name: Build typescript SDK
runs-on: ubuntu-latest
steps:
- name: Checkout PR branch
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- name: Checkout API Specs Repo
uses: actions/checkout@v3
with:
repository: sailpoint-oss/api-specs
path: api-specs
ref: main
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: "18"
- name: Build V3 SDK
id: buildV3
run: |
java -jar openapi-generator-cli.jar generate -i api-specs/idn/sailpoint-api.v3.yaml -g typescript-axios -o sdk-output/v3 --global-property skipFormModel=false --config sdk-resources/v3-config.yaml
- name: Build Beta SDK
id: buildBeta
if: steps.buildV3.outcome == 'success'
run: |
java -jar openapi-generator-cli.jar generate -i api-specs/idn/sailpoint-api.beta.yaml -g typescript-axios -o sdk-output/beta --global-property skipFormModel=false --config sdk-resources/beta-config.yaml --api-name-suffix BetaApi --model-name-suffix Beta
- name: Build V2 SDK
id: buildV2
if: steps.buildBeta.outcome == 'success'
run: |
java -jar openapi-generator-cli.jar generate -i api-specs/idn/sailpoint-api.v2.yaml -g typescript-axios -o sdk-output/v2 --global-property skipFormModel=false --config sdk-resources/v2-config.yaml --api-name-suffix V2Api --model-name-suffix V2
- name: Build CC SDK
id: buildCC
if: steps.buildV2.outcome == 'success'
run: |
java -jar openapi-generator-cli.jar generate -i api-specs/idn/sailpoint-api.cc.yaml -g typescript-axios -o sdk-output/cc --global-property skipFormModel=false --config sdk-resources/cc-config.yaml --api-name-suffix CCApi --model-name-suffix CC
- name: Run npm install and build Typescript SDK
id: buildSDK
if: steps.buildCC.outcome == 'success'
run: |
cd sdk-output
npm install
npm run build
npm run test