@keystrokehq/supportbee 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/add-label-to-ticket.cjs +27 -0
- package/dist/actions/add-label-to-ticket.cjs.map +1 -0
- package/dist/actions/add-label-to-ticket.d.cts +9 -0
- package/dist/actions/add-label-to-ticket.d.cts.map +1 -0
- package/dist/actions/add-label-to-ticket.d.mts +9 -0
- package/dist/actions/add-label-to-ticket.d.mts.map +1 -0
- package/dist/actions/add-label-to-ticket.mjs +26 -0
- package/dist/actions/add-label-to-ticket.mjs.map +1 -0
- package/dist/actions/archive-ticket.cjs +33 -0
- package/dist/actions/archive-ticket.cjs.map +1 -0
- package/dist/actions/archive-ticket.d.cts +9 -0
- package/dist/actions/archive-ticket.d.cts.map +1 -0
- package/dist/actions/archive-ticket.d.mts +9 -0
- package/dist/actions/archive-ticket.d.mts.map +1 -0
- package/dist/actions/archive-ticket.mjs +32 -0
- package/dist/actions/archive-ticket.mjs.map +1 -0
- package/dist/actions/assign-ticket-to-team.cjs +28 -0
- package/dist/actions/assign-ticket-to-team.cjs.map +1 -0
- package/dist/actions/assign-ticket-to-team.d.cts +9 -0
- package/dist/actions/assign-ticket-to-team.d.cts.map +1 -0
- package/dist/actions/assign-ticket-to-team.d.mts +9 -0
- package/dist/actions/assign-ticket-to-team.d.mts.map +1 -0
- package/dist/actions/assign-ticket-to-team.mjs +27 -0
- package/dist/actions/assign-ticket-to-team.mjs.map +1 -0
- package/dist/actions/create-comment.cjs +49 -0
- package/dist/actions/create-comment.cjs.map +1 -0
- package/dist/actions/create-comment.d.cts +9 -0
- package/dist/actions/create-comment.d.cts.map +1 -0
- package/dist/actions/create-comment.d.mts +9 -0
- package/dist/actions/create-comment.d.mts.map +1 -0
- package/dist/actions/create-comment.mjs +48 -0
- package/dist/actions/create-comment.mjs.map +1 -0
- package/dist/actions/create-consequence.cjs +30 -0
- package/dist/actions/create-consequence.cjs.map +1 -0
- package/dist/actions/create-consequence.d.cts +9 -0
- package/dist/actions/create-consequence.d.cts.map +1 -0
- package/dist/actions/create-consequence.d.mts +9 -0
- package/dist/actions/create-consequence.d.mts.map +1 -0
- package/dist/actions/create-consequence.mjs +29 -0
- package/dist/actions/create-consequence.mjs.map +1 -0
- package/dist/actions/create-email.cjs +43 -0
- package/dist/actions/create-email.cjs.map +1 -0
- package/dist/actions/create-email.d.cts +9 -0
- package/dist/actions/create-email.d.cts.map +1 -0
- package/dist/actions/create-email.d.mts +9 -0
- package/dist/actions/create-email.d.mts.map +1 -0
- package/dist/actions/create-email.mjs +42 -0
- package/dist/actions/create-email.mjs.map +1 -0
- package/dist/actions/create-filter.cjs +25 -0
- package/dist/actions/create-filter.cjs.map +1 -0
- package/dist/actions/create-filter.d.cts +9 -0
- package/dist/actions/create-filter.d.cts.map +1 -0
- package/dist/actions/create-filter.d.mts +9 -0
- package/dist/actions/create-filter.d.mts.map +1 -0
- package/dist/actions/create-filter.mjs +22 -0
- package/dist/actions/create-filter.mjs.map +1 -0
- package/dist/actions/create-rule.cjs +30 -0
- package/dist/actions/create-rule.cjs.map +1 -0
- package/dist/actions/create-rule.d.cts +9 -0
- package/dist/actions/create-rule.d.cts.map +1 -0
- package/dist/actions/create-rule.d.mts +9 -0
- package/dist/actions/create-rule.d.mts.map +1 -0
- package/dist/actions/create-rule.mjs +27 -0
- package/dist/actions/create-rule.mjs.map +1 -0
- package/dist/actions/create-snippet.cjs +31 -0
- package/dist/actions/create-snippet.cjs.map +1 -0
- package/dist/actions/create-snippet.d.cts +9 -0
- package/dist/actions/create-snippet.d.cts.map +1 -0
- package/dist/actions/create-snippet.d.mts +9 -0
- package/dist/actions/create-snippet.d.mts.map +1 -0
- package/dist/actions/create-snippet.mjs +30 -0
- package/dist/actions/create-snippet.mjs.map +1 -0
- package/dist/actions/create-ticket-reply.cjs +56 -0
- package/dist/actions/create-ticket-reply.cjs.map +1 -0
- package/dist/actions/create-ticket-reply.d.cts +9 -0
- package/dist/actions/create-ticket-reply.d.cts.map +1 -0
- package/dist/actions/create-ticket-reply.d.mts +9 -0
- package/dist/actions/create-ticket-reply.d.mts.map +1 -0
- package/dist/actions/create-ticket-reply.mjs +55 -0
- package/dist/actions/create-ticket-reply.mjs.map +1 -0
- package/dist/actions/create-ticket.cjs +79 -0
- package/dist/actions/create-ticket.cjs.map +1 -0
- package/dist/actions/create-ticket.d.cts +9 -0
- package/dist/actions/create-ticket.d.cts.map +1 -0
- package/dist/actions/create-ticket.d.mts +9 -0
- package/dist/actions/create-ticket.d.mts.map +1 -0
- package/dist/actions/create-ticket.mjs +78 -0
- package/dist/actions/create-ticket.mjs.map +1 -0
- package/dist/actions/create-user-or-customer-group.cjs +50 -0
- package/dist/actions/create-user-or-customer-group.cjs.map +1 -0
- package/dist/actions/create-user-or-customer-group.d.cts +9 -0
- package/dist/actions/create-user-or-customer-group.d.cts.map +1 -0
- package/dist/actions/create-user-or-customer-group.d.mts +9 -0
- package/dist/actions/create-user-or-customer-group.d.mts.map +1 -0
- package/dist/actions/create-user-or-customer-group.mjs +49 -0
- package/dist/actions/create-user-or-customer-group.mjs.map +1 -0
- package/dist/actions/delete-snippet.cjs +20 -0
- package/dist/actions/delete-snippet.cjs.map +1 -0
- package/dist/actions/delete-snippet.d.cts +9 -0
- package/dist/actions/delete-snippet.d.cts.map +1 -0
- package/dist/actions/delete-snippet.d.mts +9 -0
- package/dist/actions/delete-snippet.d.mts.map +1 -0
- package/dist/actions/delete-snippet.mjs +17 -0
- package/dist/actions/delete-snippet.mjs.map +1 -0
- package/dist/actions/delete-ticket.cjs +20 -0
- package/dist/actions/delete-ticket.cjs.map +1 -0
- package/dist/actions/delete-ticket.d.cts +9 -0
- package/dist/actions/delete-ticket.d.cts.map +1 -0
- package/dist/actions/delete-ticket.d.mts +9 -0
- package/dist/actions/delete-ticket.d.mts.map +1 -0
- package/dist/actions/delete-ticket.mjs +17 -0
- package/dist/actions/delete-ticket.mjs.map +1 -0
- package/dist/actions/fetch-emails.cjs +28 -0
- package/dist/actions/fetch-emails.cjs.map +1 -0
- package/dist/actions/fetch-emails.d.cts +9 -0
- package/dist/actions/fetch-emails.d.cts.map +1 -0
- package/dist/actions/fetch-emails.d.mts +9 -0
- package/dist/actions/fetch-emails.d.mts.map +1 -0
- package/dist/actions/fetch-emails.mjs +27 -0
- package/dist/actions/fetch-emails.mjs.map +1 -0
- package/dist/actions/fetch-labels.cjs +21 -0
- package/dist/actions/fetch-labels.cjs.map +1 -0
- package/dist/actions/fetch-labels.d.cts +9 -0
- package/dist/actions/fetch-labels.d.cts.map +1 -0
- package/dist/actions/fetch-labels.d.mts +9 -0
- package/dist/actions/fetch-labels.d.mts.map +1 -0
- package/dist/actions/fetch-labels.mjs +20 -0
- package/dist/actions/fetch-labels.mjs.map +1 -0
- package/dist/actions/fetch-snippets.cjs +33 -0
- package/dist/actions/fetch-snippets.cjs.map +1 -0
- package/dist/actions/fetch-snippets.d.cts +9 -0
- package/dist/actions/fetch-snippets.d.cts.map +1 -0
- package/dist/actions/fetch-snippets.d.mts +9 -0
- package/dist/actions/fetch-snippets.d.mts.map +1 -0
- package/dist/actions/fetch-snippets.mjs +32 -0
- package/dist/actions/fetch-snippets.mjs.map +1 -0
- package/dist/actions/fetch-teams.cjs +23 -0
- package/dist/actions/fetch-teams.cjs.map +1 -0
- package/dist/actions/fetch-teams.d.cts +9 -0
- package/dist/actions/fetch-teams.d.cts.map +1 -0
- package/dist/actions/fetch-teams.d.mts +9 -0
- package/dist/actions/fetch-teams.d.mts.map +1 -0
- package/dist/actions/fetch-teams.mjs +22 -0
- package/dist/actions/fetch-teams.mjs.map +1 -0
- package/dist/actions/get-avg-first-response-time-report.cjs +31 -0
- package/dist/actions/get-avg-first-response-time-report.cjs.map +1 -0
- package/dist/actions/get-avg-first-response-time-report.d.cts +9 -0
- package/dist/actions/get-avg-first-response-time-report.d.cts.map +1 -0
- package/dist/actions/get-avg-first-response-time-report.d.mts +9 -0
- package/dist/actions/get-avg-first-response-time-report.d.mts.map +1 -0
- package/dist/actions/get-avg-first-response-time-report.mjs +30 -0
- package/dist/actions/get-avg-first-response-time-report.mjs.map +1 -0
- package/dist/actions/get-replies-count-report.cjs +25 -0
- package/dist/actions/get-replies-count-report.cjs.map +1 -0
- package/dist/actions/get-replies-count-report.d.cts +9 -0
- package/dist/actions/get-replies-count-report.d.cts.map +1 -0
- package/dist/actions/get-replies-count-report.d.mts +9 -0
- package/dist/actions/get-replies-count-report.d.mts.map +1 -0
- package/dist/actions/get-replies-count-report.mjs +24 -0
- package/dist/actions/get-replies-count-report.mjs.map +1 -0
- package/dist/actions/get-ticket.cjs +86 -0
- package/dist/actions/get-ticket.cjs.map +1 -0
- package/dist/actions/get-ticket.d.cts +9 -0
- package/dist/actions/get-ticket.d.cts.map +1 -0
- package/dist/actions/get-ticket.d.mts +9 -0
- package/dist/actions/get-ticket.d.mts.map +1 -0
- package/dist/actions/get-ticket.mjs +85 -0
- package/dist/actions/get-ticket.mjs.map +1 -0
- package/dist/actions/get-tickets-count-report.cjs +31 -0
- package/dist/actions/get-tickets-count-report.cjs.map +1 -0
- package/dist/actions/get-tickets-count-report.d.cts +9 -0
- package/dist/actions/get-tickets-count-report.d.cts.map +1 -0
- package/dist/actions/get-tickets-count-report.d.mts +9 -0
- package/dist/actions/get-tickets-count-report.d.mts.map +1 -0
- package/dist/actions/get-tickets-count-report.mjs +30 -0
- package/dist/actions/get-tickets-count-report.mjs.map +1 -0
- package/dist/actions/index.cjs +83 -0
- package/dist/actions/index.d.cts +42 -0
- package/dist/actions/index.d.mts +42 -0
- package/dist/actions/index.mjs +42 -0
- package/dist/actions/list-ticket-comments.cjs +50 -0
- package/dist/actions/list-ticket-comments.cjs.map +1 -0
- package/dist/actions/list-ticket-comments.d.cts +9 -0
- package/dist/actions/list-ticket-comments.d.cts.map +1 -0
- package/dist/actions/list-ticket-comments.d.mts +9 -0
- package/dist/actions/list-ticket-comments.d.mts.map +1 -0
- package/dist/actions/list-ticket-comments.mjs +49 -0
- package/dist/actions/list-ticket-comments.mjs.map +1 -0
- package/dist/actions/list-ticket-replies.cjs +49 -0
- package/dist/actions/list-ticket-replies.cjs.map +1 -0
- package/dist/actions/list-ticket-replies.d.cts +9 -0
- package/dist/actions/list-ticket-replies.d.cts.map +1 -0
- package/dist/actions/list-ticket-replies.d.mts +9 -0
- package/dist/actions/list-ticket-replies.d.mts.map +1 -0
- package/dist/actions/list-ticket-replies.mjs +48 -0
- package/dist/actions/list-ticket-replies.mjs.map +1 -0
- package/dist/actions/list-tickets.cjs +75 -0
- package/dist/actions/list-tickets.cjs.map +1 -0
- package/dist/actions/list-tickets.d.cts +9 -0
- package/dist/actions/list-tickets.d.cts.map +1 -0
- package/dist/actions/list-tickets.d.mts +9 -0
- package/dist/actions/list-tickets.d.mts.map +1 -0
- package/dist/actions/list-tickets.mjs +74 -0
- package/dist/actions/list-tickets.mjs.map +1 -0
- package/dist/actions/list-users.cjs +51 -0
- package/dist/actions/list-users.cjs.map +1 -0
- package/dist/actions/list-users.d.cts +9 -0
- package/dist/actions/list-users.d.cts.map +1 -0
- package/dist/actions/list-users.d.mts +9 -0
- package/dist/actions/list-users.d.mts.map +1 -0
- package/dist/actions/list-users.mjs +50 -0
- package/dist/actions/list-users.mjs.map +1 -0
- package/dist/actions/mark-ticket-as-answered.cjs +23 -0
- package/dist/actions/mark-ticket-as-answered.cjs.map +1 -0
- package/dist/actions/mark-ticket-as-answered.d.cts +9 -0
- package/dist/actions/mark-ticket-as-answered.d.cts.map +1 -0
- package/dist/actions/mark-ticket-as-answered.d.mts +9 -0
- package/dist/actions/mark-ticket-as-answered.d.mts.map +1 -0
- package/dist/actions/mark-ticket-as-answered.mjs +20 -0
- package/dist/actions/mark-ticket-as-answered.mjs.map +1 -0
- package/dist/actions/mark-ticket-as-spam.cjs +24 -0
- package/dist/actions/mark-ticket-as-spam.cjs.map +1 -0
- package/dist/actions/mark-ticket-as-spam.d.cts +9 -0
- package/dist/actions/mark-ticket-as-spam.d.cts.map +1 -0
- package/dist/actions/mark-ticket-as-spam.d.mts +9 -0
- package/dist/actions/mark-ticket-as-spam.d.mts.map +1 -0
- package/dist/actions/mark-ticket-as-spam.mjs +21 -0
- package/dist/actions/mark-ticket-as-spam.mjs.map +1 -0
- package/dist/actions/mark-ticket-as-unanswered.cjs +23 -0
- package/dist/actions/mark-ticket-as-unanswered.cjs.map +1 -0
- package/dist/actions/mark-ticket-as-unanswered.d.cts +9 -0
- package/dist/actions/mark-ticket-as-unanswered.d.cts.map +1 -0
- package/dist/actions/mark-ticket-as-unanswered.d.mts +9 -0
- package/dist/actions/mark-ticket-as-unanswered.d.mts.map +1 -0
- package/dist/actions/mark-ticket-as-unanswered.mjs +20 -0
- package/dist/actions/mark-ticket-as-unanswered.mjs.map +1 -0
- package/dist/actions/remove-label-from-ticket.cjs +24 -0
- package/dist/actions/remove-label-from-ticket.cjs.map +1 -0
- package/dist/actions/remove-label-from-ticket.d.cts +9 -0
- package/dist/actions/remove-label-from-ticket.d.cts.map +1 -0
- package/dist/actions/remove-label-from-ticket.d.mts +9 -0
- package/dist/actions/remove-label-from-ticket.d.mts.map +1 -0
- package/dist/actions/remove-label-from-ticket.mjs +21 -0
- package/dist/actions/remove-label-from-ticket.mjs.map +1 -0
- package/dist/actions/search-tickets.cjs +80 -0
- package/dist/actions/search-tickets.cjs.map +1 -0
- package/dist/actions/search-tickets.d.cts +9 -0
- package/dist/actions/search-tickets.d.cts.map +1 -0
- package/dist/actions/search-tickets.d.mts +9 -0
- package/dist/actions/search-tickets.d.mts.map +1 -0
- package/dist/actions/search-tickets.mjs +79 -0
- package/dist/actions/search-tickets.mjs.map +1 -0
- package/dist/actions/show-ticket-reply.cjs +47 -0
- package/dist/actions/show-ticket-reply.cjs.map +1 -0
- package/dist/actions/show-ticket-reply.d.cts +9 -0
- package/dist/actions/show-ticket-reply.d.cts.map +1 -0
- package/dist/actions/show-ticket-reply.d.mts +9 -0
- package/dist/actions/show-ticket-reply.d.mts.map +1 -0
- package/dist/actions/show-ticket-reply.mjs +46 -0
- package/dist/actions/show-ticket-reply.mjs.map +1 -0
- package/dist/actions/show-user-or-customer-group.cjs +47 -0
- package/dist/actions/show-user-or-customer-group.cjs.map +1 -0
- package/dist/actions/show-user-or-customer-group.d.cts +9 -0
- package/dist/actions/show-user-or-customer-group.d.cts.map +1 -0
- package/dist/actions/show-user-or-customer-group.d.mts +9 -0
- package/dist/actions/show-user-or-customer-group.d.mts.map +1 -0
- package/dist/actions/show-user-or-customer-group.mjs +46 -0
- package/dist/actions/show-user-or-customer-group.mjs.map +1 -0
- package/dist/actions/trash-ticket.cjs +26 -0
- package/dist/actions/trash-ticket.cjs.map +1 -0
- package/dist/actions/trash-ticket.d.cts +9 -0
- package/dist/actions/trash-ticket.d.cts.map +1 -0
- package/dist/actions/trash-ticket.d.mts +9 -0
- package/dist/actions/trash-ticket.d.mts.map +1 -0
- package/dist/actions/trash-ticket.mjs +25 -0
- package/dist/actions/trash-ticket.mjs.map +1 -0
- package/dist/actions/unarchive-ticket.cjs +20 -0
- package/dist/actions/unarchive-ticket.cjs.map +1 -0
- package/dist/actions/unarchive-ticket.d.cts +9 -0
- package/dist/actions/unarchive-ticket.d.cts.map +1 -0
- package/dist/actions/unarchive-ticket.d.mts +9 -0
- package/dist/actions/unarchive-ticket.d.mts.map +1 -0
- package/dist/actions/unarchive-ticket.mjs +17 -0
- package/dist/actions/unarchive-ticket.mjs.map +1 -0
- package/dist/actions/unassign-ticket-from-team.cjs +54 -0
- package/dist/actions/unassign-ticket-from-team.cjs.map +1 -0
- package/dist/actions/unassign-ticket-from-team.d.cts +9 -0
- package/dist/actions/unassign-ticket-from-team.d.cts.map +1 -0
- package/dist/actions/unassign-ticket-from-team.d.mts +9 -0
- package/dist/actions/unassign-ticket-from-team.d.mts.map +1 -0
- package/dist/actions/unassign-ticket-from-team.mjs +53 -0
- package/dist/actions/unassign-ticket-from-team.mjs.map +1 -0
- package/dist/actions/unassign-ticket-from-user.cjs +51 -0
- package/dist/actions/unassign-ticket-from-user.cjs.map +1 -0
- package/dist/actions/unassign-ticket-from-user.d.cts +9 -0
- package/dist/actions/unassign-ticket-from-user.d.cts.map +1 -0
- package/dist/actions/unassign-ticket-from-user.d.mts +9 -0
- package/dist/actions/unassign-ticket-from-user.d.mts.map +1 -0
- package/dist/actions/unassign-ticket-from-user.mjs +50 -0
- package/dist/actions/unassign-ticket-from-user.mjs.map +1 -0
- package/dist/actions/unmark-ticket-as-spam.cjs +24 -0
- package/dist/actions/unmark-ticket-as-spam.cjs.map +1 -0
- package/dist/actions/unmark-ticket-as-spam.d.cts +9 -0
- package/dist/actions/unmark-ticket-as-spam.d.cts.map +1 -0
- package/dist/actions/unmark-ticket-as-spam.d.mts +9 -0
- package/dist/actions/unmark-ticket-as-spam.d.mts.map +1 -0
- package/dist/actions/unmark-ticket-as-spam.mjs +21 -0
- package/dist/actions/unmark-ticket-as-spam.mjs.map +1 -0
- package/dist/actions/untrash-ticket.cjs +27 -0
- package/dist/actions/untrash-ticket.cjs.map +1 -0
- package/dist/actions/untrash-ticket.d.cts +9 -0
- package/dist/actions/untrash-ticket.d.cts.map +1 -0
- package/dist/actions/untrash-ticket.d.mts +9 -0
- package/dist/actions/untrash-ticket.d.mts.map +1 -0
- package/dist/actions/untrash-ticket.mjs +26 -0
- package/dist/actions/untrash-ticket.mjs.map +1 -0
- package/dist/actions/update-snippet.cjs +34 -0
- package/dist/actions/update-snippet.cjs.map +1 -0
- package/dist/actions/update-snippet.d.cts +9 -0
- package/dist/actions/update-snippet.d.cts.map +1 -0
- package/dist/actions/update-snippet.d.mts +9 -0
- package/dist/actions/update-snippet.d.mts.map +1 -0
- package/dist/actions/update-snippet.mjs +33 -0
- package/dist/actions/update-snippet.mjs.map +1 -0
- package/dist/actions/update-user.cjs +51 -0
- package/dist/actions/update-user.cjs.map +1 -0
- package/dist/actions/update-user.d.cts +9 -0
- package/dist/actions/update-user.d.cts.map +1 -0
- package/dist/actions/update-user.d.mts +9 -0
- package/dist/actions/update-user.d.mts.map +1 -0
- package/dist/actions/update-user.mjs +50 -0
- package/dist/actions/update-user.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +88 -0
- package/dist/index.d.cts +44 -0
- package/dist/index.d.mts +44 -0
- package/dist/index.mjs +45 -0
- package/package.json +49 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-avg-first-response-time-report.ts
|
|
4
|
+
const SupportbeeGetAvgFirstResponseTimeReportInput = zod.z.object({
|
|
5
|
+
team: zod.z.number().int().describe("Filter data points by team ID. Only reports for the specified team will be returned.").optional(),
|
|
6
|
+
user: zod.z.number().int().describe("Filter data points by agent ID. Only reports for the specified agent will be returned.").optional(),
|
|
7
|
+
label: zod.z.string().describe("Filter data points by label name. Only tickets with this label will be included in the report.").optional(),
|
|
8
|
+
since: zod.z.string().describe("Start of reporting period. Accepts various date formats: ISO 8601 (e.g., '2023-01-01T00:00:00Z'), YYYY-MM-DD (e.g., '2023-01-01'), or verbose formats (e.g., '15th Feb 2023'). Data points returned for max 30 days window.").optional(),
|
|
9
|
+
until: zod.z.string().describe("End of reporting period. Accepts various date formats: ISO 8601 (e.g., '2023-01-31T23:59:59Z'), YYYY-MM-DD (e.g., '2023-01-31'), or verbose formats. Data points returned for max 30 days window.").optional()
|
|
10
|
+
}).describe("Request model for fetching average first response time report.");
|
|
11
|
+
const SupportbeeGetAvgFirstResponseTimeReport_DataPointSchema = zod.z.object({
|
|
12
|
+
value: zod.z.string().describe("Average first response time in seconds for this data point."),
|
|
13
|
+
timestamp: zod.z.string().describe("Unix timestamp (in seconds) for when this data point was recorded.")
|
|
14
|
+
}).describe("A single data point representing average first response time at a specific timestamp.");
|
|
15
|
+
const SupportbeeGetAvgFirstResponseTimeReportOutput = zod.z.object({
|
|
16
|
+
type: zod.z.string().describe("Type of entity this report is for (e.g., 'company', 'agent', 'group'). Value is 'company' for company-wide reports, 'agent' when filtered by user, and 'group' when filtered by team.").nullable().optional(),
|
|
17
|
+
metric: zod.z.string().describe("The metric being reported (e.g., 'avg_first_response_time').").nullable().optional(),
|
|
18
|
+
type_id: zod.z.union([zod.z.number().int(), zod.z.string()]).nullable().optional(),
|
|
19
|
+
data_points: zod.z.array(SupportbeeGetAvgFirstResponseTimeReport_DataPointSchema).describe("List of data points, each containing the average first response time (in seconds) and a Unix timestamp.")
|
|
20
|
+
}).describe("Response model for average first response time report containing time-series data points.");
|
|
21
|
+
const supportbeeGetAvgFirstResponseTimeReport = require_action.action("SUPPORTBEE_GET_AVG_FIRST_RESPONSE_TIME_REPORT", {
|
|
22
|
+
slug: "supportbee-get-avg-first-response-time-report",
|
|
23
|
+
name: "Get Avg First Response Time Report",
|
|
24
|
+
description: "Tool to retrieve average first response time data points over time. Use when analyzing first-response performance metrics for support tickets. Returns time-series data with response times in seconds and Unix timestamps. Reports require admin API token access. Data is limited to a maximum 30-day window per request.",
|
|
25
|
+
input: SupportbeeGetAvgFirstResponseTimeReportInput,
|
|
26
|
+
output: SupportbeeGetAvgFirstResponseTimeReportOutput
|
|
27
|
+
});
|
|
28
|
+
//#endregion
|
|
29
|
+
exports.supportbeeGetAvgFirstResponseTimeReport = supportbeeGetAvgFirstResponseTimeReport;
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=get-avg-first-response-time-report.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-avg-first-response-time-report.cjs","names":["z","action"],"sources":["../../src/actions/get-avg-first-response-time-report.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupportbeeGetAvgFirstResponseTimeReportInput: z.ZodTypeAny = z.object({\n team: z.number().int().describe(\"Filter data points by team ID. Only reports for the specified team will be returned.\").optional(),\n user: z.number().int().describe(\"Filter data points by agent ID. Only reports for the specified agent will be returned.\").optional(),\n label: z.string().describe(\"Filter data points by label name. Only tickets with this label will be included in the report.\").optional(),\n since: z.string().describe(\"Start of reporting period. Accepts various date formats: ISO 8601 (e.g., '2023-01-01T00:00:00Z'), YYYY-MM-DD (e.g., '2023-01-01'), or verbose formats (e.g., '15th Feb 2023'). Data points returned for max 30 days window.\").optional(),\n until: z.string().describe(\"End of reporting period. Accepts various date formats: ISO 8601 (e.g., '2023-01-31T23:59:59Z'), YYYY-MM-DD (e.g., '2023-01-31'), or verbose formats. Data points returned for max 30 days window.\").optional(),\n}).describe(\"Request model for fetching average first response time report.\");\nconst SupportbeeGetAvgFirstResponseTimeReport_DataPointSchema: z.ZodTypeAny = z.object({\n value: z.string().describe(\"Average first response time in seconds for this data point.\"),\n timestamp: z.string().describe(\"Unix timestamp (in seconds) for when this data point was recorded.\"),\n}).describe(\"A single data point representing average first response time at a specific timestamp.\");\nexport const SupportbeeGetAvgFirstResponseTimeReportOutput: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of entity this report is for (e.g., 'company', 'agent', 'group'). Value is 'company' for company-wide reports, 'agent' when filtered by user, and 'group' when filtered by team.\").nullable().optional(),\n metric: z.string().describe(\"The metric being reported (e.g., 'avg_first_response_time').\").nullable().optional(),\n type_id: z.union([z.number().int(), z.string()]).nullable().optional(),\n data_points: z.array(SupportbeeGetAvgFirstResponseTimeReport_DataPointSchema).describe(\"List of data points, each containing the average first response time (in seconds) and a Unix timestamp.\"),\n}).describe(\"Response model for average first response time report containing time-series data points.\");\n\nexport const supportbeeGetAvgFirstResponseTimeReport = action(\"SUPPORTBEE_GET_AVG_FIRST_RESPONSE_TIME_REPORT\", {\n slug: \"supportbee-get-avg-first-response-time-report\",\n name: \"Get Avg First Response Time Report\",\n description: \"Tool to retrieve average first response time data points over time. Use when analyzing first-response performance metrics for support tickets. Returns time-series data with response times in seconds and Unix timestamps. Reports require admin API token access. Data is limited to a maximum 30-day window per request.\",\n input: SupportbeeGetAvgFirstResponseTimeReportInput,\n output: SupportbeeGetAvgFirstResponseTimeReportOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+CAA6DA,IAAAA,EAAE,OAAO;CACjF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CACjI,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CACnI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;CACtI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6NAA6N,CAAC,CAAC,SAAS;CACnQ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mMAAmM,CAAC,CAAC,SAAS;AAC3O,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAM,0DAAwEA,IAAAA,EAAE,OAAO;CACrF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CACxF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;AACrG,CAAC,CAAC,CAAC,SAAS,uFAAuF;AACnG,MAAa,gDAA8DA,IAAAA,EAAE,OAAO;CAClF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uLAAuL,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvO,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,SAASA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,aAAaA,IAAAA,EAAE,MAAM,uDAAuD,CAAC,CAAC,SAAS,yGAAyG;AAClM,CAAC,CAAC,CAAC,SAAS,2FAA2F;AAEvG,MAAa,0CAA0CC,eAAAA,OAAO,iDAAiD;CAC7G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-avg-first-response-time-report.d.ts
|
|
4
|
+
declare const SupportbeeGetAvgFirstResponseTimeReportInput: z.ZodTypeAny;
|
|
5
|
+
declare const SupportbeeGetAvgFirstResponseTimeReportOutput: z.ZodTypeAny;
|
|
6
|
+
declare const supportbeeGetAvgFirstResponseTimeReport: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { supportbeeGetAvgFirstResponseTimeReport };
|
|
9
|
+
//# sourceMappingURL=get-avg-first-response-time-report.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-avg-first-response-time-report.d.cts","names":[],"sources":["../../src/actions/get-avg-first-response-time-report.ts"],"mappings":";;;cAIa,4CAAA,EAA8C,CAAA,CAAE,UAMgB;AAAA,cAKhE,6CAAA,EAA+C,CAAA,CAAE,UAK0C;AAAA,cAE3F,uCAAA,gCAAuC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-avg-first-response-time-report.d.ts
|
|
4
|
+
declare const SupportbeeGetAvgFirstResponseTimeReportInput: z.ZodTypeAny;
|
|
5
|
+
declare const SupportbeeGetAvgFirstResponseTimeReportOutput: z.ZodTypeAny;
|
|
6
|
+
declare const supportbeeGetAvgFirstResponseTimeReport: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { supportbeeGetAvgFirstResponseTimeReport };
|
|
9
|
+
//# sourceMappingURL=get-avg-first-response-time-report.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-avg-first-response-time-report.d.mts","names":[],"sources":["../../src/actions/get-avg-first-response-time-report.ts"],"mappings":";;;cAIa,4CAAA,EAA8C,CAAA,CAAE,UAMgB;AAAA,cAKhE,6CAAA,EAA+C,CAAA,CAAE,UAK0C;AAAA,cAE3F,uCAAA,gCAAuC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-avg-first-response-time-report.ts
|
|
4
|
+
const SupportbeeGetAvgFirstResponseTimeReportInput = z.object({
|
|
5
|
+
team: z.number().int().describe("Filter data points by team ID. Only reports for the specified team will be returned.").optional(),
|
|
6
|
+
user: z.number().int().describe("Filter data points by agent ID. Only reports for the specified agent will be returned.").optional(),
|
|
7
|
+
label: z.string().describe("Filter data points by label name. Only tickets with this label will be included in the report.").optional(),
|
|
8
|
+
since: z.string().describe("Start of reporting period. Accepts various date formats: ISO 8601 (e.g., '2023-01-01T00:00:00Z'), YYYY-MM-DD (e.g., '2023-01-01'), or verbose formats (e.g., '15th Feb 2023'). Data points returned for max 30 days window.").optional(),
|
|
9
|
+
until: z.string().describe("End of reporting period. Accepts various date formats: ISO 8601 (e.g., '2023-01-31T23:59:59Z'), YYYY-MM-DD (e.g., '2023-01-31'), or verbose formats. Data points returned for max 30 days window.").optional()
|
|
10
|
+
}).describe("Request model for fetching average first response time report.");
|
|
11
|
+
const SupportbeeGetAvgFirstResponseTimeReport_DataPointSchema = z.object({
|
|
12
|
+
value: z.string().describe("Average first response time in seconds for this data point."),
|
|
13
|
+
timestamp: z.string().describe("Unix timestamp (in seconds) for when this data point was recorded.")
|
|
14
|
+
}).describe("A single data point representing average first response time at a specific timestamp.");
|
|
15
|
+
const supportbeeGetAvgFirstResponseTimeReport = action("SUPPORTBEE_GET_AVG_FIRST_RESPONSE_TIME_REPORT", {
|
|
16
|
+
slug: "supportbee-get-avg-first-response-time-report",
|
|
17
|
+
name: "Get Avg First Response Time Report",
|
|
18
|
+
description: "Tool to retrieve average first response time data points over time. Use when analyzing first-response performance metrics for support tickets. Returns time-series data with response times in seconds and Unix timestamps. Reports require admin API token access. Data is limited to a maximum 30-day window per request.",
|
|
19
|
+
input: SupportbeeGetAvgFirstResponseTimeReportInput,
|
|
20
|
+
output: z.object({
|
|
21
|
+
type: z.string().describe("Type of entity this report is for (e.g., 'company', 'agent', 'group'). Value is 'company' for company-wide reports, 'agent' when filtered by user, and 'group' when filtered by team.").nullable().optional(),
|
|
22
|
+
metric: z.string().describe("The metric being reported (e.g., 'avg_first_response_time').").nullable().optional(),
|
|
23
|
+
type_id: z.union([z.number().int(), z.string()]).nullable().optional(),
|
|
24
|
+
data_points: z.array(SupportbeeGetAvgFirstResponseTimeReport_DataPointSchema).describe("List of data points, each containing the average first response time (in seconds) and a Unix timestamp.")
|
|
25
|
+
}).describe("Response model for average first response time report containing time-series data points.")
|
|
26
|
+
});
|
|
27
|
+
//#endregion
|
|
28
|
+
export { supportbeeGetAvgFirstResponseTimeReport };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=get-avg-first-response-time-report.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-avg-first-response-time-report.mjs","names":[],"sources":["../../src/actions/get-avg-first-response-time-report.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupportbeeGetAvgFirstResponseTimeReportInput: z.ZodTypeAny = z.object({\n team: z.number().int().describe(\"Filter data points by team ID. Only reports for the specified team will be returned.\").optional(),\n user: z.number().int().describe(\"Filter data points by agent ID. Only reports for the specified agent will be returned.\").optional(),\n label: z.string().describe(\"Filter data points by label name. Only tickets with this label will be included in the report.\").optional(),\n since: z.string().describe(\"Start of reporting period. Accepts various date formats: ISO 8601 (e.g., '2023-01-01T00:00:00Z'), YYYY-MM-DD (e.g., '2023-01-01'), or verbose formats (e.g., '15th Feb 2023'). Data points returned for max 30 days window.\").optional(),\n until: z.string().describe(\"End of reporting period. Accepts various date formats: ISO 8601 (e.g., '2023-01-31T23:59:59Z'), YYYY-MM-DD (e.g., '2023-01-31'), or verbose formats. Data points returned for max 30 days window.\").optional(),\n}).describe(\"Request model for fetching average first response time report.\");\nconst SupportbeeGetAvgFirstResponseTimeReport_DataPointSchema: z.ZodTypeAny = z.object({\n value: z.string().describe(\"Average first response time in seconds for this data point.\"),\n timestamp: z.string().describe(\"Unix timestamp (in seconds) for when this data point was recorded.\"),\n}).describe(\"A single data point representing average first response time at a specific timestamp.\");\nexport const SupportbeeGetAvgFirstResponseTimeReportOutput: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of entity this report is for (e.g., 'company', 'agent', 'group'). Value is 'company' for company-wide reports, 'agent' when filtered by user, and 'group' when filtered by team.\").nullable().optional(),\n metric: z.string().describe(\"The metric being reported (e.g., 'avg_first_response_time').\").nullable().optional(),\n type_id: z.union([z.number().int(), z.string()]).nullable().optional(),\n data_points: z.array(SupportbeeGetAvgFirstResponseTimeReport_DataPointSchema).describe(\"List of data points, each containing the average first response time (in seconds) and a Unix timestamp.\"),\n}).describe(\"Response model for average first response time report containing time-series data points.\");\n\nexport const supportbeeGetAvgFirstResponseTimeReport = action(\"SUPPORTBEE_GET_AVG_FIRST_RESPONSE_TIME_REPORT\", {\n slug: \"supportbee-get-avg-first-response-time-report\",\n name: \"Get Avg First Response Time Report\",\n description: \"Tool to retrieve average first response time data points over time. Use when analyzing first-response performance metrics for support tickets. Returns time-series data with response times in seconds and Unix timestamps. Reports require admin API token access. Data is limited to a maximum 30-day window per request.\",\n input: SupportbeeGetAvgFirstResponseTimeReportInput,\n output: SupportbeeGetAvgFirstResponseTimeReportOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+CAA6D,EAAE,OAAO;CACjF,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CACjI,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CACnI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;CACtI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6NAA6N,CAAC,CAAC,SAAS;CACnQ,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mMAAmM,CAAC,CAAC,SAAS;AAC3O,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAM,0DAAwE,EAAE,OAAO;CACrF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CACxF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;AACrG,CAAC,CAAC,CAAC,SAAS,uFAAuF;AAQnG,MAAa,0CAA0C,OAAO,iDAAiD;CAC7G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZyE,EAAE,OAAO;EAClF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uLAAuL,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvO,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,SAAS,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrE,aAAa,EAAE,MAAM,uDAAuD,CAAC,CAAC,SAAS,yGAAyG;CAClM,CAAC,CAAC,CAAC,SAAS,2FAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-replies-count-report.ts
|
|
4
|
+
const SupportbeeGetRepliesCountReportInput = zod.z.object({}).describe("Request model for fetching replies count report.");
|
|
5
|
+
const SupportbeeGetRepliesCountReport_DataPointSchema = zod.z.object({
|
|
6
|
+
value: zod.z.string().describe("Number of replies as a string value (can be integer or decimal)"),
|
|
7
|
+
timestamp: zod.z.string().describe("Unix timestamp (seconds) as a string indicating when this data point was recorded")
|
|
8
|
+
}).describe("Model representing a single data point in the replies count report.");
|
|
9
|
+
const SupportbeeGetRepliesCountReportOutput = zod.z.object({
|
|
10
|
+
type: zod.z.string().describe("Type of the report (e.g., 'company', 'user', 'team')"),
|
|
11
|
+
metric: zod.z.string().describe("The metric being measured (e.g., 'replies_count')"),
|
|
12
|
+
type_id: zod.z.number().int().describe("ID of the entity the report is for"),
|
|
13
|
+
data_points: zod.z.array(SupportbeeGetRepliesCountReport_DataPointSchema).describe("List of replies count data points over time. Each point contains a value (count) and timestamp.")
|
|
14
|
+
}).describe("Response model for replies count report containing time-series data points.");
|
|
15
|
+
const supportbeeGetRepliesCountReport = require_action.action("SUPPORTBEE_GET_REPLIES_COUNT_REPORT", {
|
|
16
|
+
slug: "supportbee-get-replies-count-report",
|
|
17
|
+
name: "Get Replies Count Report",
|
|
18
|
+
description: "Retrieves replies count report data for the company. Returns time-series data points showing the number of replies over time. The report provides aggregate metrics for the entire company account and includes type information (company/user/team), the entity ID, and the metric name. Requires admin-level API access. Use this to analyze reply volume trends and patterns.",
|
|
19
|
+
input: SupportbeeGetRepliesCountReportInput,
|
|
20
|
+
output: SupportbeeGetRepliesCountReportOutput
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
exports.supportbeeGetRepliesCountReport = supportbeeGetRepliesCountReport;
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=get-replies-count-report.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-replies-count-report.cjs","names":["z","action"],"sources":["../../src/actions/get-replies-count-report.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupportbeeGetRepliesCountReportInput: z.ZodTypeAny = z.object({}).describe(\"Request model for fetching replies count report.\");\nconst SupportbeeGetRepliesCountReport_DataPointSchema: z.ZodTypeAny = z.object({\n value: z.string().describe(\"Number of replies as a string value (can be integer or decimal)\"),\n timestamp: z.string().describe(\"Unix timestamp (seconds) as a string indicating when this data point was recorded\"),\n}).describe(\"Model representing a single data point in the replies count report.\");\nexport const SupportbeeGetRepliesCountReportOutput: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of the report (e.g., 'company', 'user', 'team')\"),\n metric: z.string().describe(\"The metric being measured (e.g., 'replies_count')\"),\n type_id: z.number().int().describe(\"ID of the entity the report is for\"),\n data_points: z.array(SupportbeeGetRepliesCountReport_DataPointSchema).describe(\"List of replies count data points over time. Each point contains a value (count) and timestamp.\"),\n}).describe(\"Response model for replies count report containing time-series data points.\");\n\nexport const supportbeeGetRepliesCountReport = action(\"SUPPORTBEE_GET_REPLIES_COUNT_REPORT\", {\n slug: \"supportbee-get-replies-count-report\",\n name: \"Get Replies Count Report\",\n description: \"Retrieves replies count report data for the company. Returns time-series data points showing the number of replies over time. The report provides aggregate metrics for the entire company account and includes type information (company/user/team), the entity ID, and the metric name. Requires admin-level API access. Use this to analyze reply volume trends and patterns.\",\n input: SupportbeeGetRepliesCountReportInput,\n output: SupportbeeGetRepliesCountReportOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAqDA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC1I,MAAM,kDAAgEA,IAAAA,EAAE,OAAO;CAC7E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CAC5F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;AACpH,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAa,wCAAsDA,IAAAA,EAAE,OAAO;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CAChF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CAC/E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;CACvE,aAAaA,IAAAA,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,iGAAiG;AAClL,CAAC,CAAC,CAAC,SAAS,6EAA6E;AAEzF,MAAa,kCAAkCC,eAAAA,OAAO,uCAAuC;CAC3F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-replies-count-report.d.ts
|
|
4
|
+
declare const SupportbeeGetRepliesCountReportInput: z.ZodTypeAny;
|
|
5
|
+
declare const SupportbeeGetRepliesCountReportOutput: z.ZodTypeAny;
|
|
6
|
+
declare const supportbeeGetRepliesCountReport: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { supportbeeGetRepliesCountReport };
|
|
9
|
+
//# sourceMappingURL=get-replies-count-report.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-replies-count-report.d.cts","names":[],"sources":["../../src/actions/get-replies-count-report.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAAsF;AAAA,cAK9H,qCAAA,EAAuC,CAAA,CAAE,UAKoC;AAAA,cAE7E,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-replies-count-report.d.ts
|
|
4
|
+
declare const SupportbeeGetRepliesCountReportInput: z.ZodTypeAny;
|
|
5
|
+
declare const SupportbeeGetRepliesCountReportOutput: z.ZodTypeAny;
|
|
6
|
+
declare const supportbeeGetRepliesCountReport: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { supportbeeGetRepliesCountReport };
|
|
9
|
+
//# sourceMappingURL=get-replies-count-report.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-replies-count-report.d.mts","names":[],"sources":["../../src/actions/get-replies-count-report.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAAsF;AAAA,cAK9H,qCAAA,EAAuC,CAAA,CAAE,UAKoC;AAAA,cAE7E,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-replies-count-report.ts
|
|
4
|
+
const SupportbeeGetRepliesCountReportInput = z.object({}).describe("Request model for fetching replies count report.");
|
|
5
|
+
const SupportbeeGetRepliesCountReport_DataPointSchema = z.object({
|
|
6
|
+
value: z.string().describe("Number of replies as a string value (can be integer or decimal)"),
|
|
7
|
+
timestamp: z.string().describe("Unix timestamp (seconds) as a string indicating when this data point was recorded")
|
|
8
|
+
}).describe("Model representing a single data point in the replies count report.");
|
|
9
|
+
const supportbeeGetRepliesCountReport = action("SUPPORTBEE_GET_REPLIES_COUNT_REPORT", {
|
|
10
|
+
slug: "supportbee-get-replies-count-report",
|
|
11
|
+
name: "Get Replies Count Report",
|
|
12
|
+
description: "Retrieves replies count report data for the company. Returns time-series data points showing the number of replies over time. The report provides aggregate metrics for the entire company account and includes type information (company/user/team), the entity ID, and the metric name. Requires admin-level API access. Use this to analyze reply volume trends and patterns.",
|
|
13
|
+
input: SupportbeeGetRepliesCountReportInput,
|
|
14
|
+
output: z.object({
|
|
15
|
+
type: z.string().describe("Type of the report (e.g., 'company', 'user', 'team')"),
|
|
16
|
+
metric: z.string().describe("The metric being measured (e.g., 'replies_count')"),
|
|
17
|
+
type_id: z.number().int().describe("ID of the entity the report is for"),
|
|
18
|
+
data_points: z.array(SupportbeeGetRepliesCountReport_DataPointSchema).describe("List of replies count data points over time. Each point contains a value (count) and timestamp.")
|
|
19
|
+
}).describe("Response model for replies count report containing time-series data points.")
|
|
20
|
+
});
|
|
21
|
+
//#endregion
|
|
22
|
+
export { supportbeeGetRepliesCountReport };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=get-replies-count-report.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-replies-count-report.mjs","names":[],"sources":["../../src/actions/get-replies-count-report.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupportbeeGetRepliesCountReportInput: z.ZodTypeAny = z.object({}).describe(\"Request model for fetching replies count report.\");\nconst SupportbeeGetRepliesCountReport_DataPointSchema: z.ZodTypeAny = z.object({\n value: z.string().describe(\"Number of replies as a string value (can be integer or decimal)\"),\n timestamp: z.string().describe(\"Unix timestamp (seconds) as a string indicating when this data point was recorded\"),\n}).describe(\"Model representing a single data point in the replies count report.\");\nexport const SupportbeeGetRepliesCountReportOutput: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of the report (e.g., 'company', 'user', 'team')\"),\n metric: z.string().describe(\"The metric being measured (e.g., 'replies_count')\"),\n type_id: z.number().int().describe(\"ID of the entity the report is for\"),\n data_points: z.array(SupportbeeGetRepliesCountReport_DataPointSchema).describe(\"List of replies count data points over time. Each point contains a value (count) and timestamp.\"),\n}).describe(\"Response model for replies count report containing time-series data points.\");\n\nexport const supportbeeGetRepliesCountReport = action(\"SUPPORTBEE_GET_REPLIES_COUNT_REPORT\", {\n slug: \"supportbee-get-replies-count-report\",\n name: \"Get Replies Count Report\",\n description: \"Retrieves replies count report data for the company. Returns time-series data points showing the number of replies over time. The report provides aggregate metrics for the entire company account and includes type information (company/user/team), the entity ID, and the metric name. Requires admin-level API access. Use this to analyze reply volume trends and patterns.\",\n input: SupportbeeGetRepliesCountReportInput,\n output: SupportbeeGetRepliesCountReportOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAqD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC1I,MAAM,kDAAgE,EAAE,OAAO;CAC7E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CAC5F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;AACpH,CAAC,CAAC,CAAC,SAAS,qEAAqE;AAQjF,MAAa,kCAAkC,OAAO,uCAAuC;CAC3F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZiE,EAAE,OAAO;EAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;EAChF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;EAC/E,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;EACvE,aAAa,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,iGAAiG;CAClL,CAAC,CAAC,CAAC,SAAS,6EAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-ticket.ts
|
|
4
|
+
const SupportbeeGetTicketInput = zod.z.object({ id: zod.z.string().describe("The unique identifier of the ticket to retrieve.") }).describe("Request model for retrieving a single ticket by ID.");
|
|
5
|
+
const SupportbeeGetTicket_TicketLabelSchema = zod.z.object({
|
|
6
|
+
name: zod.z.string().describe("Name of the label.").nullable().optional(),
|
|
7
|
+
color: zod.z.string().describe("Color of the label.").nullable().optional()
|
|
8
|
+
}).passthrough().describe("Label information for a ticket.");
|
|
9
|
+
const SupportbeeGetTicket_AttachmentUrlSchema = zod.z.object({
|
|
10
|
+
thumb: zod.z.string().describe("Thumbnail URL for the attachment.").nullable().optional(),
|
|
11
|
+
original: zod.z.string().describe("Original attachment URL.").nullable().optional()
|
|
12
|
+
}).passthrough().describe("URLs for an attachment.");
|
|
13
|
+
const SupportbeeGetTicket_TicketAttachmentSchema = zod.z.object({
|
|
14
|
+
id: zod.z.number().int().describe("Unique ID of the attachment.").nullable().optional(),
|
|
15
|
+
url: SupportbeeGetTicket_AttachmentUrlSchema.nullable().optional(),
|
|
16
|
+
filename: zod.z.string().describe("Name of the attached file.").nullable().optional(),
|
|
17
|
+
created_at: zod.z.string().describe("Creation timestamp in ISO 8601 format.").nullable().optional(),
|
|
18
|
+
content_type: zod.z.string().describe("MIME type of the attachment.").nullable().optional()
|
|
19
|
+
}).passthrough().describe("Attachment information in ticket content.");
|
|
20
|
+
const SupportbeeGetTicket_TicketContentSchema = zod.z.object({
|
|
21
|
+
body: zod.z.string().describe("Plain text body of the ticket.").nullable().optional(),
|
|
22
|
+
html: zod.z.string().describe("HTML body of the ticket.").nullable().optional(),
|
|
23
|
+
attachments: zod.z.array(SupportbeeGetTicket_TicketAttachmentSchema).describe("List of attachments in the ticket.").nullable().optional()
|
|
24
|
+
}).passthrough().describe("Content structure of the ticket.");
|
|
25
|
+
const SupportbeeGetTicket_PictureUrlsSchema = zod.z.object({
|
|
26
|
+
thumb20: zod.z.string().describe("20x20 thumbnail URL.").nullable().optional(),
|
|
27
|
+
thumb24: zod.z.string().describe("24x24 thumbnail URL.").nullable().optional(),
|
|
28
|
+
thumb32: zod.z.string().describe("32x32 thumbnail URL.").nullable().optional(),
|
|
29
|
+
thumb48: zod.z.string().describe("48x48 thumbnail URL.").nullable().optional(),
|
|
30
|
+
thumb64: zod.z.string().describe("64x64 thumbnail URL.").nullable().optional(),
|
|
31
|
+
thumb128: zod.z.string().describe("128x128 thumbnail URL.").nullable().optional()
|
|
32
|
+
}).passthrough().describe("Picture URLs in various sizes.");
|
|
33
|
+
const SupportbeeGetTicket_TicketRequesterSchema = zod.z.object({
|
|
34
|
+
id: zod.z.number().int().describe("Unique ID of the requester.").nullable().optional(),
|
|
35
|
+
name: zod.z.string().describe("Name of the requester.").nullable().optional(),
|
|
36
|
+
agent: zod.z.boolean().describe("Whether the requester is an agent.").nullable().optional(),
|
|
37
|
+
email: zod.z.string().describe("Email address of the requester.").nullable().optional(),
|
|
38
|
+
picture: SupportbeeGetTicket_PictureUrlsSchema.nullable().optional()
|
|
39
|
+
}).passthrough().describe("Information about the ticket requester.");
|
|
40
|
+
const SupportbeeGetTicket_AssignedUserSchema = zod.z.object({
|
|
41
|
+
id: zod.z.number().int().describe("ID of the assigned user.").nullable().optional(),
|
|
42
|
+
name: zod.z.string().describe("Name of the assigned user.").nullable().optional(),
|
|
43
|
+
agent: zod.z.boolean().describe("Whether the user is an agent.").nullable().optional(),
|
|
44
|
+
email: zod.z.string().describe("Email of the assigned user.").nullable().optional(),
|
|
45
|
+
picture: SupportbeeGetTicket_PictureUrlsSchema.nullable().optional()
|
|
46
|
+
}).passthrough().describe("Information about an assigned user.");
|
|
47
|
+
const SupportbeeGetTicket_AssignedGroupSchema = zod.z.object({
|
|
48
|
+
id: zod.z.number().int().describe("ID of the assigned group.").nullable().optional(),
|
|
49
|
+
name: zod.z.string().describe("Name of the assigned group.").nullable().optional(),
|
|
50
|
+
picture: SupportbeeGetTicket_PictureUrlsSchema.nullable().optional()
|
|
51
|
+
}).passthrough().describe("Information about an assigned group/team.");
|
|
52
|
+
const SupportbeeGetTicket_CurrentAssigneeSchema = zod.z.object({
|
|
53
|
+
user: SupportbeeGetTicket_AssignedUserSchema.nullable().optional(),
|
|
54
|
+
group: SupportbeeGetTicket_AssignedGroupSchema.nullable().optional()
|
|
55
|
+
}).passthrough().describe("Current assignee information (user or group).");
|
|
56
|
+
const SupportbeeGetTicket_TicketDataSchema = zod.z.object({
|
|
57
|
+
cc: zod.z.array(zod.z.string()).describe("List of CC email addresses.").nullable().optional(),
|
|
58
|
+
id: zod.z.number().int().describe("Unique ID of the ticket."),
|
|
59
|
+
spam: zod.z.boolean().describe("Whether the ticket is marked as spam.").nullable().optional(),
|
|
60
|
+
trash: zod.z.boolean().describe("Whether the ticket is trashed.").nullable().optional(),
|
|
61
|
+
labels: zod.z.array(SupportbeeGetTicket_TicketLabelSchema).describe("Labels associated with the ticket.").nullable().optional(),
|
|
62
|
+
content: SupportbeeGetTicket_TicketContentSchema.nullable().optional(),
|
|
63
|
+
starred: zod.z.boolean().describe("Whether the ticket is starred.").nullable().optional(),
|
|
64
|
+
subject: zod.z.string().describe("Subject of the ticket.").nullable().optional(),
|
|
65
|
+
summary: zod.z.string().describe("Short summary of the ticket content.").nullable().optional(),
|
|
66
|
+
archived: zod.z.boolean().describe("Whether the ticket is archived.").nullable().optional(),
|
|
67
|
+
requester: SupportbeeGetTicket_TicketRequesterSchema.nullable().optional(),
|
|
68
|
+
created_at: zod.z.string().describe("Creation timestamp (ISO 8601).").nullable().optional(),
|
|
69
|
+
unanswered: zod.z.boolean().describe("Whether the ticket is unanswered.").nullable().optional(),
|
|
70
|
+
replies_count: zod.z.number().int().describe("Number of replies on the ticket.").nullable().optional(),
|
|
71
|
+
comments_count: zod.z.number().int().describe("Number of comments on the ticket.").nullable().optional(),
|
|
72
|
+
current_assignee: SupportbeeGetTicket_CurrentAssigneeSchema.nullable().optional(),
|
|
73
|
+
last_activity_at: zod.z.string().describe("Last activity timestamp (ISO 8601).").nullable().optional()
|
|
74
|
+
}).passthrough().describe("Complete ticket data model.");
|
|
75
|
+
const SupportbeeGetTicketOutput = zod.z.object({ ticket: SupportbeeGetTicket_TicketDataSchema.nullable() }).passthrough().describe("Response model for retrieving a ticket.");
|
|
76
|
+
const supportbeeGetTicket = require_action.action("SUPPORTBEE_GET_TICKET", {
|
|
77
|
+
slug: "supportbee-get-ticket",
|
|
78
|
+
name: "Get Ticket",
|
|
79
|
+
description: "Tool to retrieve a specific SupportBee ticket by its ID. Returns complete ticket details including subject, content, requester, assignee, labels, and reply/comment counts. Use when you need to fetch full details of a single ticket.",
|
|
80
|
+
input: SupportbeeGetTicketInput,
|
|
81
|
+
output: SupportbeeGetTicketOutput
|
|
82
|
+
});
|
|
83
|
+
//#endregion
|
|
84
|
+
exports.supportbeeGetTicket = supportbeeGetTicket;
|
|
85
|
+
|
|
86
|
+
//# sourceMappingURL=get-ticket.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-ticket.cjs","names":["z","action"],"sources":["../../src/actions/get-ticket.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupportbeeGetTicketInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the ticket to retrieve.\"),\n}).describe(\"Request model for retrieving a single ticket by ID.\");\nconst SupportbeeGetTicket_TicketLabelSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the label.\").nullable().optional(),\n color: z.string().describe(\"Color of the label.\").nullable().optional(),\n}).passthrough().describe(\"Label information for a ticket.\");\nconst SupportbeeGetTicket_AttachmentUrlSchema: z.ZodTypeAny = z.object({\n thumb: z.string().describe(\"Thumbnail URL for the attachment.\").nullable().optional(),\n original: z.string().describe(\"Original attachment URL.\").nullable().optional(),\n}).passthrough().describe(\"URLs for an attachment.\");\nconst SupportbeeGetTicket_TicketAttachmentSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique ID of the attachment.\").nullable().optional(),\n url: SupportbeeGetTicket_AttachmentUrlSchema.nullable().optional(),\n filename: z.string().describe(\"Name of the attached file.\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format.\").nullable().optional(),\n content_type: z.string().describe(\"MIME type of the attachment.\").nullable().optional(),\n}).passthrough().describe(\"Attachment information in ticket content.\");\nconst SupportbeeGetTicket_TicketContentSchema: z.ZodTypeAny = z.object({\n body: z.string().describe(\"Plain text body of the ticket.\").nullable().optional(),\n html: z.string().describe(\"HTML body of the ticket.\").nullable().optional(),\n attachments: z.array(SupportbeeGetTicket_TicketAttachmentSchema).describe(\"List of attachments in the ticket.\").nullable().optional(),\n}).passthrough().describe(\"Content structure of the ticket.\");\nconst SupportbeeGetTicket_PictureUrlsSchema: z.ZodTypeAny = z.object({\n thumb20: z.string().describe(\"20x20 thumbnail URL.\").nullable().optional(),\n thumb24: z.string().describe(\"24x24 thumbnail URL.\").nullable().optional(),\n thumb32: z.string().describe(\"32x32 thumbnail URL.\").nullable().optional(),\n thumb48: z.string().describe(\"48x48 thumbnail URL.\").nullable().optional(),\n thumb64: z.string().describe(\"64x64 thumbnail URL.\").nullable().optional(),\n thumb128: z.string().describe(\"128x128 thumbnail URL.\").nullable().optional(),\n}).passthrough().describe(\"Picture URLs in various sizes.\");\nconst SupportbeeGetTicket_TicketRequesterSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique ID of the requester.\").nullable().optional(),\n name: z.string().describe(\"Name of the requester.\").nullable().optional(),\n agent: z.boolean().describe(\"Whether the requester is an agent.\").nullable().optional(),\n email: z.string().describe(\"Email address of the requester.\").nullable().optional(),\n picture: SupportbeeGetTicket_PictureUrlsSchema.nullable().optional(),\n}).passthrough().describe(\"Information about the ticket requester.\");\nconst SupportbeeGetTicket_AssignedUserSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the assigned user.\").nullable().optional(),\n name: z.string().describe(\"Name of the assigned user.\").nullable().optional(),\n agent: z.boolean().describe(\"Whether the user is an agent.\").nullable().optional(),\n email: z.string().describe(\"Email of the assigned user.\").nullable().optional(),\n picture: SupportbeeGetTicket_PictureUrlsSchema.nullable().optional(),\n}).passthrough().describe(\"Information about an assigned user.\");\nconst SupportbeeGetTicket_AssignedGroupSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the assigned group.\").nullable().optional(),\n name: z.string().describe(\"Name of the assigned group.\").nullable().optional(),\n picture: SupportbeeGetTicket_PictureUrlsSchema.nullable().optional(),\n}).passthrough().describe(\"Information about an assigned group/team.\");\nconst SupportbeeGetTicket_CurrentAssigneeSchema: z.ZodTypeAny = z.object({\n user: SupportbeeGetTicket_AssignedUserSchema.nullable().optional(),\n group: SupportbeeGetTicket_AssignedGroupSchema.nullable().optional(),\n}).passthrough().describe(\"Current assignee information (user or group).\");\nconst SupportbeeGetTicket_TicketDataSchema: z.ZodTypeAny = z.object({\n cc: z.array(z.string()).describe(\"List of CC email addresses.\").nullable().optional(),\n id: z.number().int().describe(\"Unique ID of the ticket.\"),\n spam: z.boolean().describe(\"Whether the ticket is marked as spam.\").nullable().optional(),\n trash: z.boolean().describe(\"Whether the ticket is trashed.\").nullable().optional(),\n labels: z.array(SupportbeeGetTicket_TicketLabelSchema).describe(\"Labels associated with the ticket.\").nullable().optional(),\n content: SupportbeeGetTicket_TicketContentSchema.nullable().optional(),\n starred: z.boolean().describe(\"Whether the ticket is starred.\").nullable().optional(),\n subject: z.string().describe(\"Subject of the ticket.\").nullable().optional(),\n summary: z.string().describe(\"Short summary of the ticket content.\").nullable().optional(),\n archived: z.boolean().describe(\"Whether the ticket is archived.\").nullable().optional(),\n requester: SupportbeeGetTicket_TicketRequesterSchema.nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp (ISO 8601).\").nullable().optional(),\n unanswered: z.boolean().describe(\"Whether the ticket is unanswered.\").nullable().optional(),\n replies_count: z.number().int().describe(\"Number of replies on the ticket.\").nullable().optional(),\n comments_count: z.number().int().describe(\"Number of comments on the ticket.\").nullable().optional(),\n current_assignee: SupportbeeGetTicket_CurrentAssigneeSchema.nullable().optional(),\n last_activity_at: z.string().describe(\"Last activity timestamp (ISO 8601).\").nullable().optional(),\n}).passthrough().describe(\"Complete ticket data model.\");\nexport const SupportbeeGetTicketOutput: z.ZodTypeAny = z.object({\n ticket: SupportbeeGetTicket_TicketDataSchema.nullable(),\n}).passthrough().describe(\"Response model for retrieving a ticket.\");\n\nexport const supportbeeGetTicket = action(\"SUPPORTBEE_GET_TICKET\", {\n slug: \"supportbee-get-ticket\",\n name: \"Get Ticket\",\n description: \"Tool to retrieve a specific SupportBee ticket by its ID. Returns complete ticket details including subject, content, requester, assignee, labels, and reply/comment counts. Use when you need to fetch full details of a single ticket.\",\n input: SupportbeeGetTicketInput,\n output: SupportbeeGetTicketOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO,EAC7D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,EAC5E,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,wCAAsDA,IAAAA,EAAE,OAAO;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;C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AS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,kBAAkB,0CAA0C,SAAS,CAAC,CAAC,SAAS;CAChF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6BAA6B;AACvD,MAAa,4BAA0CA,IAAAA,EAAE,OAAO,EAC9D,QAAQ,qCAAqC,SAAS,EACxD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-ticket.d.ts
|
|
4
|
+
declare const SupportbeeGetTicketInput: z.ZodTypeAny;
|
|
5
|
+
declare const SupportbeeGetTicketOutput: z.ZodTypeAny;
|
|
6
|
+
declare const supportbeeGetTicket: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { supportbeeGetTicket };
|
|
9
|
+
//# sourceMappingURL=get-ticket.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-ticket.d.cts","names":[],"sources":["../../src/actions/get-ticket.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAEyB;AAAA,cAuErD,yBAAA,EAA2B,CAAA,CAAE,UAE0B;AAAA,cAEvD,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-ticket.d.ts
|
|
4
|
+
declare const SupportbeeGetTicketInput: z.ZodTypeAny;
|
|
5
|
+
declare const SupportbeeGetTicketOutput: z.ZodTypeAny;
|
|
6
|
+
declare const supportbeeGetTicket: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { supportbeeGetTicket };
|
|
9
|
+
//# sourceMappingURL=get-ticket.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-ticket.d.mts","names":[],"sources":["../../src/actions/get-ticket.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAEyB;AAAA,cAuErD,yBAAA,EAA2B,CAAA,CAAE,UAE0B;AAAA,cAEvD,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-ticket.ts
|
|
4
|
+
const SupportbeeGetTicketInput = z.object({ id: z.string().describe("The unique identifier of the ticket to retrieve.") }).describe("Request model for retrieving a single ticket by ID.");
|
|
5
|
+
const SupportbeeGetTicket_TicketLabelSchema = z.object({
|
|
6
|
+
name: z.string().describe("Name of the label.").nullable().optional(),
|
|
7
|
+
color: z.string().describe("Color of the label.").nullable().optional()
|
|
8
|
+
}).passthrough().describe("Label information for a ticket.");
|
|
9
|
+
const SupportbeeGetTicket_AttachmentUrlSchema = z.object({
|
|
10
|
+
thumb: z.string().describe("Thumbnail URL for the attachment.").nullable().optional(),
|
|
11
|
+
original: z.string().describe("Original attachment URL.").nullable().optional()
|
|
12
|
+
}).passthrough().describe("URLs for an attachment.");
|
|
13
|
+
const SupportbeeGetTicket_TicketAttachmentSchema = z.object({
|
|
14
|
+
id: z.number().int().describe("Unique ID of the attachment.").nullable().optional(),
|
|
15
|
+
url: SupportbeeGetTicket_AttachmentUrlSchema.nullable().optional(),
|
|
16
|
+
filename: z.string().describe("Name of the attached file.").nullable().optional(),
|
|
17
|
+
created_at: z.string().describe("Creation timestamp in ISO 8601 format.").nullable().optional(),
|
|
18
|
+
content_type: z.string().describe("MIME type of the attachment.").nullable().optional()
|
|
19
|
+
}).passthrough().describe("Attachment information in ticket content.");
|
|
20
|
+
const SupportbeeGetTicket_TicketContentSchema = z.object({
|
|
21
|
+
body: z.string().describe("Plain text body of the ticket.").nullable().optional(),
|
|
22
|
+
html: z.string().describe("HTML body of the ticket.").nullable().optional(),
|
|
23
|
+
attachments: z.array(SupportbeeGetTicket_TicketAttachmentSchema).describe("List of attachments in the ticket.").nullable().optional()
|
|
24
|
+
}).passthrough().describe("Content structure of the ticket.");
|
|
25
|
+
const SupportbeeGetTicket_PictureUrlsSchema = z.object({
|
|
26
|
+
thumb20: z.string().describe("20x20 thumbnail URL.").nullable().optional(),
|
|
27
|
+
thumb24: z.string().describe("24x24 thumbnail URL.").nullable().optional(),
|
|
28
|
+
thumb32: z.string().describe("32x32 thumbnail URL.").nullable().optional(),
|
|
29
|
+
thumb48: z.string().describe("48x48 thumbnail URL.").nullable().optional(),
|
|
30
|
+
thumb64: z.string().describe("64x64 thumbnail URL.").nullable().optional(),
|
|
31
|
+
thumb128: z.string().describe("128x128 thumbnail URL.").nullable().optional()
|
|
32
|
+
}).passthrough().describe("Picture URLs in various sizes.");
|
|
33
|
+
const SupportbeeGetTicket_TicketRequesterSchema = z.object({
|
|
34
|
+
id: z.number().int().describe("Unique ID of the requester.").nullable().optional(),
|
|
35
|
+
name: z.string().describe("Name of the requester.").nullable().optional(),
|
|
36
|
+
agent: z.boolean().describe("Whether the requester is an agent.").nullable().optional(),
|
|
37
|
+
email: z.string().describe("Email address of the requester.").nullable().optional(),
|
|
38
|
+
picture: SupportbeeGetTicket_PictureUrlsSchema.nullable().optional()
|
|
39
|
+
}).passthrough().describe("Information about the ticket requester.");
|
|
40
|
+
const SupportbeeGetTicket_AssignedUserSchema = z.object({
|
|
41
|
+
id: z.number().int().describe("ID of the assigned user.").nullable().optional(),
|
|
42
|
+
name: z.string().describe("Name of the assigned user.").nullable().optional(),
|
|
43
|
+
agent: z.boolean().describe("Whether the user is an agent.").nullable().optional(),
|
|
44
|
+
email: z.string().describe("Email of the assigned user.").nullable().optional(),
|
|
45
|
+
picture: SupportbeeGetTicket_PictureUrlsSchema.nullable().optional()
|
|
46
|
+
}).passthrough().describe("Information about an assigned user.");
|
|
47
|
+
const SupportbeeGetTicket_AssignedGroupSchema = z.object({
|
|
48
|
+
id: z.number().int().describe("ID of the assigned group.").nullable().optional(),
|
|
49
|
+
name: z.string().describe("Name of the assigned group.").nullable().optional(),
|
|
50
|
+
picture: SupportbeeGetTicket_PictureUrlsSchema.nullable().optional()
|
|
51
|
+
}).passthrough().describe("Information about an assigned group/team.");
|
|
52
|
+
const SupportbeeGetTicket_CurrentAssigneeSchema = z.object({
|
|
53
|
+
user: SupportbeeGetTicket_AssignedUserSchema.nullable().optional(),
|
|
54
|
+
group: SupportbeeGetTicket_AssignedGroupSchema.nullable().optional()
|
|
55
|
+
}).passthrough().describe("Current assignee information (user or group).");
|
|
56
|
+
const SupportbeeGetTicket_TicketDataSchema = z.object({
|
|
57
|
+
cc: z.array(z.string()).describe("List of CC email addresses.").nullable().optional(),
|
|
58
|
+
id: z.number().int().describe("Unique ID of the ticket."),
|
|
59
|
+
spam: z.boolean().describe("Whether the ticket is marked as spam.").nullable().optional(),
|
|
60
|
+
trash: z.boolean().describe("Whether the ticket is trashed.").nullable().optional(),
|
|
61
|
+
labels: z.array(SupportbeeGetTicket_TicketLabelSchema).describe("Labels associated with the ticket.").nullable().optional(),
|
|
62
|
+
content: SupportbeeGetTicket_TicketContentSchema.nullable().optional(),
|
|
63
|
+
starred: z.boolean().describe("Whether the ticket is starred.").nullable().optional(),
|
|
64
|
+
subject: z.string().describe("Subject of the ticket.").nullable().optional(),
|
|
65
|
+
summary: z.string().describe("Short summary of the ticket content.").nullable().optional(),
|
|
66
|
+
archived: z.boolean().describe("Whether the ticket is archived.").nullable().optional(),
|
|
67
|
+
requester: SupportbeeGetTicket_TicketRequesterSchema.nullable().optional(),
|
|
68
|
+
created_at: z.string().describe("Creation timestamp (ISO 8601).").nullable().optional(),
|
|
69
|
+
unanswered: z.boolean().describe("Whether the ticket is unanswered.").nullable().optional(),
|
|
70
|
+
replies_count: z.number().int().describe("Number of replies on the ticket.").nullable().optional(),
|
|
71
|
+
comments_count: z.number().int().describe("Number of comments on the ticket.").nullable().optional(),
|
|
72
|
+
current_assignee: SupportbeeGetTicket_CurrentAssigneeSchema.nullable().optional(),
|
|
73
|
+
last_activity_at: z.string().describe("Last activity timestamp (ISO 8601).").nullable().optional()
|
|
74
|
+
}).passthrough().describe("Complete ticket data model.");
|
|
75
|
+
const supportbeeGetTicket = action("SUPPORTBEE_GET_TICKET", {
|
|
76
|
+
slug: "supportbee-get-ticket",
|
|
77
|
+
name: "Get Ticket",
|
|
78
|
+
description: "Tool to retrieve a specific SupportBee ticket by its ID. Returns complete ticket details including subject, content, requester, assignee, labels, and reply/comment counts. Use when you need to fetch full details of a single ticket.",
|
|
79
|
+
input: SupportbeeGetTicketInput,
|
|
80
|
+
output: z.object({ ticket: SupportbeeGetTicket_TicketDataSchema.nullable() }).passthrough().describe("Response model for retrieving a ticket.")
|
|
81
|
+
});
|
|
82
|
+
//#endregion
|
|
83
|
+
export { supportbeeGetTicket };
|
|
84
|
+
|
|
85
|
+
//# sourceMappingURL=get-ticket.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-ticket.mjs","names":[],"sources":["../../src/actions/get-ticket.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupportbeeGetTicketInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the ticket to retrieve.\"),\n}).describe(\"Request model for retrieving a single ticket by ID.\");\nconst SupportbeeGetTicket_TicketLabelSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the label.\").nullable().optional(),\n color: z.string().describe(\"Color of the label.\").nullable().optional(),\n}).passthrough().describe(\"Label information for a ticket.\");\nconst SupportbeeGetTicket_AttachmentUrlSchema: z.ZodTypeAny = z.object({\n thumb: z.string().describe(\"Thumbnail URL for the attachment.\").nullable().optional(),\n original: z.string().describe(\"Original attachment URL.\").nullable().optional(),\n}).passthrough().describe(\"URLs for an attachment.\");\nconst SupportbeeGetTicket_TicketAttachmentSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique ID of the attachment.\").nullable().optional(),\n url: SupportbeeGetTicket_AttachmentUrlSchema.nullable().optional(),\n filename: z.string().describe(\"Name of the attached file.\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format.\").nullable().optional(),\n content_type: z.string().describe(\"MIME type of the attachment.\").nullable().optional(),\n}).passthrough().describe(\"Attachment information in ticket content.\");\nconst SupportbeeGetTicket_TicketContentSchema: z.ZodTypeAny = z.object({\n body: z.string().describe(\"Plain text body of the ticket.\").nullable().optional(),\n html: z.string().describe(\"HTML body of the ticket.\").nullable().optional(),\n attachments: z.array(SupportbeeGetTicket_TicketAttachmentSchema).describe(\"List of attachments in the ticket.\").nullable().optional(),\n}).passthrough().describe(\"Content structure of the ticket.\");\nconst SupportbeeGetTicket_PictureUrlsSchema: z.ZodTypeAny = z.object({\n thumb20: z.string().describe(\"20x20 thumbnail URL.\").nullable().optional(),\n thumb24: z.string().describe(\"24x24 thumbnail URL.\").nullable().optional(),\n thumb32: z.string().describe(\"32x32 thumbnail URL.\").nullable().optional(),\n thumb48: z.string().describe(\"48x48 thumbnail URL.\").nullable().optional(),\n thumb64: z.string().describe(\"64x64 thumbnail URL.\").nullable().optional(),\n thumb128: z.string().describe(\"128x128 thumbnail URL.\").nullable().optional(),\n}).passthrough().describe(\"Picture URLs in various sizes.\");\nconst SupportbeeGetTicket_TicketRequesterSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique ID of the requester.\").nullable().optional(),\n name: z.string().describe(\"Name of the requester.\").nullable().optional(),\n agent: z.boolean().describe(\"Whether the requester is an agent.\").nullable().optional(),\n email: z.string().describe(\"Email address of the requester.\").nullable().optional(),\n picture: SupportbeeGetTicket_PictureUrlsSchema.nullable().optional(),\n}).passthrough().describe(\"Information about the ticket requester.\");\nconst SupportbeeGetTicket_AssignedUserSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the assigned user.\").nullable().optional(),\n name: z.string().describe(\"Name of the assigned user.\").nullable().optional(),\n agent: z.boolean().describe(\"Whether the user is an agent.\").nullable().optional(),\n email: z.string().describe(\"Email of the assigned user.\").nullable().optional(),\n picture: SupportbeeGetTicket_PictureUrlsSchema.nullable().optional(),\n}).passthrough().describe(\"Information about an assigned user.\");\nconst SupportbeeGetTicket_AssignedGroupSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the assigned group.\").nullable().optional(),\n name: z.string().describe(\"Name of the assigned group.\").nullable().optional(),\n picture: SupportbeeGetTicket_PictureUrlsSchema.nullable().optional(),\n}).passthrough().describe(\"Information about an assigned group/team.\");\nconst SupportbeeGetTicket_CurrentAssigneeSchema: z.ZodTypeAny = z.object({\n user: SupportbeeGetTicket_AssignedUserSchema.nullable().optional(),\n group: SupportbeeGetTicket_AssignedGroupSchema.nullable().optional(),\n}).passthrough().describe(\"Current assignee information (user or group).\");\nconst SupportbeeGetTicket_TicketDataSchema: z.ZodTypeAny = z.object({\n cc: z.array(z.string()).describe(\"List of CC email addresses.\").nullable().optional(),\n id: z.number().int().describe(\"Unique ID of the ticket.\"),\n spam: z.boolean().describe(\"Whether the ticket is marked as spam.\").nullable().optional(),\n trash: z.boolean().describe(\"Whether the ticket is trashed.\").nullable().optional(),\n labels: z.array(SupportbeeGetTicket_TicketLabelSchema).describe(\"Labels associated with the ticket.\").nullable().optional(),\n content: SupportbeeGetTicket_TicketContentSchema.nullable().optional(),\n starred: z.boolean().describe(\"Whether the ticket is starred.\").nullable().optional(),\n subject: z.string().describe(\"Subject of the ticket.\").nullable().optional(),\n summary: z.string().describe(\"Short summary of the ticket content.\").nullable().optional(),\n archived: z.boolean().describe(\"Whether the ticket is archived.\").nullable().optional(),\n requester: SupportbeeGetTicket_TicketRequesterSchema.nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp (ISO 8601).\").nullable().optional(),\n unanswered: z.boolean().describe(\"Whether the ticket is unanswered.\").nullable().optional(),\n replies_count: z.number().int().describe(\"Number of replies on the ticket.\").nullable().optional(),\n comments_count: z.number().int().describe(\"Number of comments on the ticket.\").nullable().optional(),\n current_assignee: SupportbeeGetTicket_CurrentAssigneeSchema.nullable().optional(),\n last_activity_at: z.string().describe(\"Last activity timestamp (ISO 8601).\").nullable().optional(),\n}).passthrough().describe(\"Complete ticket data model.\");\nexport const SupportbeeGetTicketOutput: z.ZodTypeAny = z.object({\n ticket: SupportbeeGetTicket_TicketDataSchema.nullable(),\n}).passthrough().describe(\"Response model for retrieving a ticket.\");\n\nexport const supportbeeGetTicket = action(\"SUPPORTBEE_GET_TICKET\", {\n slug: \"supportbee-get-ticket\",\n name: \"Get Ticket\",\n description: \"Tool to retrieve a specific SupportBee ticket by its ID. Returns complete ticket details including subject, content, requester, assignee, labels, and reply/comment counts. Use when you need to fetch full details of a single ticket.\",\n input: SupportbeeGetTicketInput,\n output: SupportbeeGetTicketOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyC,EAAE,OAAO,EAC7D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,EAC5E,CAAC,CAAC,CAAC,S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,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6BAA6B;AAKvD,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATqD,EAAE,OAAO,EAC9D,QAAQ,qCAAqC,SAAS,EACxD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAOhB;AACV,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-tickets-count-report.ts
|
|
4
|
+
const SupportbeeGetTicketsCountReportInput = zod.z.object({
|
|
5
|
+
label: zod.z.string().describe("Filter results by label name (optional)").optional(),
|
|
6
|
+
team_id: zod.z.number().int().describe("Filter results by team ID (optional)").optional(),
|
|
7
|
+
to_date: zod.z.string().describe("End date of the report period in YYYY-MM-DD format"),
|
|
8
|
+
agent_id: zod.z.number().int().describe("Filter results by agent ID (optional)").optional(),
|
|
9
|
+
from_date: zod.z.string().describe("Start date of the report period in YYYY-MM-DD format")
|
|
10
|
+
}).describe("Request model for fetching tickets count report.");
|
|
11
|
+
const SupportbeeGetTicketsCountReport_ReportDataPointSchema = zod.z.object({
|
|
12
|
+
date: zod.z.string().describe("Date of the data point (if returned)").nullable().optional(),
|
|
13
|
+
count: zod.z.number().int().describe("Ticket count for this data point").nullable().optional()
|
|
14
|
+
}).describe("Model representing a ticket count datapoint.");
|
|
15
|
+
const SupportbeeGetTicketsCountReportOutput = zod.z.object({
|
|
16
|
+
total: zod.z.number().int().describe("Total number of tickets in the specified date range"),
|
|
17
|
+
report: zod.z.array(SupportbeeGetTicketsCountReport_ReportDataPointSchema).describe("List of ticket count data points over time (if available)").nullable().optional(),
|
|
18
|
+
to_date: zod.z.string().describe("End date of the report period").nullable().optional(),
|
|
19
|
+
from_date: zod.z.string().describe("Start date of the report period").nullable().optional()
|
|
20
|
+
}).describe("Response model for tickets count report.");
|
|
21
|
+
const supportbeeGetTicketsCountReport = require_action.action("SUPPORTBEE_GET_TICKETS_COUNT_REPORT", {
|
|
22
|
+
slug: "supportbee-get-tickets-count-report",
|
|
23
|
+
name: "Get Tickets Count Report",
|
|
24
|
+
description: "Tool to get ticket count data points over time. Use when analyzing ticket volume trends within a specific date range. Supports optional filtering by agent, team, or label.",
|
|
25
|
+
input: SupportbeeGetTicketsCountReportInput,
|
|
26
|
+
output: SupportbeeGetTicketsCountReportOutput
|
|
27
|
+
});
|
|
28
|
+
//#endregion
|
|
29
|
+
exports.supportbeeGetTicketsCountReport = supportbeeGetTicketsCountReport;
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=get-tickets-count-report.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-tickets-count-report.cjs","names":["z","action"],"sources":["../../src/actions/get-tickets-count-report.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SupportbeeGetTicketsCountReportInput: z.ZodTypeAny = z.object({\n label: z.string().describe(\"Filter results by label name (optional)\").optional(),\n team_id: z.number().int().describe(\"Filter results by team ID (optional)\").optional(),\n to_date: z.string().describe(\"End date of the report period in YYYY-MM-DD format\"),\n agent_id: z.number().int().describe(\"Filter results by agent ID (optional)\").optional(),\n from_date: z.string().describe(\"Start date of the report period in YYYY-MM-DD format\"),\n}).describe(\"Request model for fetching tickets count report.\");\nconst SupportbeeGetTicketsCountReport_ReportDataPointSchema: z.ZodTypeAny = z.object({\n date: z.string().describe(\"Date of the data point (if returned)\").nullable().optional(),\n count: z.number().int().describe(\"Ticket count for this data point\").nullable().optional(),\n}).describe(\"Model representing a ticket count datapoint.\");\nexport const SupportbeeGetTicketsCountReportOutput: z.ZodTypeAny = z.object({\n total: z.number().int().describe(\"Total number of tickets in the specified date range\"),\n report: z.array(SupportbeeGetTicketsCountReport_ReportDataPointSchema).describe(\"List of ticket count data points over time (if available)\").nullable().optional(),\n to_date: z.string().describe(\"End date of the report period\").nullable().optional(),\n from_date: z.string().describe(\"Start date of the report period\").nullable().optional(),\n}).describe(\"Response model for tickets count report.\");\n\nexport const supportbeeGetTicketsCountReport = action(\"SUPPORTBEE_GET_TICKETS_COUNT_REPORT\", {\n slug: \"supportbee-get-tickets-count-report\",\n name: \"Get Tickets Count Report\",\n description: \"Tool to get ticket count data points over time. Use when analyzing ticket volume trends within a specific date range. Supports optional filtering by agent, team, or label.\",\n input: SupportbeeGetTicketsCountReportInput,\n output: SupportbeeGetTicketsCountReportOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAqDA,IAAAA,EAAE,OAAO;CACzE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACpF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CACjF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACtF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;AACvF,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,wDAAsEA,IAAAA,EAAE,OAAO;CACnF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAa,wCAAsDA,IAAAA,EAAE,OAAO;CAC1E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD;CACtF,QAAQA,IAAAA,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjK,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAEtD,MAAa,kCAAkCC,eAAAA,OAAO,uCAAuC;CAC3F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-tickets-count-report.d.ts
|
|
4
|
+
declare const SupportbeeGetTicketsCountReportInput: z.ZodTypeAny;
|
|
5
|
+
declare const SupportbeeGetTicketsCountReportOutput: z.ZodTypeAny;
|
|
6
|
+
declare const supportbeeGetTicketsCountReport: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { supportbeeGetTicketsCountReport };
|
|
9
|
+
//# sourceMappingURL=get-tickets-count-report.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-tickets-count-report.d.cts","names":[],"sources":["../../src/actions/get-tickets-count-report.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAMU;AAAA,cAKlD,qCAAA,EAAuC,CAAA,CAAE,UAKC;AAAA,cAE1C,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-tickets-count-report.d.ts
|
|
4
|
+
declare const SupportbeeGetTicketsCountReportInput: z.ZodTypeAny;
|
|
5
|
+
declare const SupportbeeGetTicketsCountReportOutput: z.ZodTypeAny;
|
|
6
|
+
declare const supportbeeGetTicketsCountReport: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { supportbeeGetTicketsCountReport };
|
|
9
|
+
//# sourceMappingURL=get-tickets-count-report.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-tickets-count-report.d.mts","names":[],"sources":["../../src/actions/get-tickets-count-report.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAMU;AAAA,cAKlD,qCAAA,EAAuC,CAAA,CAAE,UAKC;AAAA,cAE1C,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-tickets-count-report.ts
|
|
4
|
+
const SupportbeeGetTicketsCountReportInput = z.object({
|
|
5
|
+
label: z.string().describe("Filter results by label name (optional)").optional(),
|
|
6
|
+
team_id: z.number().int().describe("Filter results by team ID (optional)").optional(),
|
|
7
|
+
to_date: z.string().describe("End date of the report period in YYYY-MM-DD format"),
|
|
8
|
+
agent_id: z.number().int().describe("Filter results by agent ID (optional)").optional(),
|
|
9
|
+
from_date: z.string().describe("Start date of the report period in YYYY-MM-DD format")
|
|
10
|
+
}).describe("Request model for fetching tickets count report.");
|
|
11
|
+
const SupportbeeGetTicketsCountReport_ReportDataPointSchema = z.object({
|
|
12
|
+
date: z.string().describe("Date of the data point (if returned)").nullable().optional(),
|
|
13
|
+
count: z.number().int().describe("Ticket count for this data point").nullable().optional()
|
|
14
|
+
}).describe("Model representing a ticket count datapoint.");
|
|
15
|
+
const supportbeeGetTicketsCountReport = action("SUPPORTBEE_GET_TICKETS_COUNT_REPORT", {
|
|
16
|
+
slug: "supportbee-get-tickets-count-report",
|
|
17
|
+
name: "Get Tickets Count Report",
|
|
18
|
+
description: "Tool to get ticket count data points over time. Use when analyzing ticket volume trends within a specific date range. Supports optional filtering by agent, team, or label.",
|
|
19
|
+
input: SupportbeeGetTicketsCountReportInput,
|
|
20
|
+
output: z.object({
|
|
21
|
+
total: z.number().int().describe("Total number of tickets in the specified date range"),
|
|
22
|
+
report: z.array(SupportbeeGetTicketsCountReport_ReportDataPointSchema).describe("List of ticket count data points over time (if available)").nullable().optional(),
|
|
23
|
+
to_date: z.string().describe("End date of the report period").nullable().optional(),
|
|
24
|
+
from_date: z.string().describe("Start date of the report period").nullable().optional()
|
|
25
|
+
}).describe("Response model for tickets count report.")
|
|
26
|
+
});
|
|
27
|
+
//#endregion
|
|
28
|
+
export { supportbeeGetTicketsCountReport };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=get-tickets-count-report.mjs.map
|