diff --git a/.github/workflows/preview_sdks.yml b/.github/workflows/preview_sdks.yml index 51ef494..1c52a11 100644 --- a/.github/workflows/preview_sdks.yml +++ b/.github/workflows/preview_sdks.yml @@ -32,3 +32,31 @@ jobs: cd fern/.preview/fern-typescript-node-sdk yarn install yarn build + + preview-java: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Setup Java + uses: actions/setup-java@v1 + with: + java-version: "11" + architecture: x64 + + - name: Download Fern + run: npm install -g fern-api + + - name: Generate Preview + env: + FERN_TOKEN: ${{ secrets.FERN_TOKEN }} + run: | + fern generate --group java-sdk --preview --log-level debug + + - name: Build + env: + FERN_TOKEN: ${{ secrets.FERN_TOKEN }} + run: | + cd fern/.preview/fern-java-sdk + ./gradlew assemble diff --git a/fern/fern.config.json b/fern/fern.config.json index 4d009ef..1b60f11 100644 --- a/fern/fern.config.json +++ b/fern/fern.config.json @@ -1,4 +1,4 @@ { "organization": "intercom", - "version": "0.53.17" -} + "version": "0.56.19" +} \ No newline at end of file diff --git a/fern/generators.yml b/fern/generators.yml index d13153b..7ebdd73 100644 --- a/fern/generators.yml +++ b/fern/generators.yml @@ -35,3 +35,21 @@ groups: - intercom - api smart-casing: true + + java-sdk: + generators: + - name: fernapi/fern-java-sdk + version: 2.25.0 + # output: + # location: maven + # coordinate: com.square:square-java + # username: ${MAVEN_USERNAME} + # password: ${MAVEN_PASSWORD} + github: + repository: fern-demo/intercom-java-sdk + branch: gettin-tests-to-work + mode: push + config: + enable-inline-types: true + client-class-name: Intercom + inline-path-parameters: true diff --git a/fern/openapi-overrides.yml b/fern/openapi-overrides.yml index 3d0bc78..3363cfe 100644 --- a/fern/openapi-overrides.yml +++ b/fern/openapi-overrides.yml @@ -1383,10 +1383,11 @@ components: enum: - contact avatar: - properties: - type: - enum: - - avatar + properties: null + type: string + format: uri + description: An image URL containing the avatar of a contact. + example: https://example.org/128Wash.jpg create_article_request: properties: parent_type: @@ -1465,6 +1466,51 @@ components: custom_attributes: additionalProperties: true + # adding offset pages + offset_pages: + title: Offset based pages + type: object + properties: + type: + type: string + description: the type of object `offset_pages` + example: offset_pages + enum: + - offset_pages + page: + type: integer + description: The current offset + example: 1 + next: + type: string + nullable: true + per_page: + type: integer + description: Number of results per page + example: 2 + total_pages: + type: integer + description: Total number of pages + example: 13 + required: + - type + collection_list: + properties: + pages: + "$ref": "#/components/schemas/offset_pages" + article_list: + properties: + pages: + "$ref": "#components/schemas/offset_pages" + company_list: + properties: + pages: + "$ref": "#/components/schemas/offset_pages" + note_list: + properties: + pages: + "$ref": "#/components/schemas/offset_pages" + securitySchemes: bearerAuth: x-fern-bearer: