intercom-client
Version:
Official Node bindings to the Intercom API
79 lines (78 loc) • 2.15 kB
TypeScript
import type * as Intercom from "../../../../index.js";
/**
* @example
* {
* ticket_id: "123",
* body: {
* message_type: "comment",
* type: "user",
* body: "Thanks again :)",
* intercom_user_id: "6762f2971bb69f9f2193bc49"
* }
* }
*
* @example
* {
* ticket_id: "123",
* body: {
* message_type: "note",
* type: "admin",
* body: "<html> <body> <h2>An Unordered HTML List</h2> <ul> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ul> <h2>An Ordered HTML List</h2> <ol> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ol> </body> </html>",
* admin_id: "3156780"
* }
* }
*
* @example
* {
* ticket_id: "123",
* body: {
* message_type: "quick_reply",
* type: "admin",
* admin_id: "3156780",
* reply_options: [{
* text: "Yes",
* uuid: "0df48b85-9a93-4c66-a167-753eff0baaec"
* }, {
* text: "No",
* uuid: "4f0b5145-4193-4b4f-8cad-ce19478a3938"
* }]
* }
* }
*
* @example
* {
* ticket_id: "123",
* body: {
* message_type: "comment",
* type: "user",
* body: "Thanks again :)",
* intercom_user_id: "6762f2a41bb69f9f2193bc4c"
* }
* }
*
* @example
* {
* ticket_id: "123",
* body: {
* message_type: "comment",
* type: "user",
* body: "Thanks again :)",
* intercom_user_id: "6762f2971bb69f9f2193bc49"
* }
* }
*
* @example
* {
* ticket_id: "123",
* body: {
* message_type: "comment",
* type: "user",
* body: "Thanks again :)",
* intercom_user_id: "6762f2971bb69f9f2193bc49"
* }
* }
*/
export interface ReplyToTicketRequest {
ticket_id: string;
body: Intercom.TicketsReplyRequestBody;
}