diff --git a/.gitignore b/.gitignore index 4d62a45..f2f0ef5 100644 --- a/.gitignore +++ b/.gitignore @@ -47,6 +47,7 @@ jspm_packages/ # vitepress build/dev output docs/.vitepress/dist docs/.vitepress/cache +docs/.vitepress/.temp docs/api/ docs/code/ diff --git a/src/clients/core/ticketimport.js b/src/clients/core/ticketimport.js index 3899ce4..921ef16 100644 --- a/src/clients/core/ticketimport.js +++ b/src/clients/core/ticketimport.js @@ -58,12 +58,12 @@ class TicketImport extends Client { /** * Bulk imports multiple tickets into Zendesk. * @param {Array} tickets - An array containing ticket data to be imported. Each ticket should include the following fields: - * - `assignee_id` (number): The ID of the user to assign this ticket to. - * - `comments` (Array): Array of comments associated with the ticket. - * - `description` (string): The description of the ticket. - * - `requester_id` (number): The ID of the user requesting the ticket. - * - `subject` (string): The subject of the ticket. - * - `tags` (Array): Array of tags associated with the ticket. + * @param {number} tickets[].assignee_id - The ID of the user to assign this ticket to. + * @param {Array} tickets[].comments - Array of comments associated with the ticket. + * @param {string} tickets[].description - The description of the ticket. + * @param {number} tickets[].requester_id - The ID of the user requesting the ticket. + * @param {string} tickets[].subject - The subject of the ticket. + * @param {Array} tickets[].tags - Array of tags associated with the ticket. * **Note**: While these fields are required for each ticket object, they are not directly accessed within this function. The entire array of tickets is passed to the Zendesk API. * @returns {Promise<{response: object, result: object}>} The response from the Zendesk API, including a job status object. * @throws {Error} Throws an error if the request to the Zendesk API fails.