Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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: 2 additions & 0 deletions components/hubspot/actions/common/common-create-object.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import common from "./common-create.mjs";
import hubspot from "../../hubspot.app.mjs";

export default {
...common,
props: {
...common.props,
hubspot,
// Re-defining propertyGroups so this.getObjectType() can be called from async options
// eslint-disable-next-line pipedream/props-description
propertyGroups: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
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.29",
version: "0.0.30",
type: "action",
methods: {
...common.methods,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
import appProp from "../common/common-app-prop.mjs";
import common from "../common/common-create-object.mjs";

const {
hubspot, ...otherProps
} = common.props;

export default {
...common,
key: "hubspot-create-custom-object",
name: "Create Custom Object",
description:
"Create a new custom object in Hubspot. [See the documentation](https://developers.hubspot.com/beta-docs/guides/api/crm/objects/custom-objects#create-a-custom-object)",
version: "1.0.11",
version: "1.0.12",
type: "action",
props: {
...appProp.props,
hubspot,
customObjectType: {
propDefinition: [
appProp.props.hubspot,
hubspot,
"customObjectType",
],
},
...common.props,
...otherProps,
},
methods: {
...common.methods,
Expand Down
2 changes: 1 addition & 1 deletion components/hubspot/actions/create-deal/create-deal.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
name: "Create Deal",
description:
"Create a deal in Hubspot. [See the documentation](https://developers.hubspot.com/docs/api/crm/deals#endpoint?spec=POST-/crm/v3/objects/deals)",
version: "0.0.29",
version: "0.0.30",
type: "action",
props: {
...common.props,
Expand Down
13 changes: 8 additions & 5 deletions components/hubspot/actions/create-lead/create-lead.mjs
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
import {
ASSOCIATION_CATEGORY, OBJECT_TYPE,
} from "../../common/constants.mjs";
import appProp from "../common/common-app-prop.mjs";
import common from "../common/common-create-object.mjs";

const {
hubspot, ...otherProps
} = common.props;

export default {
...common,
key: "hubspot-create-lead",
name: "Create Lead",
description:
"Create a lead in Hubspot. [See the documentation](https://developers.hubspot.com/beta-docs/guides/api/crm/objects/leads#create-leads)",
version: "0.0.17",
version: "0.0.18",
type: "action",
props: {
...appProp.props,
hubspot,
contactId: {
propDefinition: [
appProp.props.hubspot,
hubspot,
"objectId",
() => ({
objectType: "contact",
Expand All @@ -25,7 +28,7 @@ export default {
label: "Contact ID",
description: "The contact to associate with the lead",
},
...common.props,
...otherProps,
},
methods: {
...common.methods,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
name: "Create or Update Contact",
description:
"Create or update a contact in Hubspot. [See the documentation](https://developers.hubspot.com/docs/api/crm/contacts#endpoint?spec=POST-/crm/v3/objects/contacts)",
version: "0.0.27",
version: "0.0.28",
type: "action",
props: {
...common.props,
Expand Down
2 changes: 1 addition & 1 deletion components/hubspot/actions/create-ticket/create-ticket.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
name: "Create Ticket",
description:
"Create a ticket in Hubspot. [See the documentation](https://developers.hubspot.com/docs/api/crm/tickets)",
version: "0.0.20",
version: "0.0.21",
type: "action",
props: {
...common.props,
Expand Down
8 changes: 4 additions & 4 deletions components/hubspot/actions/update-company/update-company.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { OBJECT_TYPE } from "../../common/constants.mjs";
import appProp from "../common/common-app-prop.mjs";
import hubspot from "../../hubspot.app.mjs";
import common from "../common/common-update-object.mjs";

export default {
Expand All @@ -8,7 +8,7 @@ export default {
name: "Update Company",
description:
"Update a company in Hubspot. [See the documentation](https://developers.hubspot.com/docs/api/crm/companies)",
version: "0.0.25",
version: "0.0.26",
type: "action",
methods: {
...common.methods,
Expand All @@ -17,10 +17,10 @@ export default {
},
},
props: {
...appProp.props,
hubspot,
objectId: {
propDefinition: [
appProp.props.hubspot,
hubspot,
"objectId",
() => ({
objectType: "company",
Expand Down
8 changes: 4 additions & 4 deletions components/hubspot/actions/update-contact/update-contact.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { OBJECT_TYPE } from "../../common/constants.mjs";
import appProp from "../common/common-app-prop.mjs";
import hubspot from "../../hubspot.app.mjs";
import common from "../common/common-update-object.mjs";

export default {
Expand All @@ -8,7 +8,7 @@ export default {
name: "Update Contact",
description:
"Update a contact in Hubspot. [See the documentation](https://developers.hubspot.com/docs/api/crm/contacts#endpoint?spec=POST-/crm/v3/objects/contacts)",
version: "0.0.26",
version: "0.0.27",
type: "action",
methods: {
...common.methods,
Expand All @@ -17,10 +17,10 @@ export default {
},
},
props: {
...appProp.props,
hubspot,
objectId: {
propDefinition: [
appProp.props.hubspot,
hubspot,
"objectId",
() => ({
objectType: "contact",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import appProp from "../common/common-app-prop.mjs";
import hubspot from "../../hubspot.app.mjs";
import common from "../common/common-update-object.mjs";

export default {
Expand All @@ -7,7 +7,7 @@ export default {
name: "Update Custom Object",
description:
"Update a custom object in Hubspot. [See the documentation](https://developers.hubspot.com/beta-docs/guides/api/crm/objects/custom-objects#update-existing-custom-objects)",
version: "1.0.11",
version: "1.0.12",
type: "action",
methods: {
...common.methods,
Expand All @@ -16,16 +16,16 @@ export default {
},
},
props: {
...appProp.props,
hubspot,
customObjectType: {
propDefinition: [
appProp.props.hubspot,
hubspot,
"customObjectType",
],
},
objectId: {
propDefinition: [
appProp.props.hubspot,
hubspot,
"objectId",
(c) => ({
objectType: c.customObjectType,
Expand Down
8 changes: 4 additions & 4 deletions components/hubspot/actions/update-deal/update-deal.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { OBJECT_TYPE } from "../../common/constants.mjs";
import appProp from "../common/common-app-prop.mjs";
import hubspot from "../../hubspot.app.mjs";
import common from "../common/common-update-object.mjs";

export default {
Expand All @@ -8,7 +8,7 @@ export default {
name: "Update Deal",
description:
"Update a deal in Hubspot. [See the documentation](https://developers.hubspot.com/beta-docs/guides/api/crm/objects/deals#update-deals)",
version: "0.0.16",
version: "0.0.17",
type: "action",
methods: {
...common.methods,
Expand All @@ -17,10 +17,10 @@ export default {
},
},
props: {
...appProp.props,
hubspot,
objectId: {
propDefinition: [
appProp.props.hubspot,
hubspot,
"objectId",
() => ({
objectType: "deal",
Expand Down
8 changes: 4 additions & 4 deletions components/hubspot/actions/update-lead/update-lead.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { OBJECT_TYPE } from "../../common/constants.mjs";
import appProp from "../common/common-app-prop.mjs";
import hubspot from "../../hubspot.app.mjs";
import common from "../common/common-update-object.mjs";

export default {
Expand All @@ -8,7 +8,7 @@ export default {
name: "Update Lead",
description:
"Update a lead in Hubspot. [See the documentation](https://developers.hubspot.com/beta-docs/guides/api/crm/objects/leads#update-leads)",
version: "0.0.17",
version: "0.0.18",
type: "action",
methods: {
...common.methods,
Expand All @@ -17,10 +17,10 @@ export default {
},
},
props: {
...appProp.props,
hubspot,
objectId: {
propDefinition: [
appProp.props.hubspot,
hubspot,
"leadId",
],
},
Expand Down
2 changes: 1 addition & 1 deletion components/hubspot/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/hubspot",
"version": "1.7.10",
"version": "1.7.11",
"description": "Pipedream Hubspot Components",
"main": "hubspot.app.mjs",
"keywords": [
Expand Down
Loading