diff --git a/src/clients/core/tickets.js b/src/clients/core/tickets.js index bc72640..1d9b5fe 100644 --- a/src/clients/core/tickets.js +++ b/src/clients/core/tickets.js @@ -127,6 +127,12 @@ const {Client} = require('../client'); * @property {Array} [tickets] - The ticket object to create many tickets. */ +/** + * @typedef {object} TicketCollaborator + * @property {number} id - The ID of the collaborator. + * @property {string} name - The name of the collaborator. + */ + /** * @class * Client for the Zendesk API - Tickets. @@ -238,7 +244,7 @@ class Tickets extends Client { /** * List collaborators of a specific ticket. * @param {number} ticketId - The ID of the ticket. - * @returns {Promise} An array of collaborators for the ticket. + * @returns {Promise>} An array of collaborators for the ticket. * @see {@link https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/#list-tickets} * @example * const collaborators = await client.tickets.listCollaborators(7890); @@ -250,7 +256,7 @@ class Tickets extends Client { /** * List incidents related to a specific ticket. * @param {number} ticketId - The ID of the ticket. - * @returns {Promise} An array of incidents related to the ticket. + * @returns {Promise>} An array of incidents related to the ticket. * @see {@link https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/#list-tickets} * @example * const incidents = await client.tickets.listIncidents(7890); @@ -523,7 +529,7 @@ class Tickets extends Client { /** * Retrieve comments associated with a specific ticket. * @param {number} ticketId - The ID of the ticket to retrieve comments for. - * @returns {Promise} A promise that resolves with an array of comments associated with the ticket. + * @returns {Promise>} A promise that resolves with an array of comments associated with the ticket. * @throws {Error} If `ticketId` is not a valid number. * @see {@link https://developer.zendesk.com/api-reference/ticketing/tickets/ticket_comments/} * @example