Skip to content

Commit 24f033c

Browse files
18029 actionhubspot cms and marketing api (#18155)
* Update HubSpot component with new actions and version bumps - Added new actions: Create Contact Workflow, Clone Email, Clone Site Page, Create Form, Update Landing Page, and Update Page. - Enhanced existing actions with version increments for better compatibility. - Introduced utility functions for improved data handling and object parsing. - Updated dependencies in package.json to the latest versions. - Refactored code for consistency and clarity across various actions and sources. * pnpm update * Increment version numbers for HubSpot components: updated batch-update-companies to 0.0.3 and new-email-event to 0.0.29 for improved compatibility. * Update pnpm-lock.yaml to reflect dependency changes for components - Added dependencies for components/prisma_management_api. - Cleaned up specifier entries for components/mindee and components/zapr_link. - Included transitive peer dependencies for better compatibility. * Update components/hubspot/actions/clone-email/clone-email.mjs Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update components/hubspot/actions/create-form/create-form.mjs Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update components/hubspot/actions/create-form/create-form.mjs Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update components/hubspot/actions/create-page/create-page.mjs Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update components/hubspot/actions/update-landing-page/update-landing-page.mjs Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * pnpm update * Update HubSpot component version to 1.6.1 in package.json * Increment version of 'Get Associated Emails' action to 0.0.2 --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 7b47c94 commit 24f033c

File tree

81 files changed

+2025
-147
lines changed

Some content is hidden

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

81 files changed

+2025
-147
lines changed

components/apify_oauth/apify_oauth.app.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ export default {
88
console.log(Object.keys(this.$auth));
99
},
1010
},
11-
};
11+
};

components/booking_experts/booking_experts.app.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ export default {
88
console.log(Object.keys(this.$auth));
99
},
1010
},
11-
};
11+
};

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.19",
7+
version: "0.0.20",
88
type: "action",
99
props: {
1010
hubspot,

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import hubspot from "../../hubspot.app.mjs";
1+
import { ConfigurationError } from "@pipedream/platform";
22
import { API_PATH } from "../../common/constants.mjs";
33
import { parseObject } from "../../common/utils.mjs";
4-
import { ConfigurationError } from "@pipedream/platform";
4+
import hubspot from "../../hubspot.app.mjs";
55

66
export default {
77
key: "hubspot-batch-create-companies",
88
name: "Batch Create Companies",
99
description: "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)",
10-
version: "0.0.2",
10+
version: "0.0.3",
1111
type: "action",
1212
props: {
1313
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.16",
7+
version: "0.0.17",
88
type: "action",
99
props: {
1010
hubspot,

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import hubspot from "../../hubspot.app.mjs";
1+
import { ConfigurationError } from "@pipedream/platform";
22
import { API_PATH } from "../../common/constants.mjs";
33
import { parseObject } from "../../common/utils.mjs";
4-
import { ConfigurationError } from "@pipedream/platform";
4+
import hubspot from "../../hubspot.app.mjs";
55

66
export default {
77
key: "hubspot-batch-update-companies",
88
name: "Batch Update Companies",
99
description: "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)",
10-
version: "0.0.2",
10+
version: "0.0.3",
1111
type: "action",
1212
props: {
1313
hubspot,

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import hubspot from "../../hubspot.app.mjs";
1+
import { ConfigurationError } from "@pipedream/platform";
22
import { API_PATH } from "../../common/constants.mjs";
33
import { parseObject } from "../../common/utils.mjs";
4-
import { ConfigurationError } from "@pipedream/platform";
4+
import hubspot from "../../hubspot.app.mjs";
55

66
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.2",
10+
version: "0.0.3",
1111
type: "action",
1212
props: {
1313
hubspot,
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
import { LANGUAGE_OPTIONS } from "../../common/constants.mjs";
2+
import hubspot from "../../hubspot.app.mjs";
3+
4+
export default {
5+
key: "hubspot-clone-email",
6+
name: "Clone Marketing Email",
7+
description: "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)",
8+
version: "0.0.1",
9+
type: "action",
10+
props: {
11+
hubspot,
12+
emailId: {
13+
propDefinition: [
14+
hubspot,
15+
"emailId",
16+
],
17+
},
18+
cloneName: {
19+
type: "string",
20+
label: "Clone Name",
21+
description: "The name to assign to the cloned email",
22+
optional: true,
23+
},
24+
language: {
25+
type: "string",
26+
label: "Language",
27+
description: "The language code for the cloned email",
28+
options: LANGUAGE_OPTIONS,
29+
optional: true,
30+
},
31+
},
32+
async run({ $ }) {
33+
const response = await this.hubspot.cloneEmail({
34+
$,
35+
data: {
36+
cloneName: this.cloneName,
37+
language: this.language,
38+
id: this.emailId,
39+
},
40+
});
41+
42+
$.export("$summary", `Successfully cloned email with ID: ${response.id}`);
43+
44+
return response;
45+
},
46+
};
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import hubspot from "../../hubspot.app.mjs";
2+
3+
export default {
4+
key: "hubspot-clone-site-page",
5+
name: "Clone Site Page",
6+
description: "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)",
7+
version: "0.0.1",
8+
type: "action",
9+
props: {
10+
hubspot,
11+
pageId: {
12+
propDefinition: [
13+
hubspot,
14+
"pageId",
15+
],
16+
},
17+
cloneName: {
18+
type: "string",
19+
label: "Clone Name",
20+
description: "The name of the cloned page.",
21+
},
22+
},
23+
async run({ $ }) {
24+
const response = await this.hubspot.cloneSitePage({
25+
$,
26+
data: {
27+
id: this.pageId,
28+
cloneName: this.cloneName,
29+
},
30+
});
31+
32+
$.export("$summary", `Successfully cloned site page with ID: ${response.id}`);
33+
34+
return response;
35+
},
36+
};
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
import { LANGUAGE_OPTIONS } from "../../common/constants.mjs";
2+
import hubspot from "../../hubspot.app.mjs";
3+
4+
export default {
5+
language: {
6+
type: "string",
7+
label: "Language",
8+
description: "The language of the page.",
9+
options: LANGUAGE_OPTIONS,
10+
optional: true,
11+
},
12+
enableLayoutStylesheets: {
13+
type: "boolean",
14+
label: "Enable Layout Stylesheets",
15+
description: "Whether to enable layout stylesheets.",
16+
optional: true,
17+
},
18+
metaDescription: {
19+
type: "string",
20+
label: "Meta Description",
21+
description: "The meta description of the page.",
22+
optional: true,
23+
},
24+
attachedStylesheets: {
25+
type: "string[]",
26+
label: "Attached Stylesheets",
27+
description: "The stylesheets attached to the page.",
28+
optional: true,
29+
},
30+
password: {
31+
type: "string",
32+
label: "Password",
33+
description: "The password of the page.",
34+
optional: true,
35+
},
36+
publishImmediately: {
37+
type: "boolean",
38+
label: "Publish Immediately",
39+
description: "Whether to publish the page immediately.",
40+
optional: true,
41+
},
42+
htmlTitle: {
43+
type: "string",
44+
label: "HTML Title",
45+
description: "The HTML title of the page.",
46+
optional: true,
47+
},
48+
translations: {
49+
type: "object",
50+
label: "Translations",
51+
description: "The translations of the page.",
52+
optional: true,
53+
},
54+
layoutSections: {
55+
type: "object",
56+
label: "Layout Sections",
57+
description: "The layout sections of the page.",
58+
optional: true,
59+
},
60+
footerHtml: {
61+
type: "string",
62+
label: "Footer HTML",
63+
description: "The footer HTML of the page.",
64+
optional: true,
65+
},
66+
headHtml: {
67+
type: "string",
68+
label: "Head HTML",
69+
description: "The head HTML of the page.",
70+
optional: true,
71+
},
72+
templatePath: {
73+
propDefinition: [
74+
hubspot,
75+
"templatePath",
76+
],
77+
optional: true,
78+
},
79+
};

0 commit comments

Comments
 (0)