Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/trengo/actions/attach-label/attach-label.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion components/trengo/actions/find-contacts/find-contacts.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion components/trengo/actions/get-label/get-label.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion components/trengo/actions/get-message/get-message.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
},
};

2 changes: 1 addition & 1 deletion components/trengo/actions/list-articles/list-articles.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion components/trengo/actions/list-labels/list-labels.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion components/trengo/actions/list-messages/list-messages.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion components/trengo/actions/list-tickets/list-tickets.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 6 additions & 0 deletions components/trengo/common/constants.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
FILTER_TYPES: [
"MESSAGING",
"EMAIL",
],
};
2 changes: 1 addition & 1 deletion components/trengo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/trengo",
"version": "0.5.0",
"version": "0.6.0",
"description": "Pipedream Trengo Components",
"main": "trengo.app.mjs",
"keywords": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion components/trengo/sources/ticket-closed/ticket-closed.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

export default {
key: "trengo-ticket-closed",
name: "Ticket Closed (Instant)",

Check warning on line 5 in components/trengo/sources/ticket-closed/ticket-closed.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Source names should start with "New". See https://pipedream.com/docs/components/guidelines/#source-name
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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

export default {
key: "trengo-ticket-reopened",
name: "Ticket Reopened (Instant)",

Check warning on line 5 in components/trengo/sources/ticket-reopened/ticket-reopened.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Source names should start with "New". See https://pipedream.com/docs/components/guidelines/#source-name
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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 6 additions & 0 deletions components/trengo/trengo.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -371,5 +371,11 @@ export default {
...args,
});
},
listQuickReplies(args = {}) {
return this._makeRequest({
path: "/quick_replies",
...args,
});
},
},
};
Loading