diff --git a/fern/fern.config.json b/fern/fern.config.json index 33c283b..29a6352 100644 --- a/fern/fern.config.json +++ b/fern/fern.config.json @@ -1,4 +1,4 @@ { "organization": "chariot", - "version": "0.37.13" + "version": "0.41.1" } \ No newline at end of file diff --git a/fern/generators.yml b/fern/generators.yml index 865fe29..9185569 100644 --- a/fern/generators.yml +++ b/fern/generators.yml @@ -1,8 +1,18 @@ api: - path: ../specs/v1.yaml - overrides: ./openapi-overrides.yml - settings: - use-title: false + default-environment: Production + default-url: api + environments: + Production: + urls: + api: https://api.givechariot.com + login: https://login.givechariot.com/ + Sandbox: + urls: + api: https://sandboxapi.givechariot.com + login: https://chariot-sandbox.us.auth0.com + specs: + - openapi: ../specs/v1.yaml + overrides: ./openapi-overrides.yml groups: ts-sdk: generators: diff --git a/fern/openapi-overrides.yml b/fern/openapi-overrides.yml index 4f37ad8..5258646 100644 --- a/fern/openapi-overrides.yml +++ b/fern/openapi-overrides.yml @@ -1,7 +1,3 @@ -servers: - - url: https://api.givechariot.com - description: API - x-fern-server-name: API x-fern-pagination: cursor: $request.pageToken next_cursor: $response.nextPageToken @@ -135,9 +131,7 @@ paths: x-fern-sdk-group-name: - auth x-fern-sdk-method-name: getToken - servers: - - url: https://login.givechariot.com/ - x-name: Login + x-fern-server-name: login requestBody: required: true content: diff --git a/fern/versions/v1/docs.yml b/fern/versions/v1/docs.yml index e5133e3..5577f70 100644 --- a/fern/versions/v1/docs.yml +++ b/fern/versions/v1/docs.yml @@ -48,7 +48,10 @@ navigation: - api: API Reference display-errors: true snippets: - typescript: chariot + typescript: "@chariot-giving/typescript-sdk" + playground: + environments: + - Sandbox layout: - auth - nonprofits