Skip to content

Commit a8246da

Browse files
authored
update-deal (#14891)
1 parent 685bb65 commit a8246da

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import { OBJECT_TYPE } from "../../common/constants.mjs";
2+
import common from "../common/common-update-object.mjs";
3+
import hubspot from "../../hubspot.app.mjs";
4+
5+
export default {
6+
...common,
7+
key: "hubspot-update-deal",
8+
name: "Update Deal",
9+
description: "Update a deal in Hubspot. [See the documentation](https://developers.hubspot.com/beta-docs/guides/api/crm/objects/deals#update-deals)",
10+
version: "0.0.1",
11+
type: "action",
12+
methods: {
13+
...common.methods,
14+
getObjectType() {
15+
return OBJECT_TYPE.DEAL;
16+
},
17+
},
18+
props: {
19+
hubspot,
20+
objectId: {
21+
propDefinition: [
22+
hubspot,
23+
"objectId",
24+
() => ({
25+
objectType: "deal",
26+
}),
27+
],
28+
},
29+
...common.props,
30+
},
31+
};

components/hubspot/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/hubspot",
3-
"version": "0.10.2",
3+
"version": "0.11.0",
44
"description": "Pipedream Hubspot Components",
55
"main": "hubspot.app.mjs",
66
"keywords": [

0 commit comments

Comments
 (0)