Skip to content

Typings for client.companies.update only include company_id #465

Closed

Description

@mkohlmyr
  • intercom-client @ 6.0.0
export interface UpdateCompanyRequest {
    /**
     * The unique identifier for the company which is given by Intercom
     */
    company_id: string;
}

I am trying to update a very old integration which uses a number of requests across the client. Thankfully in this case I think I can use createOrUpdate which appears to have correct typings. Is this new version of the project stable enough to build off of or should I integrate directly against the http endpoints (since the OpenAPI documentation seems fairly complete) for the time being?

Activity

  1. ate-f commented on Feb 14, 2025

    @ate-f

    As I'm working through something similar, I'm getting the impression that the REST endpoints will be easier to manage. For example, for the companies.delete function(and this one most likely), the reference doc specifies to use "company_id", but it actually requires the internal "id".

  2. fern-support commented on Mar 20, 2025

    @fern-support
    Collaborator

    @mkohlmyr we're seeing roughly 34k weekly downloads on 6.x and it should be pretty stable to build off of. If you have any issues feel free to report them and we will fix.

  3. mkohlmyr commented on May 2, 2025

    @mkohlmyr
    Author

    @fern-support I did report an issue, the typings are incorrect and do not match your OpenAPI specification on multiple endpoints e.g. as stated in the original message -

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions