Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 71 additions & 4 deletions .github/workflows/preview_sdks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v6

- name: Download Fern
run: npm install -g fern-api
Expand All @@ -24,14 +24,19 @@ jobs:
run: |
fern generate --group ts-sdk --preview --log-level debug

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
package_json_file: fern/.preview/fern-typescript-sdk/package.json

- name: Compile
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd fern/.preview/fern-typescript-node-sdk
yarn install
yarn build
cd fern/.preview/fern-typescript-sdk
pnpm install --frozen-lockfile
pnpm build

preview-java:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -60,3 +65,65 @@ jobs:
run: |
cd fern/.preview/fern-java-sdk
./gradlew assemble

preview-python:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Set up python
uses: actions/setup-python@v4
with:
python-version: 3.9

- name: Bootstrap poetry
run: |
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1

- name: Download Fern
run: npm install -g fern-api

- name: Generate Preview
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
run: |
fern generate --group python-sdk --preview --log-level debug

- name: Build
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
run: |
cd fern/.preview/fern-python-sdk
poetry install
poetry run mypy .

preview-php:
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.1"

- name: Download Fern
run: npm install -g fern-api

- name: Generate Preview
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
run: |
fern generate --group php-sdk --preview --log-level debug

- name: Build
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
run: |
cd fern/.preview/fern-php-sdk
composer install
composer build
composer analyze
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ compiled/

# Fern preview files
/fern/.preview
/fern/.definition
4 changes: 2 additions & 2 deletions descriptions/2.14/api.intercom.io.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3400,7 +3400,7 @@ paths:
required: true
description: The unique identifier for the contact which is given by Intercom
schema:
type: integer
type: string
tags:
- Companies
- Contacts
Expand Down Expand Up @@ -18687,7 +18687,7 @@ components:
description: The data export api is used to view all message sent & viewed in
a given timeframe.
properties:
job_identfier:
job_identifier:
type: string
description: The identifier for your job.
example: orzzsbd7hk67xyu
Expand Down
4 changes: 2 additions & 2 deletions fern/fern.config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"organization": "intercom",
"version": "0.70.1"
}
"version": "3.0.2"
}
29 changes: 24 additions & 5 deletions fern/generators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,33 @@ api:
settings:
title-as-schema-name: false
inline-path-parameters: true
type-dates-as-strings: true
object-query-parameters: false
idiomatic-request-names: false
respect-nullable-schemas: false
wrap-references-to-nullable-in-optional: true
coerce-optional-schemas-to-nullable: true
coerce-enums-to-literals: true
- openapi: ../descriptions/0/api.intercom.io.yaml
overrides: ./unstable-openapi-overrides.yml
namespace: unstable
settings:
title-as-schema-name: false
inline-path-parameters: true
type-dates-as-strings: true
object-query-parameters: false
idiomatic-request-names: false
respect-nullable-schemas: false
wrap-references-to-nullable-in-optional: true
coerce-optional-schemas-to-nullable: true
coerce-enums-to-literals: true
settings:
path-parameter-order: spec-order
groups:
ts-sdk:
generators:
- name: fernapi/fern-typescript-node-sdk
version: 0.51.7
- name: fernapi/fern-typescript-sdk
version: 3.35.8
output:
location: npm
package-name: intercom-client
Expand Down Expand Up @@ -46,7 +62,7 @@ groups:
java-sdk:
generators:
- name: fernapi/fern-java-sdk
version: 2.37.0
version: 3.21.0
output:
location: maven
coordinate: io.intercom:intercom-java
Expand All @@ -64,11 +80,13 @@ groups:
client-class-name: Intercom
inline-path-parameters: true
enable-forward-compatible-enums: true
enable-wire-tests: false
smart-casing: false

python-sdk:
generators:
- name: fernapi/fern-python-sdk
version: 4.22.0
version: 4.41.8
github:
mode: pull-request
repository: intercom/python-intercom
Expand All @@ -80,11 +98,12 @@ groups:
location: pypi
package-name: 'python-intercom'
token: ${FERN_PYPI_TOKEN}
smart-casing: false

php-sdk:
generators:
- name: fernapi/fern-php-sdk
version: 1.16.7
version: 1.25.0
github:
mode: pull-request
repository: intercom/intercom-php
Expand Down
Loading
Loading