intercom-node icon indicating copy to clipboard operation
intercom-node copied to clipboard

Wrong type definition for TicketType

Open julianCast opened this issue 3 months ago • 1 comments

The type definition for TicketType is not aligned with what the API returns.

 const tt = await intercom.ticketTypes.get({ ticket_type_id: params.ticketTypeId });
 console.log('ticket type', tt.ticket_type_attributes.data);
Image

Using "intercom-client": "6.4.0" and 2.11 API version.

export const intercom = new IntercomClient({
  version: '2.11'

julianCast avatar Sep 05 '25 12:09 julianCast

Thanks for flagging this. You should be able to extract the ticket type attributes with tt.ticket_type_attributes.ticket_type_attribues. Are you still running into this issue?

fern-support avatar Oct 31 '25 17:10 fern-support

Thanks! All good!

julianCast avatar Nov 13 '25 12:11 julianCast