Skip to content

Commit 87b85a5

Browse files
authored
Merge branch 'master' into issue-17798
2 parents 3e8f0d2 + 1e68cd3 commit 87b85a5

File tree

195 files changed

+7667
-1292
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

195 files changed

+7667
-1292
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
import frontapp from "../../frontapp.app.mjs";
2+
3+
export default {
4+
key: "frontapp-get-conversation",
5+
name: "Get Conversation",
6+
description: "Retrieve a conversation by its ID from Front. [See the documentation](https://dev.frontapp.com/reference/get-conversation-by-id)",
7+
version: "0.0.2",
8+
type: "action",
9+
props: {
10+
frontapp,
11+
conversationId: {
12+
propDefinition: [
13+
frontapp,
14+
"conversationId",
15+
],
16+
},
17+
includeMessages: {
18+
type: "boolean",
19+
label: "Include Messages",
20+
description: "Whether to include all messages from the conversation",
21+
default: false,
22+
optional: true,
23+
},
24+
},
25+
async run({ $ }) {
26+
const conversation = await this.frontapp.getConversation({
27+
$,
28+
conversationId: this.conversationId,
29+
});
30+
31+
if (this.includeMessages) {
32+
const messages = [];
33+
for await (const message of this.frontapp.paginate({
34+
fn: this.frontapp.makeRequest,
35+
path: `/conversations/${this.conversationId}/messages`,
36+
})) {
37+
messages.push(message);
38+
}
39+
conversation.messages = messages;
40+
}
41+
42+
$.export("$summary", `Successfully retrieved conversation with ID: ${this.conversationId}`);
43+
44+
return conversation;
45+
},
46+
};
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import frontApp from "../../frontapp.app.mjs";
2+
3+
export default {
4+
key: "frontapp-get-message",
5+
name: "Get Message",
6+
description: "Retrieve a message by its ID. [See the documentation](https://dev.frontapp.com/reference/get-message)",
7+
version: "0.0.1",
8+
type: "action",
9+
props: {
10+
frontApp,
11+
messageId: {
12+
type: "string",
13+
label: "Message ID",
14+
description: "The unique identifier of the message to retrieve",
15+
},
16+
},
17+
async run({ $ }) {
18+
const response = await this.frontApp.makeRequest({
19+
$,
20+
path: `/messages/${this.messageId}`,
21+
});
22+
$.export("$summary", `Successfully retrieved message with ID: ${this.messageId}`);
23+
return response;
24+
},
25+
};

components/frontapp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/frontapp",
3-
"version": "0.7.0",
3+
"version": "0.7.2",
44
"description": "Pipedream Frontapp Components",
55
"main": "frontapp.app.mjs",
66
"keywords": [

components/gotify/gotify.app.mjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export default {
2+
type: "app",
3+
app: "gotify",
4+
propDefinitions: {},
5+
methods: {
6+
// this.$auth contains connected account data
7+
authKeys() {
8+
console.log(Object.keys(this.$auth));
9+
},
10+
},
11+
};

components/gotify/package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "@pipedream/gotify",
3+
"version": "0.0.1",
4+
"description": "Pipedream Gotify Components",
5+
"main": "gotify.app.mjs",
6+
"keywords": [
7+
"pipedream",
8+
"gotify"
9+
],
10+
"homepage": "https://pipedream.com/apps/gotify",
11+
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
12+
"publishConfig": {
13+
"access": "public"
14+
}
15+
}

components/hubspot/actions/add-contact-to-list/add-contact-to-list.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "hubspot-add-contact-to-list",
55
name: "Add Contact to List",
66
description: "Adds a contact to a specific static list. [See the documentation](https://legacydocs.hubspot.com/docs/methods/lists/add_contact_to_list)",
7-
version: "0.0.17",
7+
version: "0.0.18",
88
type: "action",
99
props: {
1010
hubspot,

components/hubspot/actions/batch-create-or-update-contact/batch-create-or-update-contact.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "hubspot-batch-create-or-update-contact",
55
name: "Batch Create or Update Contact",
66
description: "Create or update a batch of contacts by its ID or email. [See the documentation](https://developers.hubspot.com/docs/api/crm/contacts)",
7-
version: "0.0.14",
7+
version: "0.0.15",
88
type: "action",
99
props: {
1010
hubspot,

components/hubspot/actions/create-associations/create-associations.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "hubspot-create-associations",
66
name: "Create Associations",
77
description: "Create associations between objects. [See the documentation](https://developers.hubspot.com/docs/api/crm/associations#endpoint?spec=POST-/crm/v3/associations/{fromObjectType}/{toObjectType}/batch/create)",
8-
version: "1.0.3",
8+
version: "1.0.4",
99
type: "action",
1010
props: {
1111
hubspot,

components/hubspot/actions/create-communication/create-communication.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default {
88
key: "hubspot-create-communication",
99
name: "Create Communication",
1010
description: "Create a WhatsApp, LinkedIn, or SMS message. [See the documentation](https://developers.hubspot.com/beta-docs/reference/api/crm/engagements/communications/v3#post-%2Fcrm%2Fv3%2Fobjects%2Fcommunications)",
11-
version: "0.0.10",
11+
version: "0.0.11",
1212
type: "action",
1313
props: {
1414
...appProp.props,

components/hubspot/actions/create-company/create-company.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "hubspot-create-company",
77
name: "Create Company",
88
description: "Create a company in Hubspot. [See the documentation](https://developers.hubspot.com/docs/api/crm/companies#endpoint?spec=POST-/crm/v3/objects/companies)",
9-
version: "0.0.21",
9+
version: "0.0.22",
1010
type: "action",
1111
methods: {
1212
...common.methods,

0 commit comments

Comments
 (0)