We’ve added ticketing concepts to the Plugin SDK so you can easily view and manage conversations for companies that have this feature enabled. The new method and data model updates should help navigate Front ticketing within your plugins without having to call the Core API.
To grab the latest version, run npm install @frontapp/plugin-sdk@^1.9.0 --save
or bump your package version manually. If using Yarn, run yarn upgrade @frontapp/plugin-sdk@^1.9.0
.
The Plugin SDK now offers the following additions:
- A new listTicketStatuses method that returns the ticket statuses available for the company.
- The Conversation model in the Plugin SDK Context has been updated to include the following fields.
statusId
String
The ID of the ticket status that applies to the conversation. Only present if ticketing is enabled for the company.
statusCategory
String
The category of the ticket status:
open
,waiting
, orresolved
. Only present if ticketing is enabled for the company.ticketIds
Array of strings
The IDs of the tickets associated with the conversation. Only present if ticketing is enabled for the company.
customFieldAttributes
Array of CustomField
The custom fields belonging to the conversation.
Happy coding!
P.S. this release also fixes the following bugs:
- Plugin SDK Context failing to show all recipient handles
- createDraft method returns error message when attachments are included