diff --git a/components/adobe_document_generation_api/adobe_document_generation_api.app.mjs b/components/adobe_document_generation_api/adobe_document_generation_api.app.mjs index 07fb0a467c428..4415cefa256ea 100644 --- a/components/adobe_document_generation_api/adobe_document_generation_api.app.mjs +++ b/components/adobe_document_generation_api/adobe_document_generation_api.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/browserbase/browserbase.app.mjs b/components/browserbase/browserbase.app.mjs index 71bedc4ac29c4..741071514a090 100644 --- a/components/browserbase/browserbase.app.mjs +++ b/components/browserbase/browserbase.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/buysellads/buysellads.app.mjs b/components/buysellads/buysellads.app.mjs index 4ec7f20422624..c55456bf7ad31 100644 --- a/components/buysellads/buysellads.app.mjs +++ b/components/buysellads/buysellads.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/hubspot/actions/search-crm/search-crm.mjs b/components/hubspot/actions/search-crm/search-crm.mjs index ed28c0ca93932..bae13d5019c08 100644 --- a/components/hubspot/actions/search-crm/search-crm.mjs +++ b/components/hubspot/actions/search-crm/search-crm.mjs @@ -10,12 +10,13 @@ import { DEFAULT_LEAD_PROPERTIES, } from "../../common/constants.mjs"; import common from "../common/common-create.mjs"; +import { ConfigurationError } from "@pipedream/platform"; export default { key: "hubspot-search-crm", name: "Search CRM", description: "Search companies, contacts, deals, feedback submissions, products, tickets, line-items, quotes, leads, or custom objects. [See the documentation](https://developers.hubspot.com/docs/api/crm/search)", - version: "0.0.12", + version: "0.0.13", type: "action", props: { hubspot, @@ -88,7 +89,7 @@ export default { props.searchValue = { type: "string", label: "Search Value", - description: "Search for objects where the specified search field/property matches the search value", + description: "Search for objects where the specified search field/property contains an exact match of the search value", }; const defaultProperties = this.getDefaultProperties(); if (defaultProperties?.length) { @@ -203,6 +204,17 @@ export default { ...otherProperties } = this; + const schema = await this.hubspot.getSchema({ + objectType, + }); + + if (!schema.searchableProperties.includes(searchProperty)) { + throw new ConfigurationError( + `Property \`${searchProperty}\` is not a searchable property of object type \`${objectType}\`. ` + + `\n\nAvailable searchable properties are: \`${schema.searchableProperties.join("`, `")}\``, + ); + } + const properties = creationProps ? typeof creationProps === "string" ? JSON.parse(creationProps) diff --git a/components/hubspot/package.json b/components/hubspot/package.json index 60a15efdf7dce..159271bf3a791 100644 --- a/components/hubspot/package.json +++ b/components/hubspot/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/hubspot", - "version": "0.13.2", + "version": "0.13.3", "description": "Pipedream Hubspot Components", "main": "hubspot.app.mjs", "keywords": [ diff --git a/components/humanlayer/humanlayer.app.mjs b/components/humanlayer/humanlayer.app.mjs index e9be295001178..97cb1840555ed 100644 --- a/components/humanlayer/humanlayer.app.mjs +++ b/components/humanlayer/humanlayer.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/instant/instant.app.mjs b/components/instant/instant.app.mjs index 5c3ac5231a3bb..08bd3e054823f 100644 --- a/components/instant/instant.app.mjs +++ b/components/instant/instant.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/klipy/klipy.app.mjs b/components/klipy/klipy.app.mjs index 61cf248740f05..c3746e58b17f9 100644 --- a/components/klipy/klipy.app.mjs +++ b/components/klipy/klipy.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/lightpanda/lightpanda.app.mjs b/components/lightpanda/lightpanda.app.mjs index bb9ffe38e38c1..95507b0ea6da8 100644 --- a/components/lightpanda/lightpanda.app.mjs +++ b/components/lightpanda/lightpanda.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/planhat/planhat.app.mjs b/components/planhat/planhat.app.mjs index c93c9f1f81b01..801bda0325eca 100644 --- a/components/planhat/planhat.app.mjs +++ b/components/planhat/planhat.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/storerocket/storerocket.app.mjs b/components/storerocket/storerocket.app.mjs index a5b1e804c9d27..b395b5698defc 100644 --- a/components/storerocket/storerocket.app.mjs +++ b/components/storerocket/storerocket.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/synthflow/synthflow.app.mjs b/components/synthflow/synthflow.app.mjs index fce02207ae978..d3432b63c182f 100644 --- a/components/synthflow/synthflow.app.mjs +++ b/components/synthflow/synthflow.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d66742efa5ea7..9a6c102ba17e0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1522,8 +1522,7 @@ importers: specifier: ^0.1.4 version: 0.1.6 - components/buysellads: - specifiers: {} + components/buysellads: {} components/bybit: dependencies: @@ -5697,8 +5696,7 @@ importers: specifier: ^3.0.3 version: 3.0.3 - components/klipy: - specifiers: {} + components/klipy: {} components/knack: dependencies: