diff --git a/components/freshdesk/actions/list-all-tickets/list-all-tickets.mjs b/components/freshdesk/actions/list-all-tickets/list-all-tickets.mjs index 38018fe7e82ff..66e9452afe340 100644 --- a/components/freshdesk/actions/list-all-tickets/list-all-tickets.mjs +++ b/components/freshdesk/actions/list-all-tickets/list-all-tickets.mjs @@ -5,7 +5,7 @@ export default { name: "List Tickets", description: "Fetch up to 100 tickets according to the selected filters. [See the documentation](https://developers.freshdesk.com/api/#list_all_tickets)", - version: "0.2.14", + version: "0.2.15", annotations: { destructiveHint: false, openWorldHint: true, @@ -55,6 +55,53 @@ export default { }, ], }, + requesterId: { + type: "integer", + label: "Requester ID", + description: + "Filter by the numeric Freshdesk requester ID, for example `12345`. Obtain it from the Freshdesk requester record or API.", + optional: true, + }, + email: { + type: "string", + label: "Email", + description: + "Filter by the requester's email address, for example `user@example.com`.", + optional: true, + }, + companyId: { + type: "integer", + label: "Company ID", + description: + "Filter by the numeric Freshdesk company ID, for example `67890`. Obtain it from the Freshdesk company record or API.", + optional: true, + }, + updatedSince: { + type: "string", + label: "Updated Since", + description: "Filter tickets updated since the specified date and time in ISO 8601 format (e.g., `2024-01-01T00:00:00Z`).", + optional: true, + }, + perPage: { + type: "integer", + label: "Per Page", + description: "Number of tickets to return per page. Must be between 1 and 100.", + min: 1, + max: 100, + optional: true, + }, + include: { + type: "string[]", + label: "Include", + description: + "Optional array of response fields. Supported values are `description`, `requester`, and `stats`; for example, `['description', 'requester']`.", + optional: true, + options: [ + "description", + "requester", + "stats", + ], + }, }, async run({ $ }) { const response = await this.freshdesk.listTickets({ @@ -62,6 +109,14 @@ export default { params: { order_by: this.orderBy, order_type: this.orderType, + requester_id: this.requesterId, + email: this.email, + company_id: this.companyId, + updated_since: this.updatedSince, + per_page: this.perPage, + include: this.include + ? this.include.join(",") + : undefined, }, }); diff --git a/components/freshdesk/package.json b/components/freshdesk/package.json index 282d1a0d1c167..084e0012c4fdb 100644 --- a/components/freshdesk/package.json +++ b/components/freshdesk/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/freshdesk", - "version": "0.16.0", + "version": "0.17.0", "description": "Pipedream Freshdesk Components", "main": "freshdesk.app.mjs", "keywords": [