diff --git a/components/hubspot/actions/update-deal/update-deal.mjs b/components/hubspot/actions/update-deal/update-deal.mjs new file mode 100644 index 0000000000000..732a5a8e479af --- /dev/null +++ b/components/hubspot/actions/update-deal/update-deal.mjs @@ -0,0 +1,31 @@ +import { OBJECT_TYPE } from "../../common/constants.mjs"; +import common from "../common/common-update-object.mjs"; +import hubspot from "../../hubspot.app.mjs"; + +export default { + ...common, + key: "hubspot-update-deal", + 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.1", + type: "action", + methods: { + ...common.methods, + getObjectType() { + return OBJECT_TYPE.DEAL; + }, + }, + props: { + hubspot, + objectId: { + propDefinition: [ + hubspot, + "objectId", + () => ({ + objectType: "deal", + }), + ], + }, + ...common.props, + }, +}; diff --git a/components/hubspot/package.json b/components/hubspot/package.json index 65373c0b45b29..237df088fc68f 100644 --- a/components/hubspot/package.json +++ b/components/hubspot/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/hubspot", - "version": "0.10.2", + "version": "0.11.0", "description": "Pipedream Hubspot Components", "main": "hubspot.app.mjs", "keywords": [