diff --git a/components/trengo/actions/attach-label/attach-label.mjs b/components/trengo/actions/attach-label/attach-label.mjs index ce242fd7497ed..242202f5af618 100644 --- a/components/trengo/actions/attach-label/attach-label.mjs +++ b/components/trengo/actions/attach-label/attach-label.mjs @@ -4,7 +4,7 @@ export default { key: "trengo-attach-label", name: "Attach Label", description: "Attach a label to a ticket. [See the documentation](https://developers.trengo.com/reference/apply-a-label)", - version: "0.0.2", + version: "0.0.3", type: "action", annotations: { destructiveHint: false, diff --git a/components/trengo/actions/create-contact/create-contact.mjs b/components/trengo/actions/create-contact/create-contact.mjs index 37c1361eb42a0..f9124cc2fbbab 100644 --- a/components/trengo/actions/create-contact/create-contact.mjs +++ b/components/trengo/actions/create-contact/create-contact.mjs @@ -3,7 +3,7 @@ import app from "../../trengo.app.mjs"; export default { type: "action", key: "trengo-create-contact", - version: "0.0.7", + version: "0.0.8", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/trengo/actions/find-contacts/find-contacts.mjs b/components/trengo/actions/find-contacts/find-contacts.mjs index d08d2713ffa89..246ab93ed9548 100644 --- a/components/trengo/actions/find-contacts/find-contacts.mjs +++ b/components/trengo/actions/find-contacts/find-contacts.mjs @@ -4,7 +4,7 @@ import app from "../../trengo.app.mjs"; export default { type: "action", key: "trengo-find-contacts", - version: "0.0.7", + version: "0.0.8", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/trengo/actions/get-label/get-label.mjs b/components/trengo/actions/get-label/get-label.mjs index 50414e4697ccd..b6ce755807ac6 100644 --- a/components/trengo/actions/get-label/get-label.mjs +++ b/components/trengo/actions/get-label/get-label.mjs @@ -4,7 +4,7 @@ export default { key: "trengo-get-label", name: "Get Label", description: "Get a label by ID. [See the documentation](https://developers.trengo.com/reference/get-a-label)", - version: "0.0.2", + version: "0.0.3", type: "action", annotations: { destructiveHint: false, diff --git a/components/trengo/actions/get-message/get-message.mjs b/components/trengo/actions/get-message/get-message.mjs index cd7e40e3cda0d..aa6bb7c54195b 100644 --- a/components/trengo/actions/get-message/get-message.mjs +++ b/components/trengo/actions/get-message/get-message.mjs @@ -4,7 +4,7 @@ export default { key: "trengo-get-message", name: "Get Message", description: "Get a message by ID. [See the documentation](https://developers.trengo.com/reference/fetch-a-message)", - version: "0.0.2", + version: "0.0.3", type: "action", annotations: { destructiveHint: false, diff --git a/components/trengo/actions/list-all-quick-replies/list-all-quick-replies.mjs b/components/trengo/actions/list-all-quick-replies/list-all-quick-replies.mjs new file mode 100644 index 0000000000000..50dfcedc9b9a7 --- /dev/null +++ b/components/trengo/actions/list-all-quick-replies/list-all-quick-replies.mjs @@ -0,0 +1,35 @@ +import app from "../../trengo.app.mjs"; +import constants from "../../common/constants.mjs"; + +export default { + key: "trengo-list-all-quick-replies", + name: "List All Quick Replies", + description: "List all quick replies. [See the documentation](https://developers.trengo.com/reference/list-all-quick-replies)", + version: "0.0.1", + type: "action", + annotations: { + destructiveHint: false, + openWorldHint: true, + readOnlyHint: true, + }, + props: { + app, + filterType: { + type: "string", + label: "Type", + description: "Filter by type of quick reply", + optional: true, + options: constants.FILTER_TYPES, + }, + }, + async run({ $ }) { + const response = await this.app.listQuickReplies({ + params: { + type: this.filterType, + }, + }); + $.export("$summary", "Successfully listed quick replies"); + return response; + }, +}; + diff --git a/components/trengo/actions/list-articles/list-articles.mjs b/components/trengo/actions/list-articles/list-articles.mjs index 237e72b27e8aa..6382b0254a2ba 100644 --- a/components/trengo/actions/list-articles/list-articles.mjs +++ b/components/trengo/actions/list-articles/list-articles.mjs @@ -4,7 +4,7 @@ import app from "../../trengo.app.mjs"; export default { type: "action", key: "trengo-list-articles", - version: "0.0.5", + version: "0.0.6", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/trengo/actions/list-labels/list-labels.mjs b/components/trengo/actions/list-labels/list-labels.mjs index 5a7d5882f14c2..44bf54f659932 100644 --- a/components/trengo/actions/list-labels/list-labels.mjs +++ b/components/trengo/actions/list-labels/list-labels.mjs @@ -5,7 +5,7 @@ export default { key: "trengo-list-labels", name: "List Labels", description: "List all labels. [See the documentation](https://developers.trengo.com/reference/list-all-labels)", - version: "0.0.2", + version: "0.0.3", type: "action", annotations: { destructiveHint: false, diff --git a/components/trengo/actions/list-messages/list-messages.mjs b/components/trengo/actions/list-messages/list-messages.mjs index a87bf415c82ef..8b2d8554ccbef 100644 --- a/components/trengo/actions/list-messages/list-messages.mjs +++ b/components/trengo/actions/list-messages/list-messages.mjs @@ -5,7 +5,7 @@ export default { key: "trengo-list-messages", name: "List Messages", description: "List messages from a ticket. [See the documentation](https://developers.trengo.com/reference/list-all-messages)", - version: "0.0.4", + version: "0.0.5", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/trengo/actions/list-tickets/list-tickets.mjs b/components/trengo/actions/list-tickets/list-tickets.mjs index 1a4f66f7d1eb8..30645bcaaeeea 100644 --- a/components/trengo/actions/list-tickets/list-tickets.mjs +++ b/components/trengo/actions/list-tickets/list-tickets.mjs @@ -5,7 +5,7 @@ export default { key: "trengo-list-tickets", name: "List Tickets", description: "List tickets according to the specified criteria. [See the documentation](https://developers.trengo.com/reference/list-all-tickets)", - version: "0.0.4", + version: "0.0.5", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/trengo/actions/log-a-voice-call/log-a-voice-call.mjs b/components/trengo/actions/log-a-voice-call/log-a-voice-call.mjs index 3f37f6303db2c..710371dc397c9 100644 --- a/components/trengo/actions/log-a-voice-call/log-a-voice-call.mjs +++ b/components/trengo/actions/log-a-voice-call/log-a-voice-call.mjs @@ -3,7 +3,7 @@ import app from "../../trengo.app.mjs"; export default { type: "action", key: "trengo-log-a-voice-call", - version: "0.0.7", + version: "0.0.8", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/trengo/actions/send-a-message/send-a-message.mjs b/components/trengo/actions/send-a-message/send-a-message.mjs index dc69811219c8a..0bd193fa97691 100644 --- a/components/trengo/actions/send-a-message/send-a-message.mjs +++ b/components/trengo/actions/send-a-message/send-a-message.mjs @@ -3,7 +3,7 @@ import app from "../../trengo.app.mjs"; export default { type: "action", key: "trengo-send-a-message", - version: "0.0.7", + version: "0.0.8", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/trengo/actions/send-a-team-chat-message/send-a-team-chat-message.mjs b/components/trengo/actions/send-a-team-chat-message/send-a-team-chat-message.mjs index b6ef90ea70d73..c232ffe97b147 100644 --- a/components/trengo/actions/send-a-team-chat-message/send-a-team-chat-message.mjs +++ b/components/trengo/actions/send-a-team-chat-message/send-a-team-chat-message.mjs @@ -4,7 +4,7 @@ import app from "../../trengo.app.mjs"; export default { type: "action", key: "trengo-send-a-team-chat-message", - version: "0.0.7", + version: "0.0.8", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/trengo/actions/send-a-ticket-message/send-a-ticket-message.mjs b/components/trengo/actions/send-a-ticket-message/send-a-ticket-message.mjs index f4e59f482f815..1ae80599cf0c8 100644 --- a/components/trengo/actions/send-a-ticket-message/send-a-ticket-message.mjs +++ b/components/trengo/actions/send-a-ticket-message/send-a-ticket-message.mjs @@ -2,7 +2,7 @@ import app from "../../trengo.app.mjs"; export default { type: "action", - version: "0.0.1", + version: "0.0.2", key: "trengo-send-a-ticket-message", annotations: { destructiveHint: false, diff --git a/components/trengo/actions/send-a-whatsapp-message-template/send-a-whatsapp-message-template.mjs b/components/trengo/actions/send-a-whatsapp-message-template/send-a-whatsapp-message-template.mjs index 0927c6b76a7b9..583036bfd240a 100644 --- a/components/trengo/actions/send-a-whatsapp-message-template/send-a-whatsapp-message-template.mjs +++ b/components/trengo/actions/send-a-whatsapp-message-template/send-a-whatsapp-message-template.mjs @@ -4,7 +4,7 @@ import app from "../../trengo.app.mjs"; export default { type: "action", key: "trengo-send-a-whatsapp-message-template", - version: "0.0.7", + version: "0.0.8", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/trengo/common/constants.mjs b/components/trengo/common/constants.mjs new file mode 100644 index 0000000000000..2567722f7e15c --- /dev/null +++ b/components/trengo/common/constants.mjs @@ -0,0 +1,6 @@ +export default { + FILTER_TYPES: [ + "MESSAGING", + "EMAIL", + ], +}; diff --git a/components/trengo/package.json b/components/trengo/package.json index 7caf280627160..4558650e20e33 100644 --- a/components/trengo/package.json +++ b/components/trengo/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/trengo", - "version": "0.5.0", + "version": "0.6.0", "description": "Pipedream Trengo Components", "main": "trengo.app.mjs", "keywords": [ diff --git a/components/trengo/sources/new-inbound-message/new-inbound-message.mjs b/components/trengo/sources/new-inbound-message/new-inbound-message.mjs index 88afdeb53ed19..353624a33b66b 100644 --- a/components/trengo/sources/new-inbound-message/new-inbound-message.mjs +++ b/components/trengo/sources/new-inbound-message/new-inbound-message.mjs @@ -4,7 +4,7 @@ export default { key: "trengo-new-inbound-message", name: "New Inbound Message Event (Instant)", description: "Emit new event when an inbound message is received. [See the documentation](https://developers.trengo.com/docs/webhooks)", - version: "0.0.6", + version: "0.0.7", type: "source", dedupe: "unique", ...common, diff --git a/components/trengo/sources/new-internal-note/new-internal-note.mjs b/components/trengo/sources/new-internal-note/new-internal-note.mjs index 1aa636d964f91..c3d9d0ae2f117 100644 --- a/components/trengo/sources/new-internal-note/new-internal-note.mjs +++ b/components/trengo/sources/new-internal-note/new-internal-note.mjs @@ -4,7 +4,7 @@ export default { key: "trengo-new-internal-note", name: "New Internal Note Event (Instant)", description: "Emit new event when an internal note is added. [See the documentation](https://developers.trengo.com/docs/webhooks)", - version: "0.0.6", + version: "0.0.7", type: "source", dedupe: "unique", ...common, diff --git a/components/trengo/sources/new-outbound-message/new-outbound-message.mjs b/components/trengo/sources/new-outbound-message/new-outbound-message.mjs index 42d2b613594f6..4efa4ebaeb057 100644 --- a/components/trengo/sources/new-outbound-message/new-outbound-message.mjs +++ b/components/trengo/sources/new-outbound-message/new-outbound-message.mjs @@ -4,7 +4,7 @@ export default { key: "trengo-new-outbound-message", name: "New Outbound Message Event (Instant)", description: "Emit new event when an outbound message sent. [See the documentation](https://developers.trengo.com/docs/webhooks)", - version: "0.0.6", + version: "0.0.7", type: "source", dedupe: "unique", ...common, diff --git a/components/trengo/sources/phone-call-ended/phone-call-ended.mjs b/components/trengo/sources/phone-call-ended/phone-call-ended.mjs index 6938232c9cf22..c873314c6f998 100644 --- a/components/trengo/sources/phone-call-ended/phone-call-ended.mjs +++ b/components/trengo/sources/phone-call-ended/phone-call-ended.mjs @@ -4,7 +4,7 @@ export default { key: "trengo-phone-call-ended", name: "New Phone Call Ended Event (Instant)", description: "Emit new event when a phone call ends. [See the documentation](https://developers.trengo.com/docs/webhooks)", - version: "0.0.6", + version: "0.0.7", type: "source", dedupe: "unique", ...common, diff --git a/components/trengo/sources/phone-call-missed/phone-call-missed.mjs b/components/trengo/sources/phone-call-missed/phone-call-missed.mjs index 2ea04c40926b0..89ef3f0285ae3 100644 --- a/components/trengo/sources/phone-call-missed/phone-call-missed.mjs +++ b/components/trengo/sources/phone-call-missed/phone-call-missed.mjs @@ -4,7 +4,7 @@ export default { key: "trengo-phone-call-missed", name: "New Phone Call Missed Event (Instant)", description: "Emit new event when an phone call missed. [See the documentation](https://developers.trengo.com/docs/webhooks)", - version: "0.0.6", + version: "0.0.7", type: "source", dedupe: "unique", ...common, diff --git a/components/trengo/sources/phone-call-started/phone-call-started.mjs b/components/trengo/sources/phone-call-started/phone-call-started.mjs index 4f740cdcf9db4..41d30476e30ea 100644 --- a/components/trengo/sources/phone-call-started/phone-call-started.mjs +++ b/components/trengo/sources/phone-call-started/phone-call-started.mjs @@ -4,7 +4,7 @@ export default { key: "trengo-phone-call-started", name: "New Phone Call Started Event (Instant)", description: "Emit new event when a phone call starts. [See the documentation](https://developers.trengo.com/docs/webhooks)", - version: "0.0.6", + version: "0.0.7", type: "source", dedupe: "unique", ...common, diff --git a/components/trengo/sources/ticket-closed/ticket-closed.mjs b/components/trengo/sources/ticket-closed/ticket-closed.mjs index 8a23f20b97ea3..b8d0d90a81420 100644 --- a/components/trengo/sources/ticket-closed/ticket-closed.mjs +++ b/components/trengo/sources/ticket-closed/ticket-closed.mjs @@ -4,7 +4,7 @@ export default { key: "trengo-ticket-closed", name: "Ticket Closed (Instant)", description: "Emit new event when a ticket is closed. [See the documentation](https://developers.trengo.com/docs/webhooks)", - version: "0.0.4", + version: "0.0.5", type: "source", dedupe: "unique", ...common, diff --git a/components/trengo/sources/ticket-label-added/ticket-label-added.mjs b/components/trengo/sources/ticket-label-added/ticket-label-added.mjs index 8dc4ca9175761..7b4eb70962714 100644 --- a/components/trengo/sources/ticket-label-added/ticket-label-added.mjs +++ b/components/trengo/sources/ticket-label-added/ticket-label-added.mjs @@ -4,7 +4,7 @@ export default { key: "trengo-ticket-label-added", name: "New Ticket Label Added Event (Instant)", description: "Emit new event when a ticket label is added. [See the documentation](https://developers.trengo.com/docs/webhooks)", - version: "0.0.6", + version: "0.0.7", type: "source", dedupe: "unique", ...common, diff --git a/components/trengo/sources/ticket-reopened/ticket-reopened.mjs b/components/trengo/sources/ticket-reopened/ticket-reopened.mjs index 1960e1663aba3..58aad145e86db 100644 --- a/components/trengo/sources/ticket-reopened/ticket-reopened.mjs +++ b/components/trengo/sources/ticket-reopened/ticket-reopened.mjs @@ -4,7 +4,7 @@ export default { key: "trengo-ticket-reopened", name: "Ticket Reopened (Instant)", description: "Emit new event when a ticket is reopened. [See the documentation](https://developers.trengo.com/docs/webhooks)", - version: "0.0.4", + version: "0.0.5", type: "source", dedupe: "unique", ...common, diff --git a/components/trengo/sources/voice-call-recorded/voice-call-recorded.mjs b/components/trengo/sources/voice-call-recorded/voice-call-recorded.mjs index 6b9fa63032ec5..7a88a50af6b27 100644 --- a/components/trengo/sources/voice-call-recorded/voice-call-recorded.mjs +++ b/components/trengo/sources/voice-call-recorded/voice-call-recorded.mjs @@ -4,7 +4,7 @@ export default { key: "trengo-voice-call-recorded", name: "New Voice Call Recorded Event (Instant)", description: "Emit new event when a voice call is recorded. [See the documentation](https://developers.trengo.com/docs/webhooks)", - version: "0.0.5", + version: "0.0.6", type: "source", dedupe: "unique", ...common, diff --git a/components/trengo/trengo.app.mjs b/components/trengo/trengo.app.mjs index eec420261c7f1..c3bb257811e9b 100644 --- a/components/trengo/trengo.app.mjs +++ b/components/trengo/trengo.app.mjs @@ -371,5 +371,11 @@ export default { ...args, }); }, + listQuickReplies(args = {}) { + return this._makeRequest({ + path: "/quick_replies", + ...args, + }); + }, }, };