Skip to content

Commit 0eaf692

Browse files
committed
Adjust hubspot actions reloadProps
Removing reloadProps from the app file for actions for which this is irrelevant
1 parent 214e592 commit 0eaf692

File tree

13 files changed

+44
-36
lines changed

13 files changed

+44
-36
lines changed

components/hubspot/actions/common/common-create-object.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import common from "./common-create.mjs";
2+
import hubspot from "../../hubspot.app.mjs";
23

34
export default {
45
...common,
56
props: {
67
...common.props,
8+
hubspot,
79
// Re-defining propertyGroups so this.getObjectType() can be called from async options
810
// eslint-disable-next-line pipedream/props-description
911
propertyGroups: {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
name: "Create Company",
88
description:
99
"Create a company in Hubspot. [See the documentation](https://developers.hubspot.com/docs/api/crm/companies#endpoint?spec=POST-/crm/v3/objects/companies)",
10-
version: "0.0.29",
10+
version: "0.0.30",
1111
type: "action",
1212
methods: {
1313
...common.methods,

components/hubspot/actions/create-custom-object/create-custom-object.mjs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,26 @@
1-
import appProp from "../common/common-app-prop.mjs";
21
import common from "../common/common-create-object.mjs";
32

3+
const {
4+
hubspot, ...otherProps
5+
} = common.props;
6+
47
export default {
58
...common,
69
key: "hubspot-create-custom-object",
710
name: "Create Custom Object",
811
description:
912
"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)",
10-
version: "1.0.11",
13+
version: "1.0.12",
1114
type: "action",
1215
props: {
13-
...appProp.props,
16+
hubspot,
1417
customObjectType: {
1518
propDefinition: [
16-
appProp.props.hubspot,
19+
hubspot,
1720
"customObjectType",
1821
],
1922
},
20-
...common.props,
23+
...otherProps,
2124
},
2225
methods: {
2326
...common.methods,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
name: "Create Deal",
88
description:
99
"Create a deal in Hubspot. [See the documentation](https://developers.hubspot.com/docs/api/crm/deals#endpoint?spec=POST-/crm/v3/objects/deals)",
10-
version: "0.0.29",
10+
version: "0.0.30",
1111
type: "action",
1212
props: {
1313
...common.props,

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

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
11
import {
22
ASSOCIATION_CATEGORY, OBJECT_TYPE,
33
} from "../../common/constants.mjs";
4-
import appProp from "../common/common-app-prop.mjs";
54
import common from "../common/common-create-object.mjs";
65

6+
const {
7+
hubspot, ...otherProps
8+
} = common.props;
9+
710
export default {
811
...common,
912
key: "hubspot-create-lead",
1013
name: "Create Lead",
1114
description:
1215
"Create a lead in Hubspot. [See the documentation](https://developers.hubspot.com/beta-docs/guides/api/crm/objects/leads#create-leads)",
13-
version: "0.0.17",
16+
version: "0.0.18",
1417
type: "action",
1518
props: {
16-
...appProp.props,
19+
hubspot,
1720
contactId: {
1821
propDefinition: [
19-
appProp.props.hubspot,
22+
hubspot,
2023
"objectId",
2124
() => ({
2225
objectType: "contact",
@@ -25,7 +28,7 @@ export default {
2528
label: "Contact ID",
2629
description: "The contact to associate with the lead",
2730
},
28-
...common.props,
31+
...otherProps,
2932
},
3033
methods: {
3134
...common.methods,

components/hubspot/actions/create-or-update-contact/create-or-update-contact.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
name: "Create or Update Contact",
88
description:
99
"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)",
10-
version: "0.0.27",
10+
version: "0.0.28",
1111
type: "action",
1212
props: {
1313
...common.props,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
name: "Create Ticket",
88
description:
99
"Create a ticket in Hubspot. [See the documentation](https://developers.hubspot.com/docs/api/crm/tickets)",
10-
version: "0.0.20",
10+
version: "0.0.21",
1111
type: "action",
1212
props: {
1313
...common.props,

components/hubspot/actions/update-company/update-company.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { OBJECT_TYPE } from "../../common/constants.mjs";
2-
import appProp from "../common/common-app-prop.mjs";
2+
import hubspot from "../../hubspot.app.mjs";
33
import common from "../common/common-update-object.mjs";
44

55
export default {
@@ -8,7 +8,7 @@ export default {
88
name: "Update Company",
99
description:
1010
"Update a company in Hubspot. [See the documentation](https://developers.hubspot.com/docs/api/crm/companies)",
11-
version: "0.0.25",
11+
version: "0.0.26",
1212
type: "action",
1313
methods: {
1414
...common.methods,
@@ -17,10 +17,10 @@ export default {
1717
},
1818
},
1919
props: {
20-
...appProp.props,
20+
hubspot,
2121
objectId: {
2222
propDefinition: [
23-
appProp.props.hubspot,
23+
hubspot,
2424
"objectId",
2525
() => ({
2626
objectType: "company",

components/hubspot/actions/update-contact/update-contact.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { OBJECT_TYPE } from "../../common/constants.mjs";
2-
import appProp from "../common/common-app-prop.mjs";
2+
import hubspot from "../../hubspot.app.mjs";
33
import common from "../common/common-update-object.mjs";
44

55
export default {
@@ -8,7 +8,7 @@ export default {
88
name: "Update Contact",
99
description:
1010
"Update a contact in Hubspot. [See the documentation](https://developers.hubspot.com/docs/api/crm/contacts#endpoint?spec=POST-/crm/v3/objects/contacts)",
11-
version: "0.0.26",
11+
version: "0.0.27",
1212
type: "action",
1313
methods: {
1414
...common.methods,
@@ -17,10 +17,10 @@ export default {
1717
},
1818
},
1919
props: {
20-
...appProp.props,
20+
hubspot,
2121
objectId: {
2222
propDefinition: [
23-
appProp.props.hubspot,
23+
hubspot,
2424
"objectId",
2525
() => ({
2626
objectType: "contact",

components/hubspot/actions/update-custom-object/update-custom-object.mjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import appProp from "../common/common-app-prop.mjs";
1+
import hubspot from "../../hubspot.app.mjs";
22
import common from "../common/common-update-object.mjs";
33

44
export default {
@@ -7,7 +7,7 @@ export default {
77
name: "Update Custom Object",
88
description:
99
"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)",
10-
version: "1.0.11",
10+
version: "1.0.12",
1111
type: "action",
1212
methods: {
1313
...common.methods,
@@ -16,16 +16,16 @@ export default {
1616
},
1717
},
1818
props: {
19-
...appProp.props,
19+
hubspot,
2020
customObjectType: {
2121
propDefinition: [
22-
appProp.props.hubspot,
22+
hubspot,
2323
"customObjectType",
2424
],
2525
},
2626
objectId: {
2727
propDefinition: [
28-
appProp.props.hubspot,
28+
hubspot,
2929
"objectId",
3030
(c) => ({
3131
objectType: c.customObjectType,

0 commit comments

Comments
 (0)