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: "freshchat-fetch-conversation-details",
name: "Fetch Conversation Details",
description: "Fetches details for a specific conversation. [See the documentation](https://developers.freshchat.com/api/#retrieve_a_conversation)",
version: "0.0.2",
version: "0.0.3",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
2 changes: 1 addition & 1 deletion components/freshchat/actions/list-agents/list-agents.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "freshchat-list-agents",
name: "List Agents",
description: "Lists all agents in Freshchat. [See the documentation](https://developers.freshchat.com/api/#list_all_agents)",
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,26 @@
import freshchat from "../../freshchat.app.mjs";

export default {
key: "freshchat-list-all-conversation-properties",
name: "List All Conversation Properties",
description: "Retrieves a list of all conversation properties configured in the Freshchat system. [See the documentation](https://developers.freshchat.com/api/#list_all_conversation_properties)",
version: "0.0.1",
annotations: {
destructiveHint: false,
openWorldHint: true,
readOnlyHint: true,
},
type: "action",
props: {
freshchat,
},
async run({ $ }) {
const response = await this.freshchat.listConversationProperties({
$,
});
$.export("$summary", `Retrieved ${response.length} conversation propert${response.length === 1
? "y"
: "ies"}`);
return response;
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "freshchat-list-channels",
name: "List Channels",
description: "Lists all channels in Freshchat. [See the documentation](https://developers.freshchat.com/api/#channels-(topics))",
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 @@ -5,7 +5,7 @@ export default {
name: "List Messages",
description: "Lists all messages in a conversation. [See the documentation](https://developers.freshchat.com/api/#list_messages)",
type: "action",
version: "0.0.1",
version: "0.0.2",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "freshchat-send-message-in-chat",
name: "Send Message in Chat",
description: "Sends a message in a specific conversation. [See the documentation](https://developers.freshchat.com/api/#send_message_to_conversation)",
version: "0.0.3",
version: "0.0.4",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "freshchat-update-conversation-status",
name: "Update Conversation Status",
description: "Updates the status of a specific conversation. [See the documentation](https://developers.freshchat.com/api/#update_a_conversation)",
version: "0.0.2",
version: "0.0.3",
annotations: {
destructiveHint: true,
openWorldHint: true,
Expand Down
6 changes: 6 additions & 0 deletions components/freshchat/freshchat.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,12 @@ export default {
...opts,
});
},
listConversationProperties(opts = {}) {
return this._makeRequest({
path: "/conversations/fields",
...opts,
});
},
sendMessageInChat({
conversationId, ...opts
}) {
Expand Down
2 changes: 1 addition & 1 deletion components/freshchat/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/freshchat",
"version": "0.2.0",
"version": "0.3.0",
"description": "Pipedream Freshchat Components",
"main": "freshchat.app.mjs",
"keywords": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "freshchat-new-conversation-started",
name: "New Conversation Started",
description: "Emit new event when a new conversation is started for a user. [See the documentation](https://developers.freshchat.com/api/#retrieve_all_conversation_for_a_user)",
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 @@ -6,7 +6,7 @@ export default {
key: "freshchat-new-message-received",
name: "New Message Received",
description: "Emit new event when a new message is received in a conversation. [See the documentation](https://developers.freshchat.com/api/#list_messages)",
version: "0.0.1",
version: "0.0.2",
type: "source",
dedupe: "unique",
props: {
Expand Down
Loading