Skip to content

Type TicketTypeList does not match API response #485

@klotztech

Description

@klotztech

The return type of client.ticketTypes.list() is the interface TicketTypeList:

export interface TicketTypeList {
    /** String representing the object's type. Always has the value `ticket_type.list`. */
    type: "ticket_type_attributes.list";
    /** A list of ticket_types associated with a given workspace. */
    ticket_types: Intercom.TicketType[];
}

but the actual response from the /ticket_types endpoint looks like the following:

{
    "type": "list",
    "data": [
        {
            "type": "ticket_type",
            "id": "2530225",
            "name": "Tickets",
            ...
        }
    ]
}

This seams to be an inaccuracy of the type definitions provided in this package.

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