Skip to content
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
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
2 changes: 1 addition & 1 deletion components/apify_oauth/apify_oauth.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
2 changes: 1 addition & 1 deletion components/booking_experts/booking_experts.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
console.log(Object.keys(this.$auth));
},
},
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "hubspot-add-contact-to-list",
name: "Add Contact to List",
description: "Adds a contact to a specific static list. [See the documentation](https://legacydocs.hubspot.com/docs/methods/lists/add_contact_to_list)",
version: "0.0.19",
version: "0.0.20",
type: "action",
props: {
hubspot,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import hubspot from "../../hubspot.app.mjs";
import { ConfigurationError } from "@pipedream/platform";
import { API_PATH } from "../../common/constants.mjs";
import { parseObject } from "../../common/utils.mjs";
import { ConfigurationError } from "@pipedream/platform";
import hubspot from "../../hubspot.app.mjs";

export default {
key: "hubspot-batch-create-companies",
name: "Batch Create Companies",
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)",
version: "0.0.2",
version: "0.0.3",
type: "action",
props: {
hubspot,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "hubspot-batch-create-or-update-contact",
name: "Batch Create or Update Contact",
description: "Create or update a batch of contacts by its ID or email. [See the documentation](https://developers.hubspot.com/docs/api/crm/contacts)",
version: "0.0.16",
version: "0.0.17",
type: "action",
props: {
hubspot,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import hubspot from "../../hubspot.app.mjs";
import { ConfigurationError } from "@pipedream/platform";
import { API_PATH } from "../../common/constants.mjs";
import { parseObject } from "../../common/utils.mjs";
import { ConfigurationError } from "@pipedream/platform";
import hubspot from "../../hubspot.app.mjs";

export default {
key: "hubspot-batch-update-companies",
name: "Batch Update Companies",
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)",
version: "0.0.2",
version: "0.0.3",
type: "action",
props: {
hubspot,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import hubspot from "../../hubspot.app.mjs";
import { ConfigurationError } from "@pipedream/platform";
import { API_PATH } from "../../common/constants.mjs";
import { parseObject } from "../../common/utils.mjs";
import { ConfigurationError } from "@pipedream/platform";
import hubspot from "../../hubspot.app.mjs";

export default {
key: "hubspot-batch-upsert-companies",
name: "Batch Upsert Companies",
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)",
version: "0.0.2",
version: "0.0.3",
type: "action",
props: {
hubspot,
infoAlert: {

Check warning on line 14 in components/hubspot/actions/batch-upsert-companies/batch-upsert-companies.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop infoAlert must have a description. See https://pipedream.com/docs/components/guidelines/#props

Check warning on line 14 in components/hubspot/actions/batch-upsert-companies/batch-upsert-companies.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop infoAlert must have a label. See https://pipedream.com/docs/components/guidelines/#props
type: "alert",
alertType: "info",
content: "Create or update companies identified by a unique property value as specified by the `idProperty` query parameter. `idProperty` query param refers to a property whose values are unique for the object. To manage properties in Hubspot, navigate to your Settings -> Data Management -> Properties.",
Expand Down
46 changes: 46 additions & 0 deletions components/hubspot/actions/clone-email/clone-email.mjs
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 components/hubspot/actions/clone-site-page/clone-site-page.mjs
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;
},
};
79 changes: 79 additions & 0 deletions components/hubspot/actions/common/common-page-prop.mjs
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,
},
};
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import hubspot from "../../hubspot.app.mjs";
import { ConfigurationError } from "@pipedream/platform";
import hubspot from "../../hubspot.app.mjs";

export default {
key: "hubspot-create-associations",
name: "Create Associations",
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)",
version: "1.0.5",
version: "1.0.6",
type: "action",
props: {
hubspot,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import common from "../common/common-create.mjs";
import appProp from "../common/common-app-prop.mjs";
import { ConfigurationError } from "@pipedream/platform";
import { ASSOCIATION_CATEGORY } from "../../common/constants.mjs";
import appProp from "../common/common-app-prop.mjs";
import common from "../common/common-create.mjs";

export default {
...common,
key: "hubspot-create-communication",
name: "Create Communication",
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)",
version: "0.0.12",
version: "0.0.13",
type: "action",
props: {
...appProp.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "hubspot-create-company",
name: "Create Company",
description: "Create a company in Hubspot. [See the documentation](https://developers.hubspot.com/docs/api/crm/companies#endpoint?spec=POST-/crm/v3/objects/companies)",
version: "0.0.23",
version: "0.0.24",
type: "action",
methods: {
...common.methods,
Expand Down
Loading
Loading