Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "belco-add-note-to-conversation",
name: "Add Note to Conversation",
description: "Add a note to a conversation specified by ID. [See the documentation](https://developers.belco.io/reference/put_conversations-conversationid-addnote)",
version: "0.0.2",
version: "0.0.3",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import belco from "../../belco.app.mjs";

export default {
key: "belco-add-tags-to-conversation",
name: "Add Tags to Conversation",
description: "Add tags to a conversation. [See the documentation](https://developers.belco.io/reference/add-tags-to-a-conversation)",
version: "0.0.1",
type: "action",
annotations: {
destructiveHint: false,
openWorldHint: true,
readOnlyHint: false,
},
props: {
belco,
conversationId: {
propDefinition: [
belco,
"conversationId",
],
},
tags: {
type: "string[]",
label: "Tags",
description: "The tags to add to the conversation",
},
},
async run({ $ }) {
const response = await this.belco.addTagsToConversation({
$,
conversationId: this.conversationId,
data: {
tags: this.tags,
},
});
$.export("$summary", `Successfully added tags to conversation: ${this.conversationId}`);
return response;
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "belco-close-conversation",
name: "Close Conversation",
description: "Close a conversation specified by ID. [See the documentation](https://developers.belco.io/reference/put_conversations-conversationid-close)",
version: "0.0.2",
version: "0.0.3",
annotations: {
destructiveHint: true,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "belco-create-conversation",
name: "Create Conversation",
description: "Create a conversation from Belco. [See the documentation](https://developers.belco.io/reference/post_conversations)",
version: "0.0.2",
version: "0.0.3",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "belco-list-all-conversations",
name: "List All Conversations",
description: "Get a list of conversations from Belco. [See the documentation](https://developers.belco.io/reference/get_conversations)",
version: "0.0.2",
version: "0.0.3",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "belco-reopen-conversation",
name: "Reopen Conversation",
description: "Reopen a conversation specified by ID. [See the documentation](https://developers.belco.io/reference/put_conversations-conversationid-open)",
version: "0.0.2",
version: "0.0.3",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "belco-reply-to-conversation",
name: "Reply to Conversation",
description: "Reply to a conversation specified by ID. [See the documentation](https://developers.belco.io/reference/put_conversations-conversationid-reply)",
version: "0.0.2",
version: "0.0.3",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "belco-retrieve-conversation",
name: "Retrieve Conversation",
description: "Retrieve a conversation specified by ID. [See the documentation](https://developers.belco.io/reference/get_conversations-conversationid)",
version: "0.0.2",
version: "0.0.3",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
2 changes: 1 addition & 1 deletion components/belco/actions/send-message/send-message.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "belco-send-message",
name: "Send Message",
description: "Send a message to a conversation specified by ID. [See the documentation](https://developers.belco.io/reference/post_conversations-sendmessage)",
version: "0.0.2",
version: "0.0.3",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
9 changes: 9 additions & 0 deletions components/belco/belco.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,15 @@ export default {
...opts,
});
},
addTagsToConversation({
conversationId, ...opts
}) {
return this._makeRequest({
method: "PUT",
path: `/conversations/${conversationId}/tags`,
...opts,
});
},
async *paginate({
fn, params = {}, maxResults = null, ...opts
}) {
Expand Down
2 changes: 1 addition & 1 deletion components/belco/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/belco",
"version": "0.1.0",
"version": "0.2.0",
"description": "Pipedream Belco Components",
"main": "belco.app.mjs",
"keywords": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "belco-new-conversation",
name: "New Conversation",
description: "Emit new conversation event when a new conversation is created. [See the documentation](https://developers.belco.io/reference/get_conversations)",
version: "0.0.1",
version: "0.0.2",
type: "source",
dedupe: "unique",
props: {
Expand Down
Loading