-
Notifications
You must be signed in to change notification settings - Fork 5.5k
18029 actionhubspot cms and marketing api #18155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
luancazarine
merged 16 commits into
master
from
18029-actionhubspot-cms-and-marketing-api
Aug 28, 2025
Merged
Changes from 5 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
1e09c83
Update HubSpot component with new actions and version bumps
luancazarine 4b31264
pnpm update
luancazarine be50b87
Increment version numbers for HubSpot components: updated batch-updat…
luancazarine b9f0f1b
Merge branch 'master' into 18029-actionhubspot-cms-and-marketing-api
luancazarine ab6909b
Update pnpm-lock.yaml to reflect dependency changes for components
luancazarine 4684142
Update components/hubspot/actions/clone-email/clone-email.mjs
luancazarine 7035274
Update components/hubspot/actions/create-form/create-form.mjs
luancazarine 31c60bd
Update components/hubspot/actions/create-form/create-form.mjs
luancazarine 52adf65
Update components/hubspot/actions/create-page/create-page.mjs
luancazarine 2a4398a
Update components/hubspot/actions/update-landing-page/update-landing-…
luancazarine 8a07555
Merge branch 'master' into 18029-actionhubspot-cms-and-marketing-api
luancazarine 9bfc88b
pnpm update
luancazarine e1dfca3
Update HubSpot component version to 1.6.1 in package.json
luancazarine 52c10b1
Increment version of 'Get Associated Emails' action to 0.0.2
luancazarine b3eb8aa
Merge branch 'master' into 18029-actionhubspot-cms-and-marketing-api
luancazarine 1e63dcd
Merge branch 'master' into 18029-actionhubspot-cms-and-marketing-api
luancazarine File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
components/hubspot/actions/batch-create-companies/batch-create-companies.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
components/hubspot/actions/batch-update-companies/batch-update-companies.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
components/hubspot/actions/batch-upsert-companies/batch-upsert-companies.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| import { LANGUAGE_OPTIONS } from "../../common/constants.mjs"; | ||
| import hubspot from "../../hubspot.app.mjs"; | ||
|
|
||
| export default { | ||
| key: "hubspot-clone-email", | ||
| name: "Clone Marketing Email", | ||
| 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)", | ||
| version: "0.0.1", | ||
| type: "action", | ||
| props: { | ||
| hubspot, | ||
| emailId: { | ||
| propDefinition: [ | ||
| hubspot, | ||
| "emailId", | ||
| ], | ||
| }, | ||
| cloneName: { | ||
| type: "string", | ||
| label: "Clone Name", | ||
| description: "The name to assign to the cloned email", | ||
| optional: true, | ||
| }, | ||
| language: { | ||
| type: "string", | ||
| label: "Language", | ||
| description: "The language code for the cloned email", | ||
| options: LANGUAGE_OPTIONS, | ||
| optional: true, | ||
| }, | ||
| }, | ||
| async run({ $ }) { | ||
| const response = await this.hubspot.cloneEmail({ | ||
| $, | ||
| data: { | ||
| cloneName: this.cloneName, | ||
| language: this.language, | ||
| id: this.emailId, | ||
| }, | ||
| }); | ||
|
|
||
| $.export("$summary", `Successfully cloned email with ID: ${response.id}`); | ||
|
|
||
| return response; | ||
| }, | ||
| }; | ||
36 changes: 36 additions & 0 deletions
36
components/hubspot/actions/clone-site-page/clone-site-page.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| import hubspot from "../../hubspot.app.mjs"; | ||
|
|
||
| export default { | ||
| key: "hubspot-clone-site-page", | ||
| name: "Clone Site Page", | ||
| 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)", | ||
| version: "0.0.1", | ||
| type: "action", | ||
| props: { | ||
| hubspot, | ||
| pageId: { | ||
| propDefinition: [ | ||
| hubspot, | ||
| "pageId", | ||
| ], | ||
| }, | ||
| cloneName: { | ||
| type: "string", | ||
| label: "Clone Name", | ||
| description: "The name of the cloned page.", | ||
| }, | ||
| }, | ||
| async run({ $ }) { | ||
| const response = await this.hubspot.cloneSitePage({ | ||
| $, | ||
| data: { | ||
| id: this.pageId, | ||
| cloneName: this.cloneName, | ||
| }, | ||
| }); | ||
|
|
||
| $.export("$summary", `Successfully cloned site page with ID: ${response.id}`); | ||
|
|
||
| return response; | ||
| }, | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,79 @@ | ||
| import { LANGUAGE_OPTIONS } from "../../common/constants.mjs"; | ||
| import hubspot from "../../hubspot.app.mjs"; | ||
|
|
||
| export default { | ||
| language: { | ||
| type: "string", | ||
| label: "Language", | ||
| description: "The language of the page.", | ||
| options: LANGUAGE_OPTIONS, | ||
| optional: true, | ||
| }, | ||
| enableLayoutStylesheets: { | ||
| type: "boolean", | ||
| label: "Enable Layout Stylesheets", | ||
| description: "Whether to enable layout stylesheets.", | ||
| optional: true, | ||
| }, | ||
| metaDescription: { | ||
| type: "string", | ||
| label: "Meta Description", | ||
| description: "The meta description of the page.", | ||
| optional: true, | ||
| }, | ||
| attachedStylesheets: { | ||
| type: "string[]", | ||
| label: "Attached Stylesheets", | ||
| description: "The stylesheets attached to the page.", | ||
| optional: true, | ||
| }, | ||
| password: { | ||
| type: "string", | ||
| label: "Password", | ||
| description: "The password of the page.", | ||
| optional: true, | ||
| }, | ||
| publishImmediately: { | ||
| type: "boolean", | ||
| label: "Publish Immediately", | ||
| description: "Whether to publish the page immediately.", | ||
| optional: true, | ||
| }, | ||
| htmlTitle: { | ||
| type: "string", | ||
| label: "HTML Title", | ||
| description: "The HTML title of the page.", | ||
| optional: true, | ||
| }, | ||
| translations: { | ||
| type: "object", | ||
| label: "Translations", | ||
| description: "The translations of the page.", | ||
| optional: true, | ||
| }, | ||
| layoutSections: { | ||
| type: "object", | ||
| label: "Layout Sections", | ||
| description: "The layout sections of the page.", | ||
| optional: true, | ||
| }, | ||
| footerHtml: { | ||
| type: "string", | ||
| label: "Footer HTML", | ||
| description: "The footer HTML of the page.", | ||
| optional: true, | ||
| }, | ||
| headHtml: { | ||
| type: "string", | ||
| label: "Head HTML", | ||
| description: "The head HTML of the page.", | ||
| optional: true, | ||
| }, | ||
| templatePath: { | ||
| propDefinition: [ | ||
| hubspot, | ||
| "templatePath", | ||
| ], | ||
| optional: true, | ||
| }, | ||
| }; |
4 changes: 2 additions & 2 deletions
4
components/hubspot/actions/create-associations/create-associations.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
components/hubspot/actions/create-communication/create-communication.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.