Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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.4",
version: "0.0.5",
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-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.2",
version: "0.0.3",
type: "action",
annotations: {
destructiveHint: false,
Expand Down
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.4",
version: "0.0.5",
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.4",
version: "0.0.5",
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-get-contact-details",
name: "Get Contact Details",
description: "Get the details of a contact in Belco. [See the documentation](https://developers.belco.io/reference/get_shops-shopid-contacts-contactid)",
version: "0.0.1",
version: "0.0.2",
type: "action",
annotations: {
destructiveHint: false,
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.4",
version: "0.0.5",
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-shop-id-options",
name: "List Shop ID Options",
description: "Retrieves available options for the Shop ID field.",
version: "0.0.1",
version: "0.0.2",
type: "action",
annotations: {
destructiveHint: false,
Expand Down
2 changes: 1 addition & 1 deletion components/belco/actions/list-users/list-users.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "belco-list-users",
name: "List Users",
description: "List all users in the Belco account. [See the documentation](https://developers.belco.io/reference/get_users)",
version: "0.0.1",
version: "0.0.2",
type: "action",
annotations: {
destructiveHint: false,
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.4",
version: "0.0.5",
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.4",
version: "0.0.5",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import belco from "../../belco.app.mjs";

export default {
key: "belco-retrieve-conversation-items",
name: "Retrieve Conversation Items",
description: "Retrieve the list of items (messages, notes, assignments, etc.) belonging to a conversation. [See the documentation](https://developers.belco.io/reference/get_conversations-conversationid-items)",
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
version: "0.0.1",
annotations: {
destructiveHint: false,
openWorldHint: true,
readOnlyHint: true,
},
type: "action",
props: {
belco,
conversationId: {
propDefinition: [
belco,
"conversationId",
],
description: "The ID of the Belco conversation to retrieve items from (e.g. `sSzxq7tMBFmCY28o8`)",
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
},
},
async run({ $ }) {
const response = await this.belco.getConversationItems({
$,
conversationId: this.conversationId,
});

$.export("$summary", `Successfully retrieved ${response.length} conversation item${response.length === 1
? ""
: "s"}`);

return response;
},
};
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.4",
version: "0.0.5",
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.4",
version: "0.0.5",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
8 changes: 8 additions & 0 deletions components/belco/belco.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,14 @@ export default {
...opts,
});
},
getConversationItems({
conversationId, ...opts
}) {
return this._makeRequest({
path: `/conversations/${conversationId}/items`,
...opts,
});
},
createConversation(opts = {}) {
return this._makeRequest({
method: "POST",
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.4.0",
"version": "0.5.0",
"description": "Pipedream Belco Components",
"main": "belco.app.mjs",
"keywords": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
export default {
...common,
key: "belco-conversation-assigned-instant",
name: "Conversation Assigned (Instant)",

Check warning on line 7 in components/belco/sources/conversation-assigned-instant/conversation-assigned-instant.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 for each new conversation assigned event",
version: "0.0.1",
version: "0.0.2",
type: "source",
dedupe: "unique",
methods: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
export default {
...common,
key: "belco-conversation-closed-instant",
name: "Conversation Closed (Instant)",

Check warning on line 7 in components/belco/sources/conversation-closed-instant/conversation-closed-instant.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 for each new conversation closed event",
type: "source",
version: "0.0.1",
version: "0.0.2",
dedupe: "unique",
methods: {
...common.methods,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
export default {
...common,
key: "belco-conversation-reopened-instant",
name: "Conversation Reopened (Instant)",

Check warning on line 7 in components/belco/sources/conversation-reopened-instant/conversation-reopened-instant.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 for each new conversation reopened event",
version: "0.0.1",
version: "0.0.2",
type: "source",
dedupe: "unique",
methods: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
export default {
...common,
key: "belco-conversation-replied-instant",
name: "Conversation Replied (Instant)",

Check warning on line 7 in components/belco/sources/conversation-replied-instant/conversation-replied-instant.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 for each new conversation replied event",
version: "0.0.1",
version: "0.0.2",
type: "source",
dedupe: "unique",
methods: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "belco-new-conversation-created-instant",
name: "New Conversation Created (Instant)",
description: "Emit new event for each new conversation created event",
version: "0.0.1",
version: "0.0.2",
type: "source",
dedupe: "unique",
methods: {
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.3",
version: "0.0.4",
type: "source",
dedupe: "unique",
props: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "belco-new-webhook-event",
name: "New Webhook Event (Instant)",
description: "Emit new event for each new webhook event",
version: "0.0.1",
version: "0.0.2",
type: "source",
dedupe: "unique",
props: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
export default {
...common,
key: "belco-note-added-instant",
name: "Note Added (Instant)",

Check warning on line 7 in components/belco/sources/note-added-instant/note-added-instant.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 for each new note added event",
version: "0.0.1",
version: "0.0.2",
type: "source",
dedupe: "unique",
methods: {
Expand Down
Loading