You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In v5 existing attached companies were returned when updating a contact with client.contacts.update in updatedContact.companies.data. However this field is no longer present in the typescript type definitions. The API docs show that the field should be available though:
This seems to be a bug in the Fern product (or configuration passed to it) that you're using to generate the type definitions.
This blocks us upgrading our intercom client to v6 as a paying customer :/
The text was updated successfully, but these errors were encountered:
Thanks for the issue @Jaakkonen! It looks like you identified a gap in Intercom's OpenAPI spec, which Fern uses to generate their SDKs. The client.contacts.update method is configured to return a contact object, but the contact schema doesn't contain the companies property (like you've described).
We'll simply need to update the OpenAPI spec to include the missing properties and regenerate the SDK. If this is urgent for you, please feel free to opening a pull request to the 2.11 OpenAPI spec here. Otherwise, we'll confirm the expected behavior with the Intercom team and have an update for you here soon.
…nd nullable flag
This change reinforces the companies property in the Contact schema by:
- Adding descriptive metadata about the property's structure
- Explicitly marking it as nullable
- Maintaining correct reference to contact_companies schema
Addresses issue reported in intercom/intercom-node#457
Co-Authored-By: Deep Singhvi <deep@buildwithfern.com>
In v5 existing attached companies were returned when updating a contact with
client.contacts.update
inupdatedContact.companies.data
. However this field is no longer present in the typescript type definitions. The API docs show that the field should be available though:This seems to be a bug in the Fern product (or configuration passed to it) that you're using to generate the type definitions.
This blocks us upgrading our intercom client to v6 as a paying customer :/
The text was updated successfully, but these errors were encountered: