According to the API Documentation 2.12, we can pass ticket_state_id to update a ticket to a specific state. Since the intercom client uses v.2.11 there is no way to update to a specific state id where we can only pass one of the main states ("in_progress" | "waiting_on_customer" | "resolved").
async updateTicket(params: IntercomUpdateTicketParams): Promise<Ticket> {
return intercom.tickets.update({
ticket_id: params.ticketId,
ticket_attributes: params.ticketAttributes,
open: params.open,
state: params.state,
});
}
So, for example if we have a case where we have two different states under waiting_on_customer, how to choose which one using this library?
