From c64e31020fe8dc76f2176e0b2bc3c65bf4e24404 Mon Sep 17 00:00:00 2001 From: michelle0927 Date: Mon, 9 Dec 2024 11:19:50 -0500 Subject: [PATCH] update-deal --- .../actions/update-deal/update-deal.mjs | 31 +++++++++++++++++++ components/hubspot/package.json | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 components/hubspot/actions/update-deal/update-deal.mjs 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 1d9e10bf154ca..237df088fc68f 100644 --- a/components/hubspot/package.json +++ b/components/hubspot/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/hubspot", - "version": "0.10.1", + "version": "0.11.0", "description": "Pipedream Hubspot Components", "main": "hubspot.app.mjs", "keywords": [