intercom-node
intercom-node copied to clipboard
Wrong type definition for TicketType
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);
Using "intercom-client": "6.4.0" and 2.11 API version.
export const intercom = new IntercomClient({
version: '2.11'
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?
Thanks! All good!