Skip to content

Commit d8bdb5a

Browse files
authored
Hubspot - new components (#19230)
* new components * versions * wip * updates * fix version * updates
1 parent e1a5952 commit d8bdb5a

File tree

93 files changed

+932
-81
lines changed

Some content is hidden

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

93 files changed

+932
-81
lines changed
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
import hubspot from "../../hubspot.app.mjs";
2+
3+
export default {
4+
key: "hubspot-add-comment",
5+
name: "Add Comment",
6+
description: "Adds a comment to a thread. [See the documentation](https://developers.hubspot.com/docs/api-reference/conversations-conversations-inbox-&-messages-v3/public-message/post-conversations-v3-conversations-threads-threadId-messages)",
7+
version: "0.0.1",
8+
type: "action",
9+
annotations: {
10+
destructiveHint: false,
11+
openWorldHint: true,
12+
readOnlyHint: false,
13+
},
14+
props: {
15+
hubspot,
16+
inboxId: {
17+
propDefinition: [
18+
hubspot,
19+
"inboxId",
20+
],
21+
optional: true,
22+
},
23+
channelId: {
24+
propDefinition: [
25+
hubspot,
26+
"channelId",
27+
],
28+
optional: true,
29+
},
30+
threadId: {
31+
propDefinition: [
32+
hubspot,
33+
"threadId",
34+
(c) => ({
35+
inboxId: c.inboxId,
36+
channelId: c.channelId,
37+
}),
38+
],
39+
},
40+
text: {
41+
type: "string",
42+
label: "Text",
43+
description: "The text content of the comment",
44+
},
45+
fileId: {
46+
propDefinition: [
47+
hubspot,
48+
"fileId",
49+
],
50+
optional: true,
51+
},
52+
},
53+
async run({ $ }) {
54+
const response = await this.hubspot.createMessage({
55+
$,
56+
threadId: this.threadId,
57+
data: {
58+
type: "COMMENT",
59+
text: this.text,
60+
attachments: this.fileId
61+
? [
62+
{
63+
fileId: this.fileId,
64+
type: "FILE",
65+
},
66+
]
67+
: undefined,
68+
},
69+
});
70+
$.export("$summary", `Comment successfully added to thread ${this.threadId}`);
71+
return response;
72+
},
73+
};

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
@@ -5,7 +5,7 @@ export default {
55
name: "Add Contact to List",
66
description:
77
"Adds a contact to a specific static list. [See the documentation](https://legacydocs.hubspot.com/docs/methods/lists/add_contact_to_list)",
8-
version: "0.0.27",
8+
version: "0.0.28",
99
annotations: {
1010
destructiveHint: false,
1111
openWorldHint: true,

components/hubspot/actions/batch-create-companies/batch-create-companies.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default {
88
name: "Batch Create Companies",
99
description:
1010
"Create a batch of companies in Hubspot. [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/objects/companies#post-%2Fcrm%2Fv3%2Fobjects%2Fcompanies%2Fbatch%2Fcreate)",
11-
version: "0.0.10",
11+
version: "0.0.11",
1212
annotations: {
1313
destructiveHint: false,
1414
openWorldHint: true,

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
@@ -5,7 +5,7 @@ export default {
55
name: "Batch Create or Update Contact",
66
description:
77
"Create or update a batch of contacts by its ID or email. [See the documentation](https://developers.hubspot.com/docs/api/crm/contacts)",
8-
version: "0.0.24",
8+
version: "0.0.25",
99
annotations: {
1010
destructiveHint: true,
1111
openWorldHint: true,

components/hubspot/actions/batch-update-companies/batch-update-companies.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default {
88
name: "Batch Update Companies",
99
description:
1010
"Update a batch of companies in Hubspot. [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/objects/companies#post-%2Fcrm%2Fv3%2Fobjects%2Fcompanies%2Fbatch%2Fupdate)",
11-
version: "0.0.10",
11+
version: "0.0.11",
1212
annotations: {
1313
destructiveHint: true,
1414
openWorldHint: true,

components/hubspot/actions/batch-upsert-companies/batch-upsert-companies.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
key: "hubspot-batch-upsert-companies",
88
name: "Batch Upsert Companies",
99
description: "Upsert a batch of companies in Hubspot. [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/objects/companies#post-%2Fcrm%2Fv3%2Fobjects%2Fcompanies%2Fbatch%2Fupsert)",
10-
version: "0.0.9",
10+
version: "0.0.10",
1111
annotations: {
1212
destructiveHint: true,
1313
openWorldHint: true,

components/hubspot/actions/clone-email/clone-email.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
name: "Clone Marketing Email",
77
description:
88
"Clone a marketing email in HubSpot. [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/emails/marketing-emails#post-%2Fmarketing%2Fv3%2Femails%2Fclone)",
9-
version: "0.0.8",
9+
version: "0.0.9",
1010
annotations: {
1111
destructiveHint: false,
1212
openWorldHint: true,

components/hubspot/actions/clone-site-page/clone-site-page.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
name: "Clone Site Page",
66
description:
77
"Clone a site page in Hubspot. [See the documentation](https://developers.hubspot.com/docs/reference/api/cms/pages#post-%2Fcms%2Fv3%2Fpages%2Fsite-pages%2Fclone)",
8-
version: "0.0.8",
8+
version: "0.0.9",
99
annotations: {
1010
destructiveHint: false,
1111
openWorldHint: true,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
name: "Create Associations",
77
description:
88
"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)",
9-
version: "1.0.13",
9+
version: "1.0.14",
1010
annotations: {
1111
destructiveHint: false,
1212
openWorldHint: true,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default {
99
name: "Create Communication",
1010
description:
1111
"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)",
12-
version: "0.0.20",
12+
version: "0.0.21",
1313
annotations: {
1414
destructiveHint: false,
1515
openWorldHint: true,

0 commit comments

Comments
 (0)