From 46df31630b013a7a844685b5b6309afccc5a8cce Mon Sep 17 00:00:00 2001 From: choeqq Date: Wed, 27 Aug 2025 10:30:02 +0200 Subject: [PATCH 1/9] New contact added to list trigger --- components/hubspot/hubspot.app.mjs | 9 + .../new-contact-added-to-list.mjs | 207 ++++++++++++++++++ .../new-contact-added-to-list/test-event.mjs | 43 ++++ 3 files changed, 259 insertions(+) create mode 100644 components/hubspot/sources/new-contact-added-to-list/new-contact-added-to-list.mjs create mode 100644 components/hubspot/sources/new-contact-added-to-list/test-event.mjs diff --git a/components/hubspot/hubspot.app.mjs b/components/hubspot/hubspot.app.mjs index 8d43daf6da70b..afb6bce45bd3a 100644 --- a/components/hubspot/hubspot.app.mjs +++ b/components/hubspot/hubspot.app.mjs @@ -1068,6 +1068,15 @@ export default { ...opts, }); }, + getListMembershipsByJoinOrder({ + listId, ...opts + }) { + return this.makeRequest({ + api: API_PATH.CRMV3, + endpoint: `/lists/${listId}/memberships/join-order`, + ...opts, + }); + }, batchGetObjects({ objectType, ...opts }) { diff --git a/components/hubspot/sources/new-contact-added-to-list/new-contact-added-to-list.mjs b/components/hubspot/sources/new-contact-added-to-list/new-contact-added-to-list.mjs new file mode 100644 index 0000000000000..2956921853bf8 --- /dev/null +++ b/components/hubspot/sources/new-contact-added-to-list/new-contact-added-to-list.mjs @@ -0,0 +1,207 @@ +import common from "../common/common.mjs"; +import { + DEFAULT_LIMIT, + DEFAULT_CONTACT_PROPERTIES, +} from "../../common/constants.mjs"; +import sampleEmit from "./test-event.mjs"; + +export default { + ...common, + key: "hubspot-new-contact-added-to-list", + name: "New Contact Added to List", + description: + "Emit new event when a contact is added to a HubSpot list. [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/lists#get-%2Fcrm%2Fv3%2Flists%2F%7Blistid%7D%2Fmemberships%2Fjoin-order)", + version: "0.0.1", + type: "source", + dedupe: "unique", + props: { + ...common.props, + info: { + type: "alert", + alertType: "info", + content: `Properties:\n\`${DEFAULT_CONTACT_PROPERTIES.join(", ")}\``, + }, + lists: { + propDefinition: [ + common.props.hubspot, + "lists", + ], + description: "Select the lists to watch for new contacts.", + optional: false, + }, + properties: { + propDefinition: [ + common.props.hubspot, + "contactProperties", + () => ({ + excludeDefaultProperties: true, + }), + ], + label: "Additional contact properties to retrieve", + optional: true, + }, + }, + methods: { + ...common.methods, + _getLastProcessedRecord(listId) { + const key = `list_${listId}_last_record`; + return this.db.get(key); + }, + _setLastProcessedRecord(listId, recordId) { + const key = `list_${listId}_last_record`; + this.db.set(key, recordId); + }, + getTs() { + return Date.now(); + }, + generateMeta(membership, listInfo) { + const { recordId } = membership; + const ts = this.getTs(); + + return { + id: `${listInfo.listId}-${recordId}`, + summary: `Contact ${recordId} added to list: ${listInfo.name}`, + ts, + }; + }, + async getContactDetails(contactIds) { + if (!contactIds.length) return {}; + + const { properties = [] } = this; + const allProperties = [ + ...DEFAULT_CONTACT_PROPERTIES, + ...properties, + ]; + + try { + const { results } = await this.hubspot.batchGetObjects({ + objectType: "contacts", + data: { + inputs: contactIds.map((id) => ({ + id, + })), + properties: allProperties, + }, + }); + + const contactMap = {}; + results.forEach((contact) => { + contactMap[contact.id] = contact; + }); + return contactMap; + } catch (error) { + console.warn("Error fetching contact details:", error); + return {}; + } + }, + async processListMemberships(listId, listInfo) { + const lastProcessedRecord = this._getLastProcessedRecord(listId); + const newMemberships = []; + + let params = { + limit: DEFAULT_LIMIT, + }; + + if (lastProcessedRecord) { + params.after = lastProcessedRecord; + } + + try { + let hasMore = true; + let latestRecordId = lastProcessedRecord; + + while (hasMore) { + const { + results, paging, + } = + await this.hubspot.getListMembershipsByJoinOrder({ + listId, + params, + }); + + if (!results || results.length === 0) { + break; + } + + for (const membership of results) { + newMemberships.push({ + membership, + listInfo, + }); + latestRecordId = membership.recordId; + } + + if (paging?.next?.after) { + params.after = paging.next.after; + } else { + hasMore = false; + } + } + + if (latestRecordId) { + this._setLastProcessedRecord(listId, latestRecordId); + } + } catch (error) { + console.error(`Error processing list ${listId}:`, error); + } + + return newMemberships; + }, + async processResults() { + const { lists } = this; + + if (!lists || lists.length === 0) { + console.warn("No lists selected to monitor"); + return; + } + + const allNewMemberships = []; + + for (const listId of lists) { + try { + const listInfo = { + listId, + name: `List ${listId}`, + }; + + const newMemberships = await this.processListMemberships( + listId, + listInfo, + ); + allNewMemberships.push(...newMemberships); + } catch (error) { + console.error(`Error processing list ${listId}:`, error); + } + } + + if (allNewMemberships.length > 0) { + const contactIds = allNewMemberships.map( + ({ membership }) => membership.recordId, + ); + const contactDetails = await this.getContactDetails(contactIds); + + for (const { + membership, listInfo, + } of allNewMemberships) { + const contactDetail = contactDetails[membership.recordId] || {}; + + const eventData = { + listId: listInfo.listId, + listName: listInfo.name, + contactId: membership.recordId, + contact: contactDetail, + membership, + addedAt: new Date().toISOString(), + }; + + const meta = this.generateMeta(membership, listInfo); + this.$emit(eventData, meta); + } + } + }, + getParams() { + return {}; + }, + }, + sampleEmit, +}; diff --git a/components/hubspot/sources/new-contact-added-to-list/test-event.mjs b/components/hubspot/sources/new-contact-added-to-list/test-event.mjs new file mode 100644 index 0000000000000..3db37fd1395cf --- /dev/null +++ b/components/hubspot/sources/new-contact-added-to-list/test-event.mjs @@ -0,0 +1,43 @@ +export default { + listId: "123456789", + listName: "List 123456789", + contactId: "31612976545", + contact: { + id: "31612976545", + properties: { + address: null, + annualrevenue: null, + city: "San Francisco", + company: "Acme Corp", + country: "United States", + createdate: "2024-08-26T15:30:45.123Z", + email: "john.doe@example.com", + fax: null, + firstname: "John", + hs_createdate: "2024-08-26T15:30:45.123Z", + hs_email_domain: "example.com", + hs_language: null, + hs_object_id: "31612976545", + hs_persona: null, + industry: "Technology", + jobtitle: "Software Engineer", + lastmodifieddate: "2024-08-26T15:32:15.456Z", + lastname: "Doe", + lifecyclestage: "lead", + mobilephone: null, + numemployees: null, + phone: "+1-555-123-4567", + salutation: null, + state: "California", + website: "https://example.com", + zip: "94102", + }, + createdAt: "2024-08-26T15:30:45.123Z", + updatedAt: "2024-08-26T15:32:15.456Z", + archived: false, + }, + membership: { + recordId: "31612976545", + }, + addedAt: "2024-08-26T15:35:20.789Z", +}; \ No newline at end of file From ee9b57569743d02c5e77f1640b775e6453274d46 Mon Sep 17 00:00:00 2001 From: choeqq Date: Wed, 27 Aug 2025 10:44:05 +0200 Subject: [PATCH 2/9] bump hubspot version --- components/hubspot/package.json | 2 +- pnpm-lock.yaml | 16 ++++------------ 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/components/hubspot/package.json b/components/hubspot/package.json index 435936d6ba838..7af279c2ddd8d 100644 --- a/components/hubspot/package.json +++ b/components/hubspot/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/hubspot", - "version": "1.6.0", + "version": "1.7.0", "description": "Pipedream Hubspot Components", "main": "hubspot.app.mjs", "keywords": [ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 648cf983f4324..16e37a4b24703 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -16589,14 +16589,6 @@ importers: specifier: ^6.0.0 version: 6.2.0 - modelcontextprotocol/node_modules2/@modelcontextprotocol/sdk/dist/cjs: {} - - modelcontextprotocol/node_modules2/@modelcontextprotocol/sdk/dist/esm: {} - - modelcontextprotocol/node_modules2/zod-to-json-schema/dist/cjs: {} - - modelcontextprotocol/node_modules2/zod-to-json-schema/dist/esm: {} - packages/ai: dependencies: '@pipedream/sdk': @@ -32097,22 +32089,22 @@ packages: superagent@3.8.1: resolution: {integrity: sha512-VMBFLYgFuRdfeNQSMLbxGSLfmXL/xc+OO+BZp41Za/NRDBet/BNbkRJrYzCUu0u4GU0i/ml2dtT8b9qgkw9z6Q==} engines: {node: '>= 4.0'} - deprecated: Please upgrade to superagent v10.2.2+, see release notes at https://github.com/forwardemail/superagent/releases/tag/v10.2.2 - maintenance is supported by Forward Email @ https://forwardemail.net + deprecated: Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net superagent@4.1.0: resolution: {integrity: sha512-FT3QLMasz0YyCd4uIi5HNe+3t/onxMyEho7C3PSqmti3Twgy2rXT4fmkTz6wRL6bTF4uzPcfkUCa8u4JWHw8Ag==} engines: {node: '>= 6.0'} - deprecated: Please upgrade to superagent v10.2.2+, see release notes at https://github.com/forwardemail/superagent/releases/tag/v10.2.2 - maintenance is supported by Forward Email @ https://forwardemail.net + deprecated: Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net superagent@5.3.1: resolution: {integrity: sha512-wjJ/MoTid2/RuGCOFtlacyGNxN9QLMgcpYLDQlWFIhhdJ93kNscFonGvrpAHSCVjRVj++DGCglocF7Aej1KHvQ==} engines: {node: '>= 7.0.0'} - deprecated: Please upgrade to superagent v10.2.2+, see release notes at https://github.com/forwardemail/superagent/releases/tag/v10.2.2 - maintenance is supported by Forward Email @ https://forwardemail.net + deprecated: Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net superagent@7.1.6: resolution: {integrity: sha512-gZkVCQR1gy/oUXr+kxJMLDjla434KmSOKbx5iGD30Ql+AkJQ/YlPKECJy2nhqOsHLjGHzoDTXNSjhnvWhzKk7g==} engines: {node: '>=6.4.0 <13 || >=14'} - deprecated: Please upgrade to superagent v10.2.2+, see release notes at https://github.com/forwardemail/superagent/releases/tag/v10.2.2 - maintenance is supported by Forward Email @ https://forwardemail.net + deprecated: Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net supports-color@10.0.0: resolution: {integrity: sha512-HRVVSbCCMbj7/kdWF9Q+bbckjBHLtHMEoJWlkmYzzdwhYMkjkOwubLM6t7NbWKjgKamGDrWL1++KrjUO1t9oAQ==} From a3c788944e4d89f8134c76a363b1ba9253840e85 Mon Sep 17 00:00:00 2001 From: choeqq Date: Wed, 27 Aug 2025 11:26:37 +0200 Subject: [PATCH 3/9] cr 1 --- .../new-contact-added-to-list.mjs | 92 ++++++++++++++----- 1 file changed, 68 insertions(+), 24 deletions(-) diff --git a/components/hubspot/sources/new-contact-added-to-list/new-contact-added-to-list.mjs b/components/hubspot/sources/new-contact-added-to-list/new-contact-added-to-list.mjs index 2956921853bf8..e91b2ab690a04 100644 --- a/components/hubspot/sources/new-contact-added-to-list/new-contact-added-to-list.mjs +++ b/components/hubspot/sources/new-contact-added-to-list/new-contact-added-to-list.mjs @@ -43,12 +43,20 @@ export default { }, methods: { ...common.methods, - _getLastProcessedRecord(listId) { - const key = `list_${listId}_last_record`; + _getAfterToken(listId) { + const key = `list_${listId}_after_token`; return this.db.get(key); }, - _setLastProcessedRecord(listId, recordId) { - const key = `list_${listId}_last_record`; + _setAfterToken(listId, afterToken) { + const key = `list_${listId}_after_token`; + this.db.set(key, afterToken); + }, + _getLastRecordId(listId) { + const key = `list_${listId}_last_record_id`; + return this.db.get(key); + }, + _setLastRecordId(listId, recordId) { + const key = `list_${listId}_last_record_id`; this.db.set(key, recordId); }, getTs() { @@ -67,48 +75,76 @@ export default { async getContactDetails(contactIds) { if (!contactIds.length) return {}; + const uniqueContactIds = [ + ...new Set(contactIds), + ]; + const { properties = [] } = this; const allProperties = [ - ...DEFAULT_CONTACT_PROPERTIES, - ...properties, + ...new Set([ + ...DEFAULT_CONTACT_PROPERTIES, + ...properties, + ]), ]; + const chunks = []; + const chunkSize = 100; + for (let i = 0; i < uniqueContactIds.length; i += chunkSize) { + chunks.push(uniqueContactIds.slice(i, i + chunkSize)); + } + + const contactMap = {}; + + const chunkPromises = chunks.map(async (chunk) => { + try { + const { results } = await this.hubspot.batchGetObjects({ + objectType: "contacts", + data: { + inputs: chunk.map((id) => ({ + id, + })), + properties: allProperties, + }, + }); + return results; + } catch (error) { + console.warn("Error fetching contact details for chunk:", error); + return []; + } + }); + try { - const { results } = await this.hubspot.batchGetObjects({ - objectType: "contacts", - data: { - inputs: contactIds.map((id) => ({ - id, - })), - properties: allProperties, - }, - }); + const chunkResults = await Promise.all(chunkPromises); - const contactMap = {}; - results.forEach((contact) => { - contactMap[contact.id] = contact; + chunkResults.forEach((results) => { + results.forEach((contact) => { + contactMap[contact.id] = contact; + }); }); + return contactMap; } catch (error) { - console.warn("Error fetching contact details:", error); + console.warn("Error processing contact details:", error); return {}; } }, async processListMemberships(listId, listInfo) { - const lastProcessedRecord = this._getLastProcessedRecord(listId); + const afterToken = this._getAfterToken(listId); + const lastRecordId = this._getLastRecordId(listId); const newMemberships = []; let params = { limit: DEFAULT_LIMIT, }; - if (lastProcessedRecord) { - params.after = lastProcessedRecord; + if (afterToken) { + params.after = afterToken; } try { let hasMore = true; - let latestRecordId = lastProcessedRecord; + let latestAfterToken = afterToken; + let latestRecordId = lastRecordId; while (hasMore) { const { @@ -124,6 +160,10 @@ export default { } for (const membership of results) { + if (lastRecordId && membership.recordId === lastRecordId) { + continue; + } + newMemberships.push({ membership, listInfo, @@ -132,14 +172,18 @@ export default { } if (paging?.next?.after) { + latestAfterToken = paging.next.after; params.after = paging.next.after; } else { hasMore = false; } } + if (latestAfterToken !== afterToken) { + this._setAfterToken(listId, latestAfterToken); + } if (latestRecordId) { - this._setLastProcessedRecord(listId, latestRecordId); + this._setLastRecordId(listId, latestRecordId); } } catch (error) { console.error(`Error processing list ${listId}:`, error); From 94d42f784a2bdba3fb5425b4cd307ef244bef6a0 Mon Sep 17 00:00:00 2001 From: choeqq Date: Tue, 2 Sep 2025 11:21:20 +0200 Subject: [PATCH 4/9] processing by lastMembershipTimestamp --- .../new-contact-added-to-list.mjs | 153 +++++++++--------- 1 file changed, 73 insertions(+), 80 deletions(-) diff --git a/components/hubspot/sources/new-contact-added-to-list/new-contact-added-to-list.mjs b/components/hubspot/sources/new-contact-added-to-list/new-contact-added-to-list.mjs index e91b2ab690a04..64200e854b435 100644 --- a/components/hubspot/sources/new-contact-added-to-list/new-contact-added-to-list.mjs +++ b/components/hubspot/sources/new-contact-added-to-list/new-contact-added-to-list.mjs @@ -11,7 +11,7 @@ export default { name: "New Contact Added to List", description: "Emit new event when a contact is added to a HubSpot list. [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/lists#get-%2Fcrm%2Fv3%2Flists%2F%7Blistid%7D%2Fmemberships%2Fjoin-order)", - version: "0.0.1", + version: "0.0.10", type: "source", dedupe: "unique", props: { @@ -21,12 +21,13 @@ export default { alertType: "info", content: `Properties:\n\`${DEFAULT_CONTACT_PROPERTIES.join(", ")}\``, }, - lists: { + listId: { propDefinition: [ common.props.hubspot, - "lists", + "listId", ], - description: "Select the lists to watch for new contacts.", + type: "string", + description: "Select the list to watch for new contacts.", optional: false, }, properties: { @@ -43,21 +44,13 @@ export default { }, methods: { ...common.methods, - _getAfterToken(listId) { - const key = `list_${listId}_after_token`; + _getLastMembershipTimestamp(listId) { + const key = `list_${listId}_last_timestamp`; return this.db.get(key); }, - _setAfterToken(listId, afterToken) { - const key = `list_${listId}_after_token`; - this.db.set(key, afterToken); - }, - _getLastRecordId(listId) { - const key = `list_${listId}_last_record_id`; - return this.db.get(key); - }, - _setLastRecordId(listId, recordId) { - const key = `list_${listId}_last_record_id`; - this.db.set(key, recordId); + _setLastMembershipTimestamp(listId, timestamp) { + const key = `list_${listId}_last_timestamp`; + this.db.set(key, timestamp); }, getTs() { return Date.now(); @@ -129,22 +122,22 @@ export default { } }, async processListMemberships(listId, listInfo) { - const afterToken = this._getAfterToken(listId); - const lastRecordId = this._getLastRecordId(listId); + const lastMembershipTimestamp = this._getLastMembershipTimestamp(listId); const newMemberships = []; let params = { limit: DEFAULT_LIMIT, }; - if (afterToken) { - params.after = afterToken; - } - try { let hasMore = true; - let latestAfterToken = afterToken; - let latestRecordId = lastRecordId; + let latestMembershipTimestamp = lastMembershipTimestamp; + + if (!lastMembershipTimestamp) { + const baselineTimestamp = new Date().toISOString(); + this._setLastMembershipTimestamp(listId, baselineTimestamp); + return newMemberships; + } while (hasMore) { const { @@ -160,30 +153,35 @@ export default { } for (const membership of results) { - if (lastRecordId && membership.recordId === lastRecordId) { - continue; + const { membershipTimestamp } = membership; + + if ( + new Date(membershipTimestamp) > new Date(lastMembershipTimestamp) + ) { + newMemberships.push({ + membership, + listInfo, + }); + + if ( + !latestMembershipTimestamp || + new Date(membershipTimestamp) > + new Date(latestMembershipTimestamp) + ) { + latestMembershipTimestamp = membershipTimestamp; + } } - - newMemberships.push({ - membership, - listInfo, - }); - latestRecordId = membership.recordId; } if (paging?.next?.after) { - latestAfterToken = paging.next.after; params.after = paging.next.after; } else { hasMore = false; } } - if (latestAfterToken !== afterToken) { - this._setAfterToken(listId, latestAfterToken); - } - if (latestRecordId) { - this._setLastRecordId(listId, latestRecordId); + if (latestMembershipTimestamp !== lastMembershipTimestamp) { + this._setLastMembershipTimestamp(listId, latestMembershipTimestamp); } } catch (error) { console.error(`Error processing list ${listId}:`, error); @@ -192,55 +190,50 @@ export default { return newMemberships; }, async processResults() { - const { lists } = this; + const { listId } = this; - if (!lists || lists.length === 0) { - console.warn("No lists selected to monitor"); + if (!listId) { + console.warn("No list selected to monitor"); return; } - const allNewMemberships = []; + const listInfo = { + listId, + name: `List ${listId}`, + }; + + try { + const newMemberships = await this.processListMemberships( + listId, + listInfo, + ); - for (const listId of lists) { - try { - const listInfo = { - listId, - name: `List ${listId}`, - }; - - const newMemberships = await this.processListMemberships( - listId, - listInfo, + if (newMemberships.length > 0) { + const contactIds = newMemberships.map( + ({ membership }) => membership.recordId, ); - allNewMemberships.push(...newMemberships); - } catch (error) { - console.error(`Error processing list ${listId}:`, error); - } - } + const contactDetails = await this.getContactDetails(contactIds); + + for (const { + membership, listInfo, + } of newMemberships) { + const contactDetail = contactDetails[membership.recordId] || {}; + + const eventData = { + listId: listInfo.listId, + listName: listInfo.name, + contactId: membership.recordId, + contact: contactDetail, + membership, + addedAt: new Date().toISOString(), + }; - if (allNewMemberships.length > 0) { - const contactIds = allNewMemberships.map( - ({ membership }) => membership.recordId, - ); - const contactDetails = await this.getContactDetails(contactIds); - - for (const { - membership, listInfo, - } of allNewMemberships) { - const contactDetail = contactDetails[membership.recordId] || {}; - - const eventData = { - listId: listInfo.listId, - listName: listInfo.name, - contactId: membership.recordId, - contact: contactDetail, - membership, - addedAt: new Date().toISOString(), - }; - - const meta = this.generateMeta(membership, listInfo); - this.$emit(eventData, meta); + const meta = this.generateMeta(membership, listInfo); + this.$emit(eventData, meta); + } } + } catch (error) { + console.error(`Error processing list ${listId}:`, error); } }, getParams() { From 3585f78a73a35fd3437490713f86b3bcc170d2a3 Mon Sep 17 00:00:00 2001 From: choeqq Date: Tue, 2 Sep 2025 12:19:32 +0200 Subject: [PATCH 5/9] enhance id with membershipTimestamp --- .../new-contact-added-to-list.mjs | 10 +++++++--- pnpm-lock.yaml | 3 +-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/components/hubspot/sources/new-contact-added-to-list/new-contact-added-to-list.mjs b/components/hubspot/sources/new-contact-added-to-list/new-contact-added-to-list.mjs index 64200e854b435..460a58f545e43 100644 --- a/components/hubspot/sources/new-contact-added-to-list/new-contact-added-to-list.mjs +++ b/components/hubspot/sources/new-contact-added-to-list/new-contact-added-to-list.mjs @@ -56,11 +56,15 @@ export default { return Date.now(); }, generateMeta(membership, listInfo) { - const { recordId } = membership; - const ts = this.getTs(); + const { + recordId, membershipTimestamp, + } = membership; + const ts = membershipTimestamp + ? new Date(membershipTimestamp).getTime() + : this.getTs(); return { - id: `${listInfo.listId}-${recordId}`, + id: `${listInfo.listId}-${recordId}-${ts}`, summary: `Contact ${recordId} added to list: ${listInfo.name}`, ts, }; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6cfe55f75d257..c7f802ef959ac 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -2044,8 +2044,7 @@ importers: specifier: ^3.0.0 version: 3.0.3 - components/buddee: - specifiers: {} + components/buddee: {} components/buddy: {} From fa48fdb338e58c260e20fb37f685483f372fff85 Mon Sep 17 00:00:00 2001 From: choeqq Date: Tue, 2 Sep 2025 13:00:45 +0200 Subject: [PATCH 6/9] remove data chunking --- .../new-contact-added-to-list.mjs | 56 +++++-------------- 1 file changed, 15 insertions(+), 41 deletions(-) diff --git a/components/hubspot/sources/new-contact-added-to-list/new-contact-added-to-list.mjs b/components/hubspot/sources/new-contact-added-to-list/new-contact-added-to-list.mjs index 460a58f545e43..f3a4bb181ec56 100644 --- a/components/hubspot/sources/new-contact-added-to-list/new-contact-added-to-list.mjs +++ b/components/hubspot/sources/new-contact-added-to-list/new-contact-added-to-list.mjs @@ -72,56 +72,30 @@ export default { async getContactDetails(contactIds) { if (!contactIds.length) return {}; - const uniqueContactIds = [ - ...new Set(contactIds), - ]; - const { properties = [] } = this; const allProperties = [ - ...new Set([ - ...DEFAULT_CONTACT_PROPERTIES, - ...properties, - ]), + ...DEFAULT_CONTACT_PROPERTIES, + ...properties, ]; - const chunks = []; - const chunkSize = 100; - for (let i = 0; i < uniqueContactIds.length; i += chunkSize) { - chunks.push(uniqueContactIds.slice(i, i + chunkSize)); - } - - const contactMap = {}; - - const chunkPromises = chunks.map(async (chunk) => { - try { - const { results } = await this.hubspot.batchGetObjects({ - objectType: "contacts", - data: { - inputs: chunk.map((id) => ({ - id, - })), - properties: allProperties, - }, - }); - return results; - } catch (error) { - console.warn("Error fetching contact details for chunk:", error); - return []; - } - }); - try { - const chunkResults = await Promise.all(chunkPromises); - - chunkResults.forEach((results) => { - results.forEach((contact) => { - contactMap[contact.id] = contact; - }); + const { results } = await this.hubspot.batchGetObjects({ + objectType: "contacts", + data: { + inputs: contactIds.map((id) => ({ + id, + })), + properties: allProperties, + }, }); + const contactMap = {}; + results.forEach((contact) => { + contactMap[contact.id] = contact; + }); return contactMap; } catch (error) { - console.warn("Error processing contact details:", error); + console.warn("Error fetching contact details:", error); return {}; } }, From d0923d8c2797730b0671ed48793e513b10bd957a Mon Sep 17 00:00:00 2001 From: choeqq Date: Tue, 2 Sep 2025 15:48:51 +0200 Subject: [PATCH 7/9] cr 2 --- components/hubspot/hubspot.app.mjs | 60 +++++++++++--- .../new-contact-added-to-list.mjs | 83 ++++++++++++------- 2 files changed, 101 insertions(+), 42 deletions(-) diff --git a/components/hubspot/hubspot.app.mjs b/components/hubspot/hubspot.app.mjs index f3afe63c72d65..132aeab57efe2 100644 --- a/components/hubspot/hubspot.app.mjs +++ b/components/hubspot/hubspot.app.mjs @@ -1264,24 +1264,58 @@ export default { ...opts, }); }, - getListMembershipsByJoinOrder({ + async getListMembershipsByJoinOrder({ listId, ...opts }) { - return this.makeRequest({ - api: API_PATH.CRMV3, - endpoint: `/lists/${listId}/memberships/join-order`, - ...opts, - }); + const MAX_RETRIES = 5; + const BASE_RETRY_DELAY = 500; + let success = false; + let retries = 0; + while (!success) { + try { + const response = await this.makeRequest({ + api: API_PATH.CRMV3, + endpoint: `/lists/${listId}/memberships/join-order`, + ...opts, + }); + return response; + } catch (error) { + if (error.status === 429 && ++retries < MAX_RETRIES) { + const randomDelay = Math.floor(Math.random() * BASE_RETRY_DELAY); + const delay = BASE_RETRY_DELAY * (2 ** retries) + randomDelay; + await new Promise((resolve) => setTimeout(resolve, delay)); + } else { + throw error; + } + } + } }, - batchGetObjects({ + async batchGetObjects({ objectType, ...opts }) { - return this.makeRequest({ - api: API_PATH.CRMV3, - endpoint: `/objects/${objectType}/batch/read`, - method: "POST", - ...opts, - }); + const MAX_RETRIES = 5; + const BASE_RETRY_DELAY = 500; + let success = false; + let retries = 0; + while (!success) { + try { + const response = await this.makeRequest({ + api: API_PATH.CRMV3, + endpoint: `/objects/${objectType}/batch/read`, + method: "POST", + ...opts, + }); + return response; + } catch (error) { + if (error.status === 429 && ++retries < MAX_RETRIES) { + const randomDelay = Math.floor(Math.random() * BASE_RETRY_DELAY); + const delay = BASE_RETRY_DELAY * (2 ** retries) + randomDelay; + await new Promise((resolve) => setTimeout(resolve, delay)); + } else { + throw error; + } + } + } }, listNotes(opts = {}) { return this.makeRequest({ diff --git a/components/hubspot/sources/new-contact-added-to-list/new-contact-added-to-list.mjs b/components/hubspot/sources/new-contact-added-to-list/new-contact-added-to-list.mjs index f3a4bb181ec56..32872284ebae5 100644 --- a/components/hubspot/sources/new-contact-added-to-list/new-contact-added-to-list.mjs +++ b/components/hubspot/sources/new-contact-added-to-list/new-contact-added-to-list.mjs @@ -11,7 +11,7 @@ export default { name: "New Contact Added to List", description: "Emit new event when a contact is added to a HubSpot list. [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/lists#get-%2Fcrm%2Fv3%2Flists%2F%7Blistid%7D%2Fmemberships%2Fjoin-order)", - version: "0.0.10", + version: "0.0.1", type: "source", dedupe: "unique", props: { @@ -44,13 +44,14 @@ export default { }, methods: { ...common.methods, + _getKey(listId) { + return `list_${listId}_last_timestamp`; + }, _getLastMembershipTimestamp(listId) { - const key = `list_${listId}_last_timestamp`; - return this.db.get(key); + return this.db.get(this._getKey(listId)); }, _setLastMembershipTimestamp(listId, timestamp) { - const key = `list_${listId}_last_timestamp`; - this.db.set(key, timestamp); + this.db.set(this._getKey(listId), timestamp); }, getTs() { return Date.now(); @@ -78,24 +79,41 @@ export default { ...properties, ]; + const chunks = []; + const chunkSize = 100; + for (let i = 0; i < contactIds.length; i += chunkSize) { + chunks.push(contactIds.slice(i, i + chunkSize)); + } + + const contactMap = {}; + try { - const { results } = await this.hubspot.batchGetObjects({ - objectType: "contacts", - data: { - inputs: contactIds.map((id) => ({ - id, - })), - properties: allProperties, - }, - }); - - const contactMap = {}; - results.forEach((contact) => { - contactMap[contact.id] = contact; - }); + for (const chunk of chunks) { + try { + const { results } = await this.hubspot.batchGetObjects({ + objectType: "contacts", + data: { + inputs: chunk.map((id) => ({ + id, + })), + properties: allProperties, + }, + }); + + results.forEach((contact) => { + contactMap[contact.id] = contact; + }); + } catch (error) { + console.warn( + `Error fetching contact details for chunk of ${chunk.length} contacts:`, + error, + ); + } + } + return contactMap; } catch (error) { - console.warn("Error fetching contact details:", error); + console.warn("Error processing contact details:", error); return {}; } }, @@ -126,16 +144,21 @@ export default { params, }); - if (!results || results.length === 0) { + if (!results) { + console.warn( + `No results returned from API for list ${listId} - possible API issue`, + ); + break; + } + + if (results.length === 0) { break; } for (const membership of results) { const { membershipTimestamp } = membership; - if ( - new Date(membershipTimestamp) > new Date(lastMembershipTimestamp) - ) { + if (membershipTimestamp > lastMembershipTimestamp) { newMemberships.push({ membership, listInfo, @@ -143,8 +166,7 @@ export default { if ( !latestMembershipTimestamp || - new Date(membershipTimestamp) > - new Date(latestMembershipTimestamp) + membershipTimestamp > latestMembershipTimestamp ) { latestMembershipTimestamp = membershipTimestamp; } @@ -168,7 +190,10 @@ export default { return newMemberships; }, async processResults() { - const { listId } = this; + const { + listId, + listInfo: { name }, + } = this; if (!listId) { console.warn("No list selected to monitor"); @@ -177,7 +202,7 @@ export default { const listInfo = { listId, - name: `List ${listId}`, + name: `List ${name}`, }; try { @@ -203,7 +228,7 @@ export default { contactId: membership.recordId, contact: contactDetail, membership, - addedAt: new Date().toISOString(), + addedAt: membership.membershipTimestamp, }; const meta = this.generateMeta(membership, listInfo); From 682d46b92fd83271c8c5ac94d35dfa6b4360cbc8 Mon Sep 17 00:00:00 2001 From: choeqq Date: Mon, 8 Sep 2025 08:53:59 +0200 Subject: [PATCH 8/9] cr 2 --- .../add-contact-to-list.mjs | 11 ++- .../batch-create-companies.mjs | 23 +++-- .../batch-create-or-update-contact.mjs | 35 ++++--- .../batch-update-companies.mjs | 23 +++-- .../batch-upsert-companies.mjs | 15 ++- .../actions/clone-email/clone-email.mjs | 5 +- .../clone-site-page/clone-site-page.mjs | 10 +- .../create-associations.mjs | 37 +++++--- .../create-communication.mjs | 17 +++- .../actions/create-company/create-company.mjs | 5 +- .../create-contact-workflow.mjs | 40 +++++--- .../create-custom-object.mjs | 5 +- .../actions/create-deal/create-deal.mjs | 13 ++- .../actions/create-email/create-email.mjs | 20 ++-- .../create-engagement/create-engagement.mjs | 27 ++++-- .../actions/create-form/create-form.mjs | 95 +++++++++++-------- .../create-landing-page.mjs | 10 +- .../actions/create-lead/create-lead.mjs | 8 +- .../actions/create-meeting/create-meeting.mjs | 20 ++-- .../actions/create-note/create-note.mjs | 24 +++-- .../create-or-update-contact.mjs | 8 +- .../actions/create-page/create-page.mjs | 5 +- .../actions/create-task/create-task.mjs | 24 +++-- .../actions/create-ticket/create-ticket.mjs | 13 ++- .../enroll-contact-into-workflow.mjs | 8 +- .../get-associated-emails.mjs | 5 +- .../get-associated-meetings.mjs | 60 ++++++++---- .../actions/get-company/get-company.mjs | 5 +- .../actions/get-contact/get-contact.mjs | 5 +- .../hubspot/actions/get-deal/get-deal.mjs | 5 +- .../get-file-public-url.mjs | 13 +-- .../actions/get-meeting/get-meeting.mjs | 5 +- .../get-subscription-preferences.mjs | 10 +- .../list-blog-posts/list-blog-posts.mjs | 35 ++++--- .../actions/list-campaigns/list-campaigns.mjs | 20 ++-- .../hubspot/actions/list-forms/list-forms.mjs | 17 ++-- .../list-marketing-emails.mjs | 35 ++++--- .../list-marketing-events.mjs | 17 ++-- .../hubspot/actions/list-pages/list-pages.mjs | 35 ++++--- .../actions/list-templates/list-templates.mjs | 17 ++-- .../hubspot/actions/search-crm/search-crm.mjs | 68 ++++++++----- .../actions/update-company/update-company.mjs | 5 +- .../actions/update-contact/update-contact.mjs | 5 +- .../update-custom-object.mjs | 5 +- .../actions/update-deal/update-deal.mjs | 5 +- .../update-fields-on-the-form.mjs | 93 ++++++++++-------- .../update-landing-page.mjs | 10 +- .../actions/update-lead/update-lead.mjs | 5 +- .../actions/update-page/update-page.mjs | 5 +- .../delete-blog-article.mjs | 5 +- .../new-company-property-change.mjs | 17 ++-- .../new-contact-added-to-list.mjs | 45 ++++++--- .../new-contact-property-change.mjs | 17 ++-- .../new-custom-object-property-change.mjs | 17 ++-- .../new-deal-in-stage/new-deal-in-stage.mjs | 9 +- .../new-deal-property-change.mjs | 14 ++- .../new-email-event/new-email-event.mjs | 6 +- .../new-email-subscriptions-timeline.mjs | 5 +- .../sources/new-engagement/new-engagement.mjs | 8 +- .../hubspot/sources/new-event/new-event.mjs | 15 +-- .../new-form-submission.mjs | 2 +- .../hubspot/sources/new-note/new-note.mjs | 14 ++- .../new-or-updated-blog-article.mjs | 5 +- .../new-or-updated-company.mjs | 5 +- .../new-or-updated-contact.mjs | 2 +- .../new-or-updated-crm-object.mjs | 19 ++-- .../new-or-updated-custom-object.mjs | 5 +- .../new-or-updated-deal.mjs | 5 +- .../new-or-updated-line-item.mjs | 8 +- .../new-or-updated-product.mjs | 8 +- .../new-social-media-message.mjs | 8 +- .../hubspot/sources/new-task/new-task.mjs | 14 ++- .../new-ticket-property-change.mjs | 17 ++-- .../hubspot/sources/new-ticket/new-ticket.mjs | 8 +- 74 files changed, 803 insertions(+), 461 deletions(-) diff --git a/components/hubspot/actions/add-contact-to-list/add-contact-to-list.mjs b/components/hubspot/actions/add-contact-to-list/add-contact-to-list.mjs index b663b4f5dfdd2..4187d75cd5373 100644 --- a/components/hubspot/actions/add-contact-to-list/add-contact-to-list.mjs +++ b/components/hubspot/actions/add-contact-to-list/add-contact-to-list.mjs @@ -3,8 +3,9 @@ import hubspot from "../../hubspot.app.mjs"; export default { key: "hubspot-add-contact-to-list", name: "Add Contact to List", - description: "Adds a contact to a specific static list. [See the documentation](https://legacydocs.hubspot.com/docs/methods/lists/add_contact_to_list)", - version: "0.0.21", + description: + "Adds a contact to a specific static list. [See the documentation](https://legacydocs.hubspot.com/docs/methods/lists/add_contact_to_list)", + version: "0.0.22", type: "action", props: { hubspot, @@ -18,7 +19,8 @@ export default { ], type: "string", label: "List", - description: "The list which the contact will be added to. Only static lists are shown here, as dynamic lists cannot be manually added to.", + description: + "The list which the contact will be added to. Only static lists are shown here, as dynamic lists cannot be manually added to.", }, contactEmail: { propDefinition: [ @@ -30,8 +32,7 @@ export default { }, async run({ $ }) { const { - list, - contactEmail, + list, contactEmail, } = this; const response = await this.hubspot.addContactsToList({ $, diff --git a/components/hubspot/actions/batch-create-companies/batch-create-companies.mjs b/components/hubspot/actions/batch-create-companies/batch-create-companies.mjs index b5e123c0437cf..1e1f1dc0e5fdc 100644 --- a/components/hubspot/actions/batch-create-companies/batch-create-companies.mjs +++ b/components/hubspot/actions/batch-create-companies/batch-create-companies.mjs @@ -6,15 +6,17 @@ import hubspot from "../../hubspot.app.mjs"; export default { key: "hubspot-batch-create-companies", name: "Batch Create Companies", - description: "Create a batch of companies in Hubspot. [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/objects/companies#post-%2Fcrm%2Fv3%2Fobjects%2Fcompanies%2Fbatch%2Fcreate)", - version: "0.0.4", + description: + "Create a batch of companies in Hubspot. [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/objects/companies#post-%2Fcrm%2Fv3%2Fobjects%2Fcompanies%2Fbatch%2Fcreate)", + version: "0.0.5", type: "action", props: { hubspot, inputs: { type: "string[]", label: "Inputs (Companies)", - description: "Provide a **list of companies** to be created. [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/objects/companies#post-%2Fcrm%2Fv3%2Fobjects%2Fcompanies%2Fbatch%2Fcreate) for more information. Example: `[ { \"properties\": { \"name\": \"CompanyName\"} } ]`", + description: + "Provide a **list of companies** to be created. [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/objects/companies#post-%2Fcrm%2Fv3%2Fobjects%2Fcompanies%2Fbatch%2Fcreate) for more information. Example: `[ { \"properties\": { \"name\": \"CompanyName\"} } ]`", }, }, methods: { @@ -35,12 +37,19 @@ export default { inputs: parseObject(this.inputs), }, }); - $.export("$summary", `Created ${response.results.length} compan${response.results.length === 1 - ? "y" - : "ies"}`); + $.export( + "$summary", + `Created ${response.results.length} compan${ + response.results.length === 1 + ? "y" + : "ies" + }`, + ); return response; } catch (error) { - const message = JSON.parse((JSON.parse(error.message).message).split(/:(.+)/)[1])[0].message; + const message = JSON.parse( + JSON.parse(error.message).message.split(/:(.+)/)[1], + )[0].message; throw new ConfigurationError(message.split(/:(.+)/)[0]); } }, diff --git a/components/hubspot/actions/batch-create-or-update-contact/batch-create-or-update-contact.mjs b/components/hubspot/actions/batch-create-or-update-contact/batch-create-or-update-contact.mjs index dfc27e663cb14..591db0420a509 100644 --- a/components/hubspot/actions/batch-create-or-update-contact/batch-create-or-update-contact.mjs +++ b/components/hubspot/actions/batch-create-or-update-contact/batch-create-or-update-contact.mjs @@ -3,23 +3,28 @@ import hubspot from "../../hubspot.app.mjs"; export default { key: "hubspot-batch-create-or-update-contact", name: "Batch Create or Update Contact", - description: "Create or update a batch of contacts by its ID or email. [See the documentation](https://developers.hubspot.com/docs/api/crm/contacts)", - version: "0.0.18", + description: + "Create or update a batch of contacts by its ID or email. [See the documentation](https://developers.hubspot.com/docs/api/crm/contacts)", + version: "0.0.19", type: "action", props: { hubspot, contacts: { label: "Contacts Array", - description: "Provide a **list of contacts** to be created or updated. If the provided contact has the prop ID or if the provided email already exists, this action will attempt to update it.\n\n**Expected format for create:** `{ \"company\": \"Biglytics\", \"email\": \"bcooper@biglytics.net\", \"firstname\": \"Bryan\", \"lastname\": \"Cooper\", \"phone\": \"(877) 929-0687\", \"website\": \"biglytics.net\" }` \n\n**Expected format for update:** `{ \"id\": \"101\", \"company\": \"Biglytics\", \"email\": \"bcooper@biglytics.net\", \"firstname\": \"Bryan\", \"lastname\": \"Cooper\", \"phone\": \"(877) 929-0687\", \"website\": \"biglytics.net\" }`", + description: + "Provide a **list of contacts** to be created or updated. If the provided contact has the prop ID or if the provided email already exists, this action will attempt to update it.\n\n**Expected format for create:** `{ \"company\": \"Biglytics\", \"email\": \"bcooper@biglytics.net\", \"firstname\": \"Bryan\", \"lastname\": \"Cooper\", \"phone\": \"(877) 929-0687\", \"website\": \"biglytics.net\" }` \n\n**Expected format for update:** `{ \"id\": \"101\", \"company\": \"Biglytics\", \"email\": \"bcooper@biglytics.net\", \"firstname\": \"Bryan\", \"lastname\": \"Cooper\", \"phone\": \"(877) 929-0687\", \"website\": \"biglytics.net\" }`", type: "string[]", }, }, methods: { parseContactArray(contacts) { - if (typeof (contacts) === "string") { + if (typeof contacts === "string") { contacts = JSON.parse(contacts); - } - else if (Array.isArray(contacts) && contacts.length > 0 && typeof (contacts[0]) === "string") { + } else if ( + Array.isArray(contacts) && + contacts.length > 0 && + typeof contacts[0] === "string" + ) { contacts = contacts.map((contact) => JSON.parse(contact)); } return contacts; @@ -40,7 +45,8 @@ export default { }, }); const updateEmails = results?.map(({ properties }) => properties.email); - const insertProperties = contacts.filter(({ email }) => !updateEmails.includes(email)) + const insertProperties = contacts + .filter(({ email }) => !updateEmails.includes(email)) .map((properties) => ({ properties, })); @@ -48,7 +54,9 @@ export default { for (const contact of results) { updateProperties.push({ id: contact.id, - properties: contacts.find(({ email }) => contact.properties.email === email), + properties: contacts.find( + ({ email }) => contact.properties.email === email, + ), }); } return { @@ -62,9 +70,11 @@ export default { const { insertProperties, updateProperties, - } = await this.searchExistingContactProperties(contacts, $); + } = + await this.searchExistingContactProperties(contacts, $); - const updatePropertiesWithId = contacts.filter((contact) => (Object.prototype.hasOwnProperty.call(contact, "id"))) + const updatePropertiesWithId = contacts + .filter((contact) => Object.prototype.hasOwnProperty.call(contact, "id")) .map(({ id, ...properties }) => ({ @@ -90,7 +100,10 @@ export default { }, }); - $.export("$summary", `Successfully created ${insertProperties.length} and updated ${updateProperties.length} contacts`); + $.export( + "$summary", + `Successfully created ${insertProperties.length} and updated ${updateProperties.length} contacts`, + ); return response; }, diff --git a/components/hubspot/actions/batch-update-companies/batch-update-companies.mjs b/components/hubspot/actions/batch-update-companies/batch-update-companies.mjs index ffc6d9ad3d0a8..b10cd0d22d81d 100644 --- a/components/hubspot/actions/batch-update-companies/batch-update-companies.mjs +++ b/components/hubspot/actions/batch-update-companies/batch-update-companies.mjs @@ -6,15 +6,17 @@ import hubspot from "../../hubspot.app.mjs"; export default { key: "hubspot-batch-update-companies", name: "Batch Update Companies", - description: "Update a batch of companies in Hubspot. [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/objects/companies#post-%2Fcrm%2Fv3%2Fobjects%2Fcompanies%2Fbatch%2Fupdate)", - version: "0.0.4", + description: + "Update a batch of companies in Hubspot. [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/objects/companies#post-%2Fcrm%2Fv3%2Fobjects%2Fcompanies%2Fbatch%2Fupdate)", + version: "0.0.5", type: "action", props: { hubspot, inputs: { type: "string[]", label: "Inputs (Companies)", - description: "Provide a **list of companies** to be updated. [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/objects/companies#post-%2Fcrm%2Fv3%2Fobjects%2Fcompanies%2Fbatch%2Fupdate) for more information. Example: `[ { \"id\": \"123\", \"properties\": { \"name\": \"CompanyName\"} } ]`", + description: + "Provide a **list of companies** to be updated. [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/objects/companies#post-%2Fcrm%2Fv3%2Fobjects%2Fcompanies%2Fbatch%2Fupdate) for more information. Example: `[ { \"id\": \"123\", \"properties\": { \"name\": \"CompanyName\"} } ]`", }, }, methods: { @@ -35,12 +37,19 @@ export default { inputs: parseObject(this.inputs), }, }); - $.export("$summary", `Updated ${response.results.length} compan${response.results.length === 1 - ? "y" - : "ies"}`); + $.export( + "$summary", + `Updated ${response.results.length} compan${ + response.results.length === 1 + ? "y" + : "ies" + }`, + ); return response; } catch (error) { - const message = JSON.parse((JSON.parse(error.message).message).split(/:(.+)/)[1])[0].message; + const message = JSON.parse( + JSON.parse(error.message).message.split(/:(.+)/)[1], + )[0].message; throw new ConfigurationError(message.split(/:(.+)/)[0]); } }, diff --git a/components/hubspot/actions/batch-upsert-companies/batch-upsert-companies.mjs b/components/hubspot/actions/batch-upsert-companies/batch-upsert-companies.mjs index 1acdfec42c08e..26a88231567cb 100644 --- a/components/hubspot/actions/batch-upsert-companies/batch-upsert-companies.mjs +++ b/components/hubspot/actions/batch-upsert-companies/batch-upsert-companies.mjs @@ -6,20 +6,23 @@ import hubspot from "../../hubspot.app.mjs"; export default { key: "hubspot-batch-upsert-companies", name: "Batch Upsert Companies", - description: "Upsert a batch of companies in Hubspot. [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/objects/companies#post-%2Fcrm%2Fv3%2Fobjects%2Fcompanies%2Fbatch%2Fupsert)", - version: "0.0.4", + description: + "Upsert a batch of companies in Hubspot. [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/objects/companies#post-%2Fcrm%2Fv3%2Fobjects%2Fcompanies%2Fbatch%2Fupsert)", + version: "0.0.5", type: "action", props: { hubspot, infoAlert: { type: "alert", alertType: "info", - content: "Create or update companies identified by a unique property value as specified by the `idProperty` query parameter. `idProperty` query param refers to a property whose values are unique for the object. To manage properties in Hubspot, navigate to your Settings -> Data Management -> Properties.", + content: + "Create or update companies identified by a unique property value as specified by the `idProperty` query parameter. `idProperty` query param refers to a property whose values are unique for the object. To manage properties in Hubspot, navigate to your Settings -> Data Management -> Properties.", }, inputs: { type: "string[]", label: "Inputs (Companies)", - description: "Provide a **list of companies** to be upserted. [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/objects/companies#post-%2Fcrm%2Fv3%2Fobjects%2Fcompanies%2Fbatch%2Fupsert) for more information. Example: `[ { \"idProperty\": \"unique_property\", \"id\": \"123\", \"properties\": { \"name\": \"CompanyName\" } } ]`", + description: + "Provide a **list of companies** to be upserted. [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/objects/companies#post-%2Fcrm%2Fv3%2Fobjects%2Fcompanies%2Fbatch%2Fupsert) for more information. Example: `[ { \"idProperty\": \"unique_property\", \"id\": \"123\", \"properties\": { \"name\": \"CompanyName\" } } ]`", }, }, methods: { @@ -43,7 +46,9 @@ export default { $.export("$summary", `Upserted ${response.results.length} companies`); return response; } catch (error) { - const message = JSON.parse((JSON.parse(error.message).message).split(/:(.+)/)[1])[0].message; + const message = JSON.parse( + JSON.parse(error.message).message.split(/:(.+)/)[1], + )[0].message; throw new ConfigurationError(message.split(/:(.+)/)[0]); } }, diff --git a/components/hubspot/actions/clone-email/clone-email.mjs b/components/hubspot/actions/clone-email/clone-email.mjs index 8730acce007a6..43e105cbcbf0e 100644 --- a/components/hubspot/actions/clone-email/clone-email.mjs +++ b/components/hubspot/actions/clone-email/clone-email.mjs @@ -4,8 +4,9 @@ import hubspot from "../../hubspot.app.mjs"; export default { key: "hubspot-clone-email", name: "Clone Marketing Email", - description: "Clone a marketing email in HubSpot. [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/emails/marketing-emails#post-%2Fmarketing%2Fv3%2Femails%2Fclone)", - version: "0.0.2", + description: + "Clone a marketing email in HubSpot. [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/emails/marketing-emails#post-%2Fmarketing%2Fv3%2Femails%2Fclone)", + version: "0.0.3", type: "action", props: { hubspot, diff --git a/components/hubspot/actions/clone-site-page/clone-site-page.mjs b/components/hubspot/actions/clone-site-page/clone-site-page.mjs index c1940d7f22ed0..8469d6d17bde1 100644 --- a/components/hubspot/actions/clone-site-page/clone-site-page.mjs +++ b/components/hubspot/actions/clone-site-page/clone-site-page.mjs @@ -3,8 +3,9 @@ import hubspot from "../../hubspot.app.mjs"; export default { key: "hubspot-clone-site-page", name: "Clone Site Page", - description: "Clone a site page in Hubspot. [See the documentation](https://developers.hubspot.com/docs/reference/api/cms/pages#post-%2Fcms%2Fv3%2Fpages%2Fsite-pages%2Fclone)", - version: "0.0.2", + description: + "Clone a site page in Hubspot. [See the documentation](https://developers.hubspot.com/docs/reference/api/cms/pages#post-%2Fcms%2Fv3%2Fpages%2Fsite-pages%2Fclone)", + version: "0.0.3", type: "action", props: { hubspot, @@ -29,7 +30,10 @@ export default { }, }); - $.export("$summary", `Successfully cloned site page with ID: ${response.id}`); + $.export( + "$summary", + `Successfully cloned site page with ID: ${response.id}`, + ); return response; }, diff --git a/components/hubspot/actions/create-associations/create-associations.mjs b/components/hubspot/actions/create-associations/create-associations.mjs index eca25331dfa41..02c7587c74818 100644 --- a/components/hubspot/actions/create-associations/create-associations.mjs +++ b/components/hubspot/actions/create-associations/create-associations.mjs @@ -4,8 +4,9 @@ import hubspot from "../../hubspot.app.mjs"; export default { key: "hubspot-create-associations", name: "Create Associations", - description: "Create associations between objects. [See the documentation](https://developers.hubspot.com/docs/api/crm/associations#endpoint?spec=POST-/crm/v3/associations/{fromObjectType}/{toObjectType}/batch/create)", - version: "1.0.7", + description: + "Create associations between objects. [See the documentation](https://developers.hubspot.com/docs/api/crm/associations#endpoint?spec=POST-/crm/v3/associations/{fromObjectType}/{toObjectType}/batch/create)", + version: "1.0.8", type: "action", props: { hubspot, @@ -41,7 +42,8 @@ export default { }), ], label: "To Object Type", - description: "Type of the objects the from object is being associated with", + description: + "Type of the objects the from object is being associated with", }, associationType: { propDefinition: [ @@ -62,12 +64,16 @@ export default { }), ], label: "To Objects", - description: "Id's of the objects the from object is being associated with", + description: + "Id's of the objects the from object is being associated with", }, }, methods: { async getAssociationCategory({ - $, fromObjectType, toObjectType, associationType, + $, + fromObjectType, + toObjectType, + associationType, }) { const { results } = await this.hubspot.getAssociationTypes({ $, @@ -75,17 +81,17 @@ export default { toObjectType, associationType, }); - const association = results.find(({ typeId }) => typeId === this.associationType); + const association = results.find( + ({ typeId }) => typeId === this.associationType, + ); return association.category; }, }, async run({ $ }) { const { - fromObjectType, - fromObjectId, - toObjectType, - associationType, - } = this; + fromObjectType, fromObjectId, toObjectType, associationType, + } = + this; let toObjectIds; if (Array.isArray(this.toObjectIds)) { toObjectIds = this.toObjectIds; @@ -125,9 +131,12 @@ export default { }, }); const l = response.results.length; - $.export("$summary", `Successfully created ${l} association${l === 1 - ? "" - : "s"}`); + $.export( + "$summary", + `Successfully created ${l} association${l === 1 + ? "" + : "s"}`, + ); return response; }, }; diff --git a/components/hubspot/actions/create-communication/create-communication.mjs b/components/hubspot/actions/create-communication/create-communication.mjs index b3031f8be3d7e..1c9815e41c653 100644 --- a/components/hubspot/actions/create-communication/create-communication.mjs +++ b/components/hubspot/actions/create-communication/create-communication.mjs @@ -7,8 +7,9 @@ export default { ...common, key: "hubspot-create-communication", name: "Create Communication", - description: "Create a WhatsApp, LinkedIn, or SMS message. [See the documentation](https://developers.hubspot.com/beta-docs/reference/api/crm/engagements/communications/v3#post-%2Fcrm%2Fv3%2Fobjects%2Fcommunications)", - version: "0.0.14", + description: + "Create a WhatsApp, LinkedIn, or SMS message. [See the documentation](https://developers.hubspot.com/beta-docs/reference/api/crm/engagements/communications/v3#post-%2Fcrm%2Fv3%2Fobjects%2Fcommunications)", + version: "0.0.15", type: "action", props: { ...appProp.props, @@ -42,7 +43,8 @@ export default { toObjectType: c.toObjectType, }), ], - description: "A unique identifier to indicate the association type between the communication and the other object", + description: + "A unique identifier to indicate the association type between the communication and the other object", optional: true, }, objectProperties: { @@ -70,7 +72,9 @@ export default { } = this; if ((toObjectId && !associationType) || (!toObjectId && associationType)) { - throw new ConfigurationError("Both `toObjectId` and `associationType` must be entered"); + throw new ConfigurationError( + "Both `toObjectId` and `associationType` must be entered", + ); } const properties = objectProperties @@ -105,7 +109,10 @@ export default { }, }); - $.export("$summary", `Successfully created communication with ID ${response.id}`); + $.export( + "$summary", + `Successfully created communication with ID ${response.id}`, + ); return response; }, }; diff --git a/components/hubspot/actions/create-company/create-company.mjs b/components/hubspot/actions/create-company/create-company.mjs index caef7e034bbf6..a70d345d9a6f8 100644 --- a/components/hubspot/actions/create-company/create-company.mjs +++ b/components/hubspot/actions/create-company/create-company.mjs @@ -5,8 +5,9 @@ export default { ...common, key: "hubspot-create-company", name: "Create Company", - description: "Create a company in Hubspot. [See the documentation](https://developers.hubspot.com/docs/api/crm/companies#endpoint?spec=POST-/crm/v3/objects/companies)", - version: "0.0.25", + description: + "Create a company in Hubspot. [See the documentation](https://developers.hubspot.com/docs/api/crm/companies#endpoint?spec=POST-/crm/v3/objects/companies)", + version: "0.0.26", type: "action", methods: { ...common.methods, diff --git a/components/hubspot/actions/create-contact-workflow/create-contact-workflow.mjs b/components/hubspot/actions/create-contact-workflow/create-contact-workflow.mjs index 199ba4d91a234..a7be2e848c94e 100644 --- a/components/hubspot/actions/create-contact-workflow/create-contact-workflow.mjs +++ b/components/hubspot/actions/create-contact-workflow/create-contact-workflow.mjs @@ -4,8 +4,9 @@ import hubspot from "../../hubspot.app.mjs"; export default { key: "hubspot-create-contact-workflow", name: "Create Contact Workflow", - description: "Create a contact workflow in Hubspot. [See the documentation](https://developers.hubspot.com/docs/reference/api/automation/create-manage-workflows#post-%2Fautomation%2Fv4%2Fflows)", - version: "0.0.2", + description: + "Create a contact workflow in Hubspot. [See the documentation](https://developers.hubspot.com/docs/reference/api/automation/create-manage-workflows#post-%2Fautomation%2Fv4%2Fflows)", + version: "0.0.4", type: "action", props: { hubspot, @@ -73,61 +74,71 @@ export default { enrollmentCriteria: { type: "object", label: "Enrollment Criteria", - description: "An object with the enrollment criteria data for the contact workflow. [See the documentation](https://developers.hubspot.com/changelog/enrollment-criteria-in-contact-workflows) for more information.", + description: + "An object with the enrollment criteria data for the contact workflow. [See the documentation](https://developers.hubspot.com/changelog/enrollment-criteria-in-contact-workflows) for more information.", optional: true, }, enrollmentSchedule: { type: "object", label: "Enrollment Schedule", - description: "An object with the enrollment schedule data for the contact workflow. [See the documentation](https://developers.hubspot.com/changelog/enrollment-schedule-in-contact-workflows) for more information.", + description: + "An object with the enrollment schedule data for the contact workflow. [See the documentation](https://developers.hubspot.com/changelog/enrollment-schedule-in-contact-workflows) for more information.", optional: true, }, timeWindows: { type: "string[]", label: "Time Windows", - description: "A list of time windows for the contact workflow. [See the documentation](https://developers.hubspot.com/changelog/time-windows-in-contact-workflows) for more information.", + description: + "A list of time windows for the contact workflow. [See the documentation](https://developers.hubspot.com/changelog/time-windows-in-contact-workflows) for more information.", optional: true, }, blockedDates: { type: "string[]", label: "Blocked Dates", - description: "A list of blocked dates for the contact workflow. [See the documentation](https://developers.hubspot.com/changelog/blocked-dates-in-contact-workflows) for more information.", + description: + "A list of blocked dates for the contact workflow. [See the documentation](https://developers.hubspot.com/changelog/blocked-dates-in-contact-workflows) for more information.", optional: true, }, customProperties: { type: "object", label: "Custom Properties", - description: "An object with the custom properties data for the contact workflow. [See the documentation](https://developers.hubspot.com/changelog/custom-properties-in-contact-workflows) for more information.", + description: + "An object with the custom properties data for the contact workflow. [See the documentation](https://developers.hubspot.com/changelog/custom-properties-in-contact-workflows) for more information.", optional: true, }, dataSources: { type: "string[]", label: "Data Sources", - description: "A list of data sources for the contact workflow. [See the documentation](https://developers.hubspot.com/changelog/data-sources-in-contact-workflows) for more information.", + description: + "A list of data sources for the contact workflow. [See the documentation](https://developers.hubspot.com/changelog/data-sources-in-contact-workflows) for more information.", optional: true, }, suppressionListIds: { type: "string[]", label: "Suppression List IDs", - description: "A list of suppression list IDs for the contact workflow. [See the documentation](https://developers.hubspot.com/changelog/suppression-list-ids-in-contact-workflows) for more information.", + description: + "A list of suppression list IDs for the contact workflow. [See the documentation](https://developers.hubspot.com/changelog/suppression-list-ids-in-contact-workflows) for more information.", optional: true, }, goalFilterBranch: { type: "object", label: "Goal Filter Branch", - description: "An object with the goal filter branch data for the contact workflow. [See the documentation](https://developers.hubspot.com/changelog/goal-filter-branch-in-contact-workflows) for more information.", + description: + "An object with the goal filter branch data for the contact workflow. [See the documentation](https://developers.hubspot.com/changelog/goal-filter-branch-in-contact-workflows) for more information.", optional: true, }, eventAnchor: { type: "object", label: "Event Anchor", - description: "An object with the event anchor data for the contact workflow. [See the documentation](https://developers.hubspot.com/changelog/event-anchor-in-contact-workflows) for more information.", + description: + "An object with the event anchor data for the contact workflow. [See the documentation](https://developers.hubspot.com/changelog/event-anchor-in-contact-workflows) for more information.", optional: true, }, unEnrollmentSetting: { type: "object", label: "Un Enrollment Setting", - description: "An object with the un enrollment setting data for the contact workflow. [See the documentation](https://developers.hubspot.com/changelog/un-enrollment-setting-in-contact-workflows) for more information.", + description: + "An object with the un enrollment setting data for the contact workflow. [See the documentation](https://developers.hubspot.com/changelog/un-enrollment-setting-in-contact-workflows) for more information.", optional: true, }, }, @@ -157,7 +168,10 @@ export default { }, }); - $.export("$summary", `Successfully created contact workflow with ID: ${response.id}`); + $.export( + "$summary", + `Successfully created contact workflow with ID: ${response.id}`, + ); return response; }, diff --git a/components/hubspot/actions/create-custom-object/create-custom-object.mjs b/components/hubspot/actions/create-custom-object/create-custom-object.mjs index dd856304c043c..a7160732e223e 100644 --- a/components/hubspot/actions/create-custom-object/create-custom-object.mjs +++ b/components/hubspot/actions/create-custom-object/create-custom-object.mjs @@ -5,8 +5,9 @@ export default { ...common, key: "hubspot-create-custom-object", name: "Create Custom Object", - description: "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)", - version: "1.0.7", + description: + "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)", + version: "1.0.8", type: "action", props: { ...appProp.props, diff --git a/components/hubspot/actions/create-deal/create-deal.mjs b/components/hubspot/actions/create-deal/create-deal.mjs index 2475e97bc77fe..4f576d5d3fd3a 100644 --- a/components/hubspot/actions/create-deal/create-deal.mjs +++ b/components/hubspot/actions/create-deal/create-deal.mjs @@ -5,8 +5,9 @@ export default { ...common, key: "hubspot-create-deal", name: "Create Deal", - description: "Create a deal in Hubspot. [See the documentation](https://developers.hubspot.com/docs/api/crm/deals#endpoint?spec=POST-/crm/v3/objects/deals)", - version: "0.0.25", + description: + "Create a deal in Hubspot. [See the documentation](https://developers.hubspot.com/docs/api/crm/deals#endpoint?spec=POST-/crm/v3/objects/deals)", + version: "0.0.26", type: "action", props: { ...common.props, @@ -40,9 +41,11 @@ export default { return OBJECT_TYPE.DEAL; }, isDefaultProperty(property) { - return property.name === "dealname" - || property.name === "pipeline" - || property.name === "dealstage"; + return ( + property.name === "dealname" || + property.name === "pipeline" || + property.name === "dealstage" + ); }, }, }; diff --git a/components/hubspot/actions/create-email/create-email.mjs b/components/hubspot/actions/create-email/create-email.mjs index 6a8b8839e1772..cc78355ee6bba 100644 --- a/components/hubspot/actions/create-email/create-email.mjs +++ b/components/hubspot/actions/create-email/create-email.mjs @@ -8,8 +8,9 @@ import common from "../common/common-get-object.mjs"; export default { key: "hubspot-create-email", name: "Create Marketing Email", - description: "Create a marketing email in Hubspot. [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/emails/marketing-emails#post-%2Fmarketing%2Fv3%2Femails%2F)", - version: "0.0.2", + description: + "Create a marketing email in Hubspot. [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/emails/marketing-emails#post-%2Fmarketing%2Fv3%2Femails%2F)", + version: "0.0.3", type: "action", props: { hubspot, @@ -78,7 +79,8 @@ export default { rssData: { type: "object", label: "RSS Data", - description: "An object with the RSS data for the email. [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/emails/marketing-emails#post-%2Fmarketing%2Fv3%2Femails%2F) for more information.", + description: + "An object with the RSS data for the email. [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/emails/marketing-emails#post-%2Fmarketing%2Fv3%2Femails%2F) for more information.", optional: true, }, subject: { @@ -90,7 +92,8 @@ export default { testing: { type: "object", label: "Testing", - description: "An object with the testing data for the email. [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/emails/marketing-emails#post-%2Fmarketing%2Fv3%2Femails%2F) for more information.", + description: + "An object with the testing data for the email. [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/emails/marketing-emails#post-%2Fmarketing%2Fv3%2Femails%2F) for more information.", optional: true, }, language: { @@ -103,19 +106,22 @@ export default { content: { type: "object", label: "Content", - description: "An object with the content data for the email. [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/emails/marketing-emails#post-%2Fmarketing%2Fv3%2Femails%2F) for more information.", + description: + "An object with the content data for the email. [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/emails/marketing-emails#post-%2Fmarketing%2Fv3%2Femails%2F) for more information.", optional: true, }, webversion: { type: "object", label: "Webversion", - description: "An object with the webversion data for the email. [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/emails/marketing-emails#post-%2Fmarketing%2Fv3%2Femails%2F) for more information.", + description: + "An object with the webversion data for the email. [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/emails/marketing-emails#post-%2Fmarketing%2Fv3%2Femails%2F) for more information.", optional: true, }, subscriptionDetails: { type: "object", label: "Subscription Details", - description: "An object with the subscription details for the email. [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/emails/marketing-emails#post-%2Fmarketing%2Fv3%2Femails%2F) for more information.", + description: + "An object with the subscription details for the email. [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/emails/marketing-emails#post-%2Fmarketing%2Fv3%2Femails%2F) for more information.", optional: true, }, sendOnPublish: { diff --git a/components/hubspot/actions/create-engagement/create-engagement.mjs b/components/hubspot/actions/create-engagement/create-engagement.mjs index 39655fa69dc1f..089c94adb3b74 100644 --- a/components/hubspot/actions/create-engagement/create-engagement.mjs +++ b/components/hubspot/actions/create-engagement/create-engagement.mjs @@ -1,6 +1,7 @@ import { ConfigurationError } from "@pipedream/platform"; import { - ASSOCIATION_CATEGORY, ENGAGEMENT_TYPE_OPTIONS, + ASSOCIATION_CATEGORY, + ENGAGEMENT_TYPE_OPTIONS, } from "../../common/constants.mjs"; import common from "../common/common-create.mjs"; @@ -8,8 +9,9 @@ export default { ...common, key: "hubspot-create-engagement", name: "Create Engagement", - description: "Create a new engagement for a contact. [See the documentation](https://developers.hubspot.com/docs/api/crm/engagements)", - version: "0.0.24", + description: + "Create a new engagement for a contact. [See the documentation](https://developers.hubspot.com/docs/api/crm/engagements)", + version: "0.0.25", type: "action", props: { ...common.props, @@ -50,7 +52,8 @@ export default { toObjectType: c.toObjectType, }), ], - description: "A unique identifier to indicate the association type between the task and the other object", + description: + "A unique identifier to indicate the association type between the task and the other object", optional: true, }, objectProperties: { @@ -65,7 +68,10 @@ export default { return this.engagementType; }, isRelevantProperty(property) { - return common.methods.isRelevantProperty(property) && !property.name.includes("hs_pipeline"); + return ( + common.methods.isRelevantProperty(property) && + !property.name.includes("hs_pipeline") + ); }, createEngagement(objectType, properties, associations, $) { return this.hubspot.createObject({ @@ -92,7 +98,9 @@ export default { } = this; if ((toObjectId && !associationType) || (!toObjectId && associationType)) { - throw new ConfigurationError("Both `toObjectId` and `associationType` must be entered"); + throw new ConfigurationError( + "Both `toObjectId` and `associationType` must be entered", + ); } const properties = objectProperties @@ -123,7 +131,12 @@ export default { properties.hs_task_reminders = Date.parse(properties.hs_task_reminders); } - const engagement = await this.createEngagement(objectType, properties, associations, $); + const engagement = await this.createEngagement( + objectType, + properties, + associations, + $, + ); const objectName = hubspot.getObjectTypeName(objectType); $.export("$summary", `Successfully created ${objectName} for the contact`); diff --git a/components/hubspot/actions/create-form/create-form.mjs b/components/hubspot/actions/create-form/create-form.mjs index 1ffe8ada1ed6d..4292abfb3de46 100644 --- a/components/hubspot/actions/create-form/create-form.mjs +++ b/components/hubspot/actions/create-form/create-form.mjs @@ -8,8 +8,9 @@ import hubspot from "../../hubspot.app.mjs"; export default { key: "hubspot-create-form", name: "Create Form", - description: "Create a form in HubSpot. [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/forms#post-%2Fmarketing%2Fv3%2Fforms%2F)", - version: "0.0.2", + description: + "Create a form in HubSpot. [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/forms#post-%2Fmarketing%2Fv3%2Fforms%2F)", + version: "0.0.3", type: "action", props: { hubspot, @@ -27,13 +28,15 @@ export default { fieldGroups: { type: "string[]", label: "Field Groups", - description: "A list for objects of group type and fields. **Format: `[{ \"groupType\": \"default_group\", \"richTextType\": \"text\", \"fields\": [ { \"objectTypeId\": \"0-1\", \"name\": \"email\", \"label\": \"Email\", \"required\": true, \"hidden\": false, \"fieldType\": \"email\", \"validation\": { \"blockedEmailDomains\": [], \"useDefaultBlockList\": false }}]}]`** [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/forms#post-%2Fmarketing%2Fv3%2Fforms%2F) for more information.", + description: + "A list for objects of group type and fields. **Format: `[{ \"groupType\": \"default_group\", \"richTextType\": \"text\", \"fields\": [ { \"objectTypeId\": \"0-1\", \"name\": \"email\", \"label\": \"Email\", \"required\": true, \"hidden\": false, \"fieldType\": \"email\", \"validation\": { \"blockedEmailDomains\": [], \"useDefaultBlockList\": false }}]}]`** [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/forms#post-%2Fmarketing%2Fv3%2Fforms%2F) for more information.", optional: true, }, createNewContactForNewEmail: { type: "boolean", label: "Create New Contact for New Email", - description: "Whether to create a new contact when a form is submitted with an email address that doesn't match any in your existing contacts records.", + description: + "Whether to create a new contact when a form is submitted with an email address that doesn't match any in your existing contacts records.", optional: true, }, editable: { @@ -45,20 +48,23 @@ export default { allowLinkToResetKnownValues: { type: "boolean", label: "Allow Link to Reset Known Values", - description: "Whether to add a reset link to the form. This removes any pre-populated content on the form and creates a new contact on submission.", + description: + "Whether to add a reset link to the form. This removes any pre-populated content on the form and creates a new contact on submission.", optional: true, }, lifecycleStages: { type: "string[]", label: "Lifecycle Stages", - description: "A list of objects of lifecycle stages. **Format: `[{ \"objectTypeId\": \"0-1\", \"value\": \"subscriber\" }]`** [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/forms#post-%2Fmarketing%2Fv3%2Fforms%2F) for more information.", + description: + "A list of objects of lifecycle stages. **Format: `[{ \"objectTypeId\": \"0-1\", \"value\": \"subscriber\" }]`** [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/forms#post-%2Fmarketing%2Fv3%2Fforms%2F) for more information.", optional: true, default: [], }, postSubmitActionType: { type: "string", label: "Post Submit Action Type", - description: "The action to take after submit. The default action is displaying a thank you message.", + description: + "The action to take after submit. The default action is displaying a thank you message.", options: [ "thank_you", "redirect_url", @@ -81,7 +87,8 @@ export default { prePopulateKnownValues: { type: "boolean", label: "Pre-populate Known Values", - description: "Whether contact fields should pre-populate with known information when a contact returns to your site.", + description: + "Whether contact fields should pre-populate with known information when a contact returns to your site.", optional: true, }, cloneable: { @@ -93,7 +100,8 @@ export default { notifyContactOwner: { type: "boolean", label: "Notify Contact Owner", - description: "Whether to send a notification email to the contact owner when a submission is received.", + description: + "Whether to send a notification email to the contact owner when a submission is received.", optional: true, }, recaptchaEnabled: { @@ -119,7 +127,8 @@ export default { renderRawHtml: { type: "boolean", label: "Render Raw HTML", - description: "Whether the form will render as raw HTML as opposed to inside an iFrame.", + description: + "Whether the form will render as raw HTML as opposed to inside an iFrame.", optional: true, }, cssClass: { @@ -131,7 +140,8 @@ export default { theme: { type: "string", label: "Theme", - description: "The theme used for styling the input fields. This will not apply if the form is added to a HubSpot CMS page.", + description: + "The theme used for styling the input fields. This will not apply if the form is added to a HubSpot CMS page.", options: [ "default_style", "canvas", @@ -240,7 +250,8 @@ export default { legalConsentOptionsObject: { type: "object", label: "Legal Consent Options Object", - description: "The object of legal consent options. **Format: `{\"subscriptionTypeIds\": [1,2,3], \"lawfulBasis\": \"lead\", \"privacy\": \"string\"}`** [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/forms#post-%2Fmarketing%2Fv3%2Fforms%2F) for more information.", + description: + "The object of legal consent options. **Format: `{\"subscriptionTypeIds\": [1,2,3], \"lawfulBasis\": \"lead\", \"privacy\": \"string\"}`** [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/forms#post-%2Fmarketing%2Fv3%2Fforms%2F) for more information.", optional: true, }, }, @@ -250,7 +261,9 @@ export default { (this.postSubmitActionType && !this.postSubmitActionValue) || (!this.postSubmitActionType && this.postSubmitActionValue) ) { - throw new ConfigurationError("Post Submit Action Type and Value must be provided together."); + throw new ConfigurationError( + "Post Submit Action Type and Value must be provided together.", + ); } if (this.language) { @@ -281,46 +294,48 @@ export default { configuration.notifyRecipients = parseObject(this.notifyRecipients); } if (this.createNewContactForNewEmail) { - configuration.createNewContactForNewEmail = this.createNewContactForNewEmail; + configuration.createNewContactForNewEmail = + this.createNewContactForNewEmail; } if (this.prePopulateKnownValues) { configuration.prePopulateKnownValues = this.prePopulateKnownValues; } if (this.allowLinkToResetKnownValues) { - configuration.allowLinkToResetKnownValues = this.allowLinkToResetKnownValues; + configuration.allowLinkToResetKnownValues = + this.allowLinkToResetKnownValues; } if (this.lifecycleStages) { configuration.lifecycleStages = parseObject(this.lifecycleStages); } const data = cleanObject({ - "formType": "hubspot", - "name": this.name, - "createdAt": new Date(Date.now()).toISOString(), - "archived": this.archived, - "fieldGroups": parseObject(this.fieldGroups), - "displayOptions": { - "renderRawHtml": this.renderRawHtml, - "cssClass": this.cssClass, - "theme": this.theme, - "submitButtonText": this.submitButtonText, - "style": { - "labelTextSize": this.labelTextSize, - "legalConsentTextColor": this.legalConsentTextColor, - "fontFamily": this.fontFamily, - "legalConsentTextSize": this.legalConsentTextSize, - "backgroundWidth": this.backgroundWidth, - "helpTextSize": this.helpTextSize, - "submitFontColor": this.submitFontColor, - "labelTextColor": this.labelTextColor, - "submitAlignment": this.submitAlignment, - "submitSize": this.submitSize, - "helpTextColor": this.helpTextColor, - "submitColor": this.submitColor, + formType: "hubspot", + name: this.name, + createdAt: new Date(Date.now()).toISOString(), + archived: this.archived, + fieldGroups: parseObject(this.fieldGroups), + displayOptions: { + renderRawHtml: this.renderRawHtml, + cssClass: this.cssClass, + theme: this.theme, + submitButtonText: this.submitButtonText, + style: { + labelTextSize: this.labelTextSize, + legalConsentTextColor: this.legalConsentTextColor, + fontFamily: this.fontFamily, + legalConsentTextSize: this.legalConsentTextSize, + backgroundWidth: this.backgroundWidth, + helpTextSize: this.helpTextSize, + submitFontColor: this.submitFontColor, + labelTextColor: this.labelTextColor, + submitAlignment: this.submitAlignment, + submitSize: this.submitSize, + helpTextColor: this.helpTextColor, + submitColor: this.submitColor, }, }, - "legalConsentOptions": { - "type": this.legalConsentOptionsType, + legalConsentOptions: { + type: this.legalConsentOptionsType, ...(this.legalConsentOptionsObject ? parseObject(this.legalConsentOptionsObject) : {}), diff --git a/components/hubspot/actions/create-landing-page/create-landing-page.mjs b/components/hubspot/actions/create-landing-page/create-landing-page.mjs index 1e969becab39a..aa42f774b5506 100644 --- a/components/hubspot/actions/create-landing-page/create-landing-page.mjs +++ b/components/hubspot/actions/create-landing-page/create-landing-page.mjs @@ -5,8 +5,9 @@ import commonPageProp from "../common/common-page-prop.mjs"; export default { key: "hubspot-create-landing-page", name: "Create Landing Page", - description: "Create a landing page in Hubspot. [See the documentation](https://developers.hubspot.com/docs/reference/api/cms/pages#post-%2Fcms%2Fv3%2Fpages%2Flanding-pages)", - version: "0.0.2", + description: + "Create a landing page in Hubspot. [See the documentation](https://developers.hubspot.com/docs/reference/api/cms/pages#post-%2Fcms%2Fv3%2Fpages%2Flanding-pages)", + version: "0.0.3", type: "action", props: { hubspot, @@ -46,7 +47,10 @@ export default { }, }); - $.export("$summary", `Successfully created landing page with ID: ${response.id}`); + $.export( + "$summary", + `Successfully created landing page with ID: ${response.id}`, + ); return response; }, diff --git a/components/hubspot/actions/create-lead/create-lead.mjs b/components/hubspot/actions/create-lead/create-lead.mjs index ea1b99e8681de..38a164bfaa1cd 100644 --- a/components/hubspot/actions/create-lead/create-lead.mjs +++ b/components/hubspot/actions/create-lead/create-lead.mjs @@ -1,6 +1,5 @@ import { - ASSOCIATION_CATEGORY, - OBJECT_TYPE, + ASSOCIATION_CATEGORY, OBJECT_TYPE, } from "../../common/constants.mjs"; import appProp from "../common/common-app-prop.mjs"; import common from "../common/common-create-object.mjs"; @@ -9,8 +8,9 @@ export default { ...common, key: "hubspot-create-lead", name: "Create Lead", - description: "Create a lead in Hubspot. [See the documentation](https://developers.hubspot.com/beta-docs/guides/api/crm/objects/leads#create-leads)", - version: "0.0.13", + description: + "Create a lead in Hubspot. [See the documentation](https://developers.hubspot.com/beta-docs/guides/api/crm/objects/leads#create-leads)", + version: "0.0.14", type: "action", props: { ...appProp.props, diff --git a/components/hubspot/actions/create-meeting/create-meeting.mjs b/components/hubspot/actions/create-meeting/create-meeting.mjs index 46ba1786f1fa5..304f119bb5ef7 100644 --- a/components/hubspot/actions/create-meeting/create-meeting.mjs +++ b/components/hubspot/actions/create-meeting/create-meeting.mjs @@ -9,8 +9,9 @@ export default { ...common, key: "hubspot-create-meeting", name: "Create Meeting", - description: "Creates a new meeting with optional associations to other objects. [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/engagements/meetings#post-%2Fcrm%2Fv3%2Fobjects%2Fmeetings)", - version: "0.0.6", + description: + "Creates a new meeting with optional associations to other objects. [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/engagements/meetings#post-%2Fcrm%2Fv3%2Fobjects%2Fmeetings)", + version: "0.0.7", type: "action", props: { ...common.props, @@ -43,13 +44,15 @@ export default { toObjectType: c.toObjectType, }), ], - description: "A unique identifier to indicate the association type between the meeting and the other object", + description: + "A unique identifier to indicate the association type between the meeting and the other object", optional: true, }, objectProperties: { type: "object", label: "Meeting Properties", - description: "Enter the meeting properties as a JSON object. Required properties: hs_meeting_title, hs_meeting_body, hs_meeting_start_time, hs_meeting_end_time. Optional: hs_meeting_status", + description: + "Enter the meeting properties as a JSON object. Required properties: hs_meeting_title, hs_meeting_body, hs_meeting_start_time, hs_meeting_end_time. Optional: hs_meeting_status", }, }, methods: { @@ -81,7 +84,9 @@ export default { } = this; if ((toObjectId && !associationType) || (!toObjectId && associationType)) { - throw new ConfigurationError("Both `toObjectId` and `associationType` must be entered"); + throw new ConfigurationError( + "Both `toObjectId` and `associationType` must be entered", + ); } const properties = objectProperties @@ -108,7 +113,10 @@ export default { const meeting = await this.createMeeting(properties, associations, $); - $.export("$summary", `Successfully created meeting "${properties.hs_meeting_title}"`); + $.export( + "$summary", + `Successfully created meeting "${properties.hs_meeting_title}"`, + ); return meeting; }, diff --git a/components/hubspot/actions/create-note/create-note.mjs b/components/hubspot/actions/create-note/create-note.mjs index 0d22605758a21..e02a708ff8b51 100644 --- a/components/hubspot/actions/create-note/create-note.mjs +++ b/components/hubspot/actions/create-note/create-note.mjs @@ -6,8 +6,9 @@ export default { ...common, key: "hubspot-create-note", name: "Create Note", - description: "Create a new note. [See the documentation](https://developers.hubspot.com/docs/api/crm/engagements)", - version: "0.0.5", + description: + "Create a new note. [See the documentation](https://developers.hubspot.com/docs/api/crm/engagements)", + version: "0.0.6", type: "action", props: { ...common.props, @@ -41,7 +42,8 @@ export default { toObjectType: c.toObjectType, }), ], - description: "A unique identifier to indicate the association type between the note and the other object", + description: + "A unique identifier to indicate the association type between the note and the other object", optional: true, }, }, @@ -51,7 +53,10 @@ export default { return "notes"; }, isRelevantProperty(property) { - return common.methods.isRelevantProperty(property) && !property.name.includes("hs_pipeline"); + return ( + common.methods.isRelevantProperty(property) && + !property.name.includes("hs_pipeline") + ); }, createEngagement(objectType, properties, associations, $) { return this.hubspot.createObject({ @@ -77,7 +82,9 @@ export default { } = this; if ((toObjectId && !associationType) || (!toObjectId && associationType)) { - throw new ConfigurationError("Both `toObjectId` and `associationType` must be entered"); + throw new ConfigurationError( + "Both `toObjectId` and `associationType` must be entered", + ); } const properties = objectProperties @@ -108,7 +115,12 @@ export default { properties.hs_task_reminders = Date.parse(properties.hs_task_reminders); } - const engagement = await this.createEngagement(objectType, properties, associations, $); + const engagement = await this.createEngagement( + objectType, + properties, + associations, + $, + ); $.export("$summary", "Successfully created note"); diff --git a/components/hubspot/actions/create-or-update-contact/create-or-update-contact.mjs b/components/hubspot/actions/create-or-update-contact/create-or-update-contact.mjs index 253baa623fafd..d5e62aaeb44dc 100644 --- a/components/hubspot/actions/create-or-update-contact/create-or-update-contact.mjs +++ b/components/hubspot/actions/create-or-update-contact/create-or-update-contact.mjs @@ -5,14 +5,16 @@ export default { ...common, key: "hubspot-create-or-update-contact", name: "Create or Update Contact", - description: "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)", - version: "0.0.23", + description: + "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)", + version: "0.0.24", type: "action", props: { ...common.props, updateIfExists: { label: "Update If Exists", - description: "When selected, if Hubspot returns an error upon creation the resource should be updated.", + description: + "When selected, if Hubspot returns an error upon creation the resource should be updated.", type: "boolean", }, }, diff --git a/components/hubspot/actions/create-page/create-page.mjs b/components/hubspot/actions/create-page/create-page.mjs index 28fdffbe27fd0..de21ad9681b4c 100644 --- a/components/hubspot/actions/create-page/create-page.mjs +++ b/components/hubspot/actions/create-page/create-page.mjs @@ -5,8 +5,9 @@ import commonPageProp from "../common/common-page-prop.mjs"; export default { key: "hubspot-create-page", name: "Create Page", - description: "Create a page in HubSpot. [See the documentation](https://developers.hubspot.com/docs/reference/api/cms/pages#post-%2Fcms%2Fv3%2Fpages%2Fsite-pages)", - version: "0.0.2", + description: + "Create a page in HubSpot. [See the documentation](https://developers.hubspot.com/docs/reference/api/cms/pages#post-%2Fcms%2Fv3%2Fpages%2Fsite-pages)", + version: "0.0.3", type: "action", props: { hubspot, diff --git a/components/hubspot/actions/create-task/create-task.mjs b/components/hubspot/actions/create-task/create-task.mjs index 025a92acb820a..198450b5820c7 100644 --- a/components/hubspot/actions/create-task/create-task.mjs +++ b/components/hubspot/actions/create-task/create-task.mjs @@ -6,8 +6,9 @@ export default { ...common, key: "hubspot-create-task", name: "Create Task", - description: "Create a new task. [See the documentation](https://developers.hubspot.com/docs/api/crm/engagements)", - version: "0.0.6", + description: + "Create a new task. [See the documentation](https://developers.hubspot.com/docs/api/crm/engagements)", + version: "0.0.7", type: "action", props: { ...common.props, @@ -41,7 +42,8 @@ export default { toObjectType: c.toObjectType, }), ], - description: "A unique identifier to indicate the association type between the task and the other object", + description: + "A unique identifier to indicate the association type between the task and the other object", optional: true, }, objectProperties: { @@ -56,7 +58,10 @@ export default { return "tasks"; }, isRelevantProperty(property) { - return common.methods.isRelevantProperty(property) && !property.name.includes("hs_pipeline"); + return ( + common.methods.isRelevantProperty(property) && + !property.name.includes("hs_pipeline") + ); }, createEngagement(objectType, properties, associations, $) { return this.hubspot.createObject({ @@ -82,7 +87,9 @@ export default { } = this; if ((toObjectId && !associationType) || (!toObjectId && associationType)) { - throw new ConfigurationError("Both `toObjectId` and `associationType` must be entered"); + throw new ConfigurationError( + "Both `toObjectId` and `associationType` must be entered", + ); } const properties = objectProperties @@ -113,7 +120,12 @@ export default { properties.hs_task_reminders = Date.parse(properties.hs_task_reminders); } - const engagement = await this.createEngagement(objectType, properties, associations, $); + const engagement = await this.createEngagement( + objectType, + properties, + associations, + $, + ); const objectName = hubspot.getObjectTypeName(objectType); $.export("$summary", `Successfully created ${objectName}`); diff --git a/components/hubspot/actions/create-ticket/create-ticket.mjs b/components/hubspot/actions/create-ticket/create-ticket.mjs index d73ff06e3af49..f7d3e975340f9 100644 --- a/components/hubspot/actions/create-ticket/create-ticket.mjs +++ b/components/hubspot/actions/create-ticket/create-ticket.mjs @@ -5,8 +5,9 @@ export default { ...common, key: "hubspot-create-ticket", name: "Create Ticket", - description: "Create a ticket in Hubspot. [See the documentation](https://developers.hubspot.com/docs/api/crm/tickets)", - version: "0.0.16", + description: + "Create a ticket in Hubspot. [See the documentation](https://developers.hubspot.com/docs/api/crm/tickets)", + version: "0.0.17", type: "action", props: { ...common.props, @@ -37,9 +38,11 @@ export default { return OBJECT_TYPE.TICKET; }, isDefaultProperty(property) { - return property.name === "subject" - || property.name === "hs_pipeline" - || property.name === "hs_pipeline_stage"; + return ( + property.name === "subject" || + property.name === "hs_pipeline" || + property.name === "hs_pipeline_stage" + ); }, }, }; diff --git a/components/hubspot/actions/enroll-contact-into-workflow/enroll-contact-into-workflow.mjs b/components/hubspot/actions/enroll-contact-into-workflow/enroll-contact-into-workflow.mjs index c30656d3dcb9e..e42ee219a2c4b 100644 --- a/components/hubspot/actions/enroll-contact-into-workflow/enroll-contact-into-workflow.mjs +++ b/components/hubspot/actions/enroll-contact-into-workflow/enroll-contact-into-workflow.mjs @@ -3,8 +3,9 @@ import hubspot from "../../hubspot.app.mjs"; export default { key: "hubspot-enroll-contact-into-workflow", name: "Enroll Contact Into Workflow", - description: "Add a contact to a workflow. Note: The Workflows API currently only supports contact-based workflows and is only available for Marketing Hub Enterprise accounts. [See the documentation](https://legacydocs.hubspot.com/docs/methods/workflows/add_contact)", - version: "0.0.21", + description: + "Add a contact to a workflow. Note: The Workflows API currently only supports contact-based workflows and is only available for Marketing Hub Enterprise accounts. [See the documentation](https://legacydocs.hubspot.com/docs/methods/workflows/add_contact)", + version: "0.0.22", type: "action", props: { hubspot, @@ -24,8 +25,7 @@ export default { }, async run({ $ }) { const { - workflow, - contactEmail, + workflow, contactEmail, } = this; const response = await this.hubspot.addContactsIntoWorkflow({ workflowId: workflow, diff --git a/components/hubspot/actions/get-associated-emails/get-associated-emails.mjs b/components/hubspot/actions/get-associated-emails/get-associated-emails.mjs index c74e487e40ff1..05bab6caef017 100644 --- a/components/hubspot/actions/get-associated-emails/get-associated-emails.mjs +++ b/components/hubspot/actions/get-associated-emails/get-associated-emails.mjs @@ -4,8 +4,9 @@ import hubspot from "../../hubspot.app.mjs"; export default { key: "hubspot-get-associated-emails", name: "Get Associated Emails", - description: "Retrieves emails associated with a specific object (contact, company, or deal). [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/search)", - version: "0.0.3", + description: + "Retrieves emails associated with a specific object (contact, company, or deal). [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/search)", + version: "0.0.4", type: "action", props: { hubspot, diff --git a/components/hubspot/actions/get-associated-meetings/get-associated-meetings.mjs b/components/hubspot/actions/get-associated-meetings/get-associated-meetings.mjs index 035dd0d08c86c..af15d37c49669 100644 --- a/components/hubspot/actions/get-associated-meetings/get-associated-meetings.mjs +++ b/components/hubspot/actions/get-associated-meetings/get-associated-meetings.mjs @@ -5,8 +5,9 @@ import hubspot from "../../hubspot.app.mjs"; export default { key: "hubspot-get-associated-meetings", name: "Get Associated Meetings", - description: "Retrieves meetings associated with a specific object (contact, company, or deal) with optional time filtering. [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/associations/association-details#get-%2Fcrm%2Fv4%2Fobjects%2F%7Bobjecttype%7D%2F%7Bobjectid%7D%2Fassociations%2F%7Btoobjecttype%7D)", - version: "0.0.6", + description: + "Retrieves meetings associated with a specific object (contact, company, or deal) with optional time filtering. [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/associations/association-details#get-%2Fcrm%2Fv4%2Fobjects%2F%7Bobjecttype%7D%2F%7Bobjectid%7D%2Fassociations%2F%7Btoobjecttype%7D)", + version: "0.0.7", type: "action", props: { hubspot, @@ -24,7 +25,8 @@ export default { objectId: { type: "string", label: "Object ID", - description: "The ID of the object to get associated meetings for. For contacts, you can search by email.", + description: + "The ID of the object to get associated meetings for. For contacts, you can search by email.", propDefinition: [ hubspot, "objectIds", @@ -61,12 +63,14 @@ export default { startDate: { type: "string", label: "Start Date", - description: "The start date to filter meetings from (ISO 8601 format). Eg. `2025-01-01T00:00:00Z`", + description: + "The start date to filter meetings from (ISO 8601 format). Eg. `2025-01-01T00:00:00Z`", }, endDate: { type: "string", label: "End Date", - description: "The end date to filter meetings to (ISO 8601 format). Eg. `2025-01-31T23:59:59Z`", + description: + "The end date to filter meetings to (ISO 8601 format). Eg. `2025-01-31T23:59:59Z`", }, }; }, @@ -112,7 +116,13 @@ export default { const dayOfWeek = now.getUTCDay(); const startOfWeek = new Date( Date.UTC( - now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate() - dayOfWeek, 0, 0, 0, 0, + now.getUTCFullYear(), + now.getUTCMonth(), + now.getUTCDate() - dayOfWeek, + 0, + 0, + 0, + 0, ), ).toISOString(); const endOfWeek = new Date( @@ -142,7 +152,15 @@ export default { Date.UTC(now.getUTCFullYear(), now.getUTCMonth(), 1, 0, 0, 0, 0), ).toISOString(); const endOfMonth = new Date( - Date.UTC(now.getUTCFullYear(), now.getUTCMonth() + 1, 0, 23, 59, 59, 999), + Date.UTC( + now.getUTCFullYear(), + now.getUTCMonth() + 1, + 0, + 23, + 59, + 59, + 999, + ), ).toISOString(); return { hs_meeting_start_time: { @@ -157,15 +175,7 @@ export default { } case "last_month": { const startOfLastMonth = new Date( - Date.UTC( - now.getUTCFullYear(), - now.getUTCMonth() - 1, - 1, - 0, - 0, - 0, - 0, - ), + Date.UTC(now.getUTCFullYear(), now.getUTCMonth() - 1, 1, 0, 0, 0, 0), ).toISOString(); const endOfLastMonth = new Date( Date.UTC( @@ -224,7 +234,11 @@ export default { const meetingIds = associations.map(({ toObjectId }) => toObjectId); - const timeFilter = this.getMeetingTimeFilter(timeframe, startDate, endDate); + const timeFilter = this.getMeetingTimeFilter( + timeframe, + startDate, + endDate, + ); const { results } = await this.hubspot.searchMeetings({ data: { @@ -240,14 +254,15 @@ export default { operator: "IN", values: meetingIds, }, - ...Object.entries(timeFilter) - .map(([ + ...Object.entries(timeFilter).map( + ([ propertyName, filterProps, ]) => ({ propertyName, ...filterProps, - })), + }), + ), ], }, ], @@ -268,7 +283,10 @@ export default { }, async run({ $ }) { let resolvedObjectId = this.objectId; - if (this.objectType === OBJECT_TYPE.CONTACT && this.objectId.includes("@")) { + if ( + this.objectType === OBJECT_TYPE.CONTACT && + this.objectId.includes("@") + ) { const { results } = await this.hubspot.searchCRM({ object: OBJECT_TYPE.CONTACT, data: { diff --git a/components/hubspot/actions/get-company/get-company.mjs b/components/hubspot/actions/get-company/get-company.mjs index 7e5d6b887149c..9cd558ceb7ed8 100644 --- a/components/hubspot/actions/get-company/get-company.mjs +++ b/components/hubspot/actions/get-company/get-company.mjs @@ -5,8 +5,9 @@ export default { ...common, key: "hubspot-get-company", name: "Get Company", - description: "Gets a company. [See the documentation](https://developers.hubspot.com/docs/api/crm/companies#endpoint?spec=GET-/crm/v3/objects/companies/{companyId})", - version: "0.0.21", + description: + "Gets a company. [See the documentation](https://developers.hubspot.com/docs/api/crm/companies#endpoint?spec=GET-/crm/v3/objects/companies/{companyId})", + version: "0.0.22", type: "action", props: { ...common.props, diff --git a/components/hubspot/actions/get-contact/get-contact.mjs b/components/hubspot/actions/get-contact/get-contact.mjs index 2a2db8cc08064..35bc58f4d1d93 100644 --- a/components/hubspot/actions/get-contact/get-contact.mjs +++ b/components/hubspot/actions/get-contact/get-contact.mjs @@ -5,8 +5,9 @@ export default { ...common, key: "hubspot-get-contact", name: "Get Contact", - description: "Gets a contact. [See the documentation](https://developers.hubspot.com/docs/api/crm/contacts#endpoint?spec=GET-/crm/v3/objects/contacts/{contactId})", - version: "0.0.21", + description: + "Gets a contact. [See the documentation](https://developers.hubspot.com/docs/api/crm/contacts#endpoint?spec=GET-/crm/v3/objects/contacts/{contactId})", + version: "0.0.22", type: "action", props: { ...common.props, diff --git a/components/hubspot/actions/get-deal/get-deal.mjs b/components/hubspot/actions/get-deal/get-deal.mjs index 8e2ed2778d3b4..f7d0d69ab8ab6 100644 --- a/components/hubspot/actions/get-deal/get-deal.mjs +++ b/components/hubspot/actions/get-deal/get-deal.mjs @@ -5,8 +5,9 @@ export default { ...common, key: "hubspot-get-deal", name: "Get Deal", - description: "Gets a deal. [See the documentation](https://developers.hubspot.com/docs/api/crm/deals#endpoint?spec=GET-/crm/v3/objects/deals/{dealId})", - version: "0.0.21", + description: + "Gets a deal. [See the documentation](https://developers.hubspot.com/docs/api/crm/deals#endpoint?spec=GET-/crm/v3/objects/deals/{dealId})", + version: "0.0.22", type: "action", props: { ...common.props, diff --git a/components/hubspot/actions/get-file-public-url/get-file-public-url.mjs b/components/hubspot/actions/get-file-public-url/get-file-public-url.mjs index 1d3f1aa047b06..7185a43a4f10e 100644 --- a/components/hubspot/actions/get-file-public-url/get-file-public-url.mjs +++ b/components/hubspot/actions/get-file-public-url/get-file-public-url.mjs @@ -3,8 +3,9 @@ import hubspot from "../../hubspot.app.mjs"; export default { key: "hubspot-get-file-public-url", name: "Get File Public URL", - description: "Get a publicly available URL for a file that was uploaded using a Hubspot form. [See the documentation](https://developers.hubspot.com/docs/api/files/files#endpoint?spec=GET-/files/v3/files/{fileId}/signed-url)", - version: "0.0.21", + description: + "Get a publicly available URL for a file that was uploaded using a Hubspot form. [See the documentation](https://developers.hubspot.com/docs/api/files/files#endpoint?spec=GET-/files/v3/files/{fileId}/signed-url)", + version: "0.0.22", type: "action", props: { hubspot, @@ -17,18 +18,18 @@ export default { expirationSeconds: { type: "integer", label: "Public URL Expiration (seconds)", - description: "The number of seconds the returned public URL will be accessible for. Default is 1 hour (3600 seconds). Maximum is 6 hours (21600 seconds).", + description: + "The number of seconds the returned public URL will be accessible for. Default is 1 hour (3600 seconds). Maximum is 6 hours (21600 seconds).", default: 3600, optional: true, }, }, async run({ $ }) { const { - fileUrl, - expirationSeconds, + fileUrl, expirationSeconds, } = this; const { results: files } = await this.hubspot.searchFiles(); - const file = files.find(({ url }) => url === fileUrl ); + const file = files.find(({ url }) => url === fileUrl); const fileId = file.id; if (!fileId) { throw new Error(`File not found at ${fileUrl}`); diff --git a/components/hubspot/actions/get-meeting/get-meeting.mjs b/components/hubspot/actions/get-meeting/get-meeting.mjs index 06e6aa10d1519..25fea877adc97 100644 --- a/components/hubspot/actions/get-meeting/get-meeting.mjs +++ b/components/hubspot/actions/get-meeting/get-meeting.mjs @@ -5,8 +5,9 @@ export default { ...common, key: "hubspot-get-meeting", name: "Get Meeting", - description: "Retrieves a specific meeting by its ID. [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/engagements/meetings#get-%2Fcrm%2Fv3%2Fobjects%2Fmeetings%2F%7Bmeetingid%7D)", - version: "0.0.6", + description: + "Retrieves a specific meeting by its ID. [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/engagements/meetings#get-%2Fcrm%2Fv3%2Fobjects%2Fmeetings%2F%7Bmeetingid%7D)", + version: "0.0.7", type: "action", props: { ...common.props, diff --git a/components/hubspot/actions/get-subscription-preferences/get-subscription-preferences.mjs b/components/hubspot/actions/get-subscription-preferences/get-subscription-preferences.mjs index cf69c4f899912..71b092e694554 100644 --- a/components/hubspot/actions/get-subscription-preferences/get-subscription-preferences.mjs +++ b/components/hubspot/actions/get-subscription-preferences/get-subscription-preferences.mjs @@ -3,8 +3,9 @@ import hubspot from "../../hubspot.app.mjs"; export default { key: "hubspot-get-subscription-preferences", name: "Get Subscription Preferences", - description: "Retrieves the subscription preferences for a contact. [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/subscriptions#get-%2Fcommunication-preferences%2Fv4%2Fstatuses%2F%7Bsubscriberidstring%7D)", - version: "0.0.3", + description: + "Retrieves the subscription preferences for a contact. [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/subscriptions#get-%2Fcommunication-preferences%2Fv4%2Fstatuses%2F%7Bsubscriberidstring%7D)", + version: "0.0.4", type: "action", props: { hubspot, @@ -24,7 +25,10 @@ export default { }, }); - $.export("$summary", `Retrieved subscription preferences for ${this.contactEmail}`); + $.export( + "$summary", + `Retrieved subscription preferences for ${this.contactEmail}`, + ); return response; }, }; diff --git a/components/hubspot/actions/list-blog-posts/list-blog-posts.mjs b/components/hubspot/actions/list-blog-posts/list-blog-posts.mjs index 5b6e62e79bbbe..26e8650823447 100644 --- a/components/hubspot/actions/list-blog-posts/list-blog-posts.mjs +++ b/components/hubspot/actions/list-blog-posts/list-blog-posts.mjs @@ -3,45 +3,52 @@ import hubspot from "../../hubspot.app.mjs"; export default { key: "hubspot-list-blog-posts", name: "List Blog Posts", - description: "Retrieves a list of blog posts. [See the documentation](https://developers.hubspot.com/docs/reference/api/cms/blogs/blog-posts)", - version: "0.0.3", + description: + "Retrieves a list of blog posts. [See the documentation](https://developers.hubspot.com/docs/reference/api/cms/blogs/blog-posts)", + version: "0.0.4", type: "action", props: { hubspot, createdAt: { type: "string", label: "Created At", - description: "Only return Blog Posts created at exactly the specified time. Format: YYYY-MM-DDTHH:MM:SSZ", + description: + "Only return Blog Posts created at exactly the specified time. Format: YYYY-MM-DDTHH:MM:SSZ", optional: true, }, createdAfter: { type: "string", label: "Created After", - description: "Only return Blog Posts created after the specified time. Format: YYYY-MM-DDTHH:MM:SSZ", + description: + "Only return Blog Posts created after the specified time. Format: YYYY-MM-DDTHH:MM:SSZ", optional: true, }, createdBefore: { type: "string", label: "Created Before", - description: "Only return Blog Posts created before the specified time. Format: YYYY-MM-DDTHH:MM:SSZ", + description: + "Only return Blog Posts created before the specified time. Format: YYYY-MM-DDTHH:MM:SSZ", optional: true, }, updatedAt: { type: "string", label: "Updated At", - description: "Only return Blog Posts updated at exactly the specified time. Format: YYYY-MM-DDTHH:MM:SSZ", + description: + "Only return Blog Posts updated at exactly the specified time. Format: YYYY-MM-DDTHH:MM:SSZ", optional: true, }, updatedAfter: { type: "string", label: "Updated After", - description: "Only return Blog Posts updated after the specified time. Format: YYYY-MM-DDTHH:MM:SSZ", + description: + "Only return Blog Posts updated after the specified time. Format: YYYY-MM-DDTHH:MM:SSZ", optional: true, }, updatedBefore: { type: "string", label: "Updated Before", - description: "Only return Blog Posts updated before the specified time. Format: YYYY-MM-DDTHH:MM:SSZ", + description: + "Only return Blog Posts updated before the specified time. Format: YYYY-MM-DDTHH:MM:SSZ", optional: true, }, archived: { @@ -73,7 +80,8 @@ export default { }, async run({ $ }) { const results = []; - let hasMore, count = 0; + let hasMore, + count = 0; const params = { createdAt: this.createdAt, @@ -107,9 +115,12 @@ export default { params.after = paging?.next.after; } while (hasMore && count < this.maxResults); - $.export("$summary", `Found ${results.length} page${results.length === 1 - ? "" - : "s"}`); + $.export( + "$summary", + `Found ${results.length} page${results.length === 1 + ? "" + : "s"}`, + ); return results; }, }; diff --git a/components/hubspot/actions/list-campaigns/list-campaigns.mjs b/components/hubspot/actions/list-campaigns/list-campaigns.mjs index 5b89be1529267..4b92da4186c61 100644 --- a/components/hubspot/actions/list-campaigns/list-campaigns.mjs +++ b/components/hubspot/actions/list-campaigns/list-campaigns.mjs @@ -3,15 +3,17 @@ import hubspot from "../../hubspot.app.mjs"; export default { key: "hubspot-list-campaigns", name: "List Campaigns", - description: "Retrieves a list of campaigns. [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/campaigns#get-%2Fmarketing%2Fv3%2Fcampaigns%2F)", - version: "0.0.3", + description: + "Retrieves a list of campaigns. [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/campaigns#get-%2Fmarketing%2Fv3%2Fcampaigns%2F)", + version: "0.0.4", type: "action", props: { hubspot, sort: { type: "string", label: "Sort", - description: "The field by which to sort the results. An optional '-' before the property name can denote descending order", + description: + "The field by which to sort the results. An optional '-' before the property name can denote descending order", options: [ "hs_name", "-hs_name", @@ -32,7 +34,8 @@ export default { }, async run({ $ }) { const results = []; - let hasMore, count = 0; + let hasMore, + count = 0; const params = { sort: this.sort, @@ -59,9 +62,12 @@ export default { params.after = paging?.next.after; } while (hasMore && count < this.maxResults); - $.export("$summary", `Found ${results.length} campaign${results.length === 1 - ? "" - : "s"}`); + $.export( + "$summary", + `Found ${results.length} campaign${results.length === 1 + ? "" + : "s"}`, + ); return results; }, }; diff --git a/components/hubspot/actions/list-forms/list-forms.mjs b/components/hubspot/actions/list-forms/list-forms.mjs index 58df18e8a9453..ae19e8d9a0b78 100644 --- a/components/hubspot/actions/list-forms/list-forms.mjs +++ b/components/hubspot/actions/list-forms/list-forms.mjs @@ -3,8 +3,9 @@ import hubspot from "../../hubspot.app.mjs"; export default { key: "hubspot-list-forms", name: "List Forms", - description: "Retrieves a list of forms. [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/forms#get-%2Fmarketing%2Fv3%2Fforms%2F)", - version: "0.0.3", + description: + "Retrieves a list of forms. [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/forms#get-%2Fmarketing%2Fv3%2Fforms%2F)", + version: "0.0.4", type: "action", props: { hubspot, @@ -24,7 +25,8 @@ export default { }, async run({ $ }) { const results = []; - let hasMore, count = 0; + let hasMore, + count = 0; const params = { archived: this.archived, @@ -51,9 +53,12 @@ export default { params.after = paging?.next.after; } while (hasMore && count < this.maxResults); - $.export("$summary", `Found ${results.length} form${results.length === 1 - ? "" - : "s"}`); + $.export( + "$summary", + `Found ${results.length} form${results.length === 1 + ? "" + : "s"}`, + ); return results; }, }; diff --git a/components/hubspot/actions/list-marketing-emails/list-marketing-emails.mjs b/components/hubspot/actions/list-marketing-emails/list-marketing-emails.mjs index 4c6cb11ea82a1..33c989857d617 100644 --- a/components/hubspot/actions/list-marketing-emails/list-marketing-emails.mjs +++ b/components/hubspot/actions/list-marketing-emails/list-marketing-emails.mjs @@ -3,45 +3,52 @@ import hubspot from "../../hubspot.app.mjs"; export default { key: "hubspot-list-marketing-emails", name: "List Marketing Emails", - description: "Retrieves a list of marketing emails. [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/emails/marketing-emails#get-%2Fmarketing%2Fv3%2Femails%2F)", - version: "0.0.3", + description: + "Retrieves a list of marketing emails. [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/emails/marketing-emails#get-%2Fmarketing%2Fv3%2Femails%2F)", + version: "0.0.4", type: "action", props: { hubspot, createdAt: { type: "string", label: "Created At", - description: "Only return Marketing Emails created at exactly the specified time. Format: YYYY-MM-DDTHH:MM:SSZ", + description: + "Only return Marketing Emails created at exactly the specified time. Format: YYYY-MM-DDTHH:MM:SSZ", optional: true, }, createdAfter: { type: "string", label: "Created After", - description: "Only return Marketing Emails created after the specified time. Format: YYYY-MM-DDTHH:MM:SSZ", + description: + "Only return Marketing Emails created after the specified time. Format: YYYY-MM-DDTHH:MM:SSZ", optional: true, }, createdBefore: { type: "string", label: "Created Before", - description: "Only return Marketing Emails created before the specified time. Format: YYYY-MM-DDTHH:MM:SSZ", + description: + "Only return Marketing Emails created before the specified time. Format: YYYY-MM-DDTHH:MM:SSZ", optional: true, }, updatedAt: { type: "string", label: "Updated At", - description: "Only return Marketing Emails updated at exactly the specified time. Format: YYYY-MM-DDTHH:MM:SSZ", + description: + "Only return Marketing Emails updated at exactly the specified time. Format: YYYY-MM-DDTHH:MM:SSZ", optional: true, }, updatedAfter: { type: "string", label: "Updated After", - description: "Only return Marketing Emails updated after the specified time. Format: YYYY-MM-DDTHH:MM:SSZ", + description: + "Only return Marketing Emails updated after the specified time. Format: YYYY-MM-DDTHH:MM:SSZ", optional: true, }, updatedBefore: { type: "string", label: "Updated Before", - description: "Only return Marketing Emails updated before the specified time. Format: YYYY-MM-DDTHH:MM:SSZ", + description: + "Only return Marketing Emails updated before the specified time. Format: YYYY-MM-DDTHH:MM:SSZ", optional: true, }, includeStats: { @@ -79,7 +86,8 @@ export default { }, async run({ $ }) { const results = []; - let hasMore, count = 0; + let hasMore, + count = 0; const params = { createdAt: this.createdAt, @@ -114,9 +122,12 @@ export default { params.after = paging?.next.after; } while (hasMore && count < this.maxResults); - $.export("$summary", `Found ${results.length} email${results.length === 1 - ? "" - : "s"}`); + $.export( + "$summary", + `Found ${results.length} email${results.length === 1 + ? "" + : "s"}`, + ); return results; }, }; diff --git a/components/hubspot/actions/list-marketing-events/list-marketing-events.mjs b/components/hubspot/actions/list-marketing-events/list-marketing-events.mjs index 15db09497ac3f..4abc2996bbfd1 100644 --- a/components/hubspot/actions/list-marketing-events/list-marketing-events.mjs +++ b/components/hubspot/actions/list-marketing-events/list-marketing-events.mjs @@ -3,8 +3,9 @@ import hubspot from "../../hubspot.app.mjs"; export default { key: "hubspot-list-marketing-events", name: "List Marketing Events", - description: "Retrieves a list of marketing events. [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/marketing-events#get-%2Fmarketing%2Fv3%2Fmarketing-events%2F)", - version: "0.0.3", + description: + "Retrieves a list of marketing events. [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/marketing-events#get-%2Fmarketing%2Fv3%2Fmarketing-events%2F)", + version: "0.0.4", type: "action", props: { hubspot, @@ -21,7 +22,8 @@ export default { const params = { limit: 100, }; - let hasMore, count = 0; + let hasMore, + count = 0; do { const { @@ -44,9 +46,12 @@ export default { params.after = paging?.next.after; } while (hasMore && count < this.maxResults); - $.export("$summary", `Found ${results.length} event${results.length === 1 - ? "" - : "s"}`); + $.export( + "$summary", + `Found ${results.length} event${results.length === 1 + ? "" + : "s"}`, + ); return results; }, }; diff --git a/components/hubspot/actions/list-pages/list-pages.mjs b/components/hubspot/actions/list-pages/list-pages.mjs index 8280a0f400df4..d182a98c7d79d 100644 --- a/components/hubspot/actions/list-pages/list-pages.mjs +++ b/components/hubspot/actions/list-pages/list-pages.mjs @@ -3,45 +3,52 @@ import hubspot from "../../hubspot.app.mjs"; export default { key: "hubspot-list-pages", name: "List Pages", - description: "Retrieves a list of site pages. [See the documentation](https://developers.hubspot.com/docs/reference/api/cms/pages)", - version: "0.0.3", + description: + "Retrieves a list of site pages. [See the documentation](https://developers.hubspot.com/docs/reference/api/cms/pages)", + version: "0.0.4", type: "action", props: { hubspot, createdAt: { type: "string", label: "Created At", - description: "Only return Site Pages created at exactly the specified time. Format: YYYY-MM-DDTHH:MM:SSZ", + description: + "Only return Site Pages created at exactly the specified time. Format: YYYY-MM-DDTHH:MM:SSZ", optional: true, }, createdAfter: { type: "string", label: "Created After", - description: "Only return Site Pages created after the specified time. Format: YYYY-MM-DDTHH:MM:SSZ", + description: + "Only return Site Pages created after the specified time. Format: YYYY-MM-DDTHH:MM:SSZ", optional: true, }, createdBefore: { type: "string", label: "Created Before", - description: "Only return Site Pages created before the specified time. Format: YYYY-MM-DDTHH:MM:SSZ", + description: + "Only return Site Pages created before the specified time. Format: YYYY-MM-DDTHH:MM:SSZ", optional: true, }, updatedAt: { type: "string", label: "Updated At", - description: "Only return Site Pages updated at exactly the specified time. Format: YYYY-MM-DDTHH:MM:SSZ", + description: + "Only return Site Pages updated at exactly the specified time. Format: YYYY-MM-DDTHH:MM:SSZ", optional: true, }, updatedAfter: { type: "string", label: "Updated After", - description: "Only return Site Pages updated after the specified time. Format: YYYY-MM-DDTHH:MM:SSZ", + description: + "Only return Site Pages updated after the specified time. Format: YYYY-MM-DDTHH:MM:SSZ", optional: true, }, updatedBefore: { type: "string", label: "Updated Before", - description: "Only return Site Pages updated before the specified time. Format: YYYY-MM-DDTHH:MM:SSZ", + description: + "Only return Site Pages updated before the specified time. Format: YYYY-MM-DDTHH:MM:SSZ", optional: true, }, archived: { @@ -73,7 +80,8 @@ export default { }, async run({ $ }) { const results = []; - let hasMore, count = 0; + let hasMore, + count = 0; const params = { createdAt: this.createdAt, @@ -107,9 +115,12 @@ export default { params.after = paging?.next.after; } while (hasMore && count < this.maxResults); - $.export("$summary", `Found ${results.length} page${results.length === 1 - ? "" - : "s"}`); + $.export( + "$summary", + `Found ${results.length} page${results.length === 1 + ? "" + : "s"}`, + ); return results; }, }; diff --git a/components/hubspot/actions/list-templates/list-templates.mjs b/components/hubspot/actions/list-templates/list-templates.mjs index f2ae58d868e06..a4b1b48dd3ab8 100644 --- a/components/hubspot/actions/list-templates/list-templates.mjs +++ b/components/hubspot/actions/list-templates/list-templates.mjs @@ -3,8 +3,9 @@ import hubspot from "../../hubspot.app.mjs"; export default { key: "hubspot-list-templates", name: "List Templates", - description: "Retrieves a list of templates. [See the documentation](https://developers.hubspot.com/docs/reference/api/cms/templates)", - version: "0.0.3", + description: + "Retrieves a list of templates. [See the documentation](https://developers.hubspot.com/docs/reference/api/cms/templates)", + version: "0.0.4", type: "action", props: { hubspot, @@ -22,7 +23,8 @@ export default { limit: 100, offset: 0, }; - let hasMore, count = 0; + let hasMore, + count = 0; do { const { @@ -45,9 +47,12 @@ export default { params.offset += params.limit; } while (hasMore && count < this.maxResults); - $.export("$summary", `Found ${results.length} template${results.length === 1 - ? "" - : "s"}`); + $.export( + "$summary", + `Found ${results.length} template${results.length === 1 + ? "" + : "s"}`, + ); return results; }, }; diff --git a/components/hubspot/actions/search-crm/search-crm.mjs b/components/hubspot/actions/search-crm/search-crm.mjs index 5b3a319313d91..e36319f16b867 100644 --- a/components/hubspot/actions/search-crm/search-crm.mjs +++ b/components/hubspot/actions/search-crm/search-crm.mjs @@ -16,8 +16,9 @@ import common from "../common/common-create.mjs"; 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: "1.0.8", + 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: "1.0.9", type: "action", props: { hubspot, @@ -37,14 +38,16 @@ export default { exactMatch: { type: "boolean", label: "Exact Match", - description: "Set to `true` to search for an exact match of the search value. If `false`, partial matches will be returned. Default: `true`", + description: + "Set to `true` to search for an exact match of the search value. If `false`, partial matches will be returned. Default: `true`", default: true, optional: true, }, createIfNotFound: { type: "boolean", label: "Create if not found?", - description: "Set to `true` to create the Hubspot object if it doesn't exist", + description: + "Set to `true` to create the Hubspot object if it doesn't exist", default: false, optional: true, reloadProps: true, @@ -69,7 +72,10 @@ export default { }; } } - if (!this.objectType || (this.objectType === "custom_object" && !this.customObjectType)) { + if ( + !this.objectType || + (this.objectType === "custom_object" && !this.customObjectType) + ) { return props; } @@ -105,7 +111,8 @@ export default { props.searchValue = { type: "string", label: "Search Value", - description: "Search for objects where the specified search field/property contains a match of the search value", + description: + "Search for objects where the specified search field/property contains a match of the search value", }; const defaultProperties = this.getDefaultProperties(); if (defaultProperties?.length) { @@ -130,7 +137,8 @@ export default { objectType: this.customObjectType ?? this.objectType, }); const defaultProperties = this.getDefaultProperties(); - return properties.filter(({ name }) => !defaultProperties.includes(name)) + return properties + .filter(({ name }) => !defaultProperties.includes(name)) .map((property) => ({ label: property.label, value: property.name, @@ -154,20 +162,25 @@ export default { const relevantProperties = properties.filter(this.isRelevantProperty); const propDefinitions = []; for (const property of relevantProperties) { - propDefinitions.push(await this.makePropDefinition(property, schema.requiredProperties)); + propDefinitions.push( + await this.makePropDefinition(property, schema.requiredProperties), + ); } - creationProps = propDefinitions - .reduce((props, { + creationProps = propDefinitions.reduce( + (props, { name, ...definition }) => { props[name] = definition; return props; - }, {}); + }, + {}, + ); } catch { props.creationProps = { type: "object", label: "Object Properties", - description: "A JSON object containing the object to create if not found", + description: + "A JSON object containing the object to create if not found", }; } } @@ -202,12 +215,14 @@ export default { }, async getCustomObjectTypes() { const { results } = await this.hubspot.listSchemas(); - return results?.map(({ - fullyQualifiedName: value, labels, - }) => ({ - value, - label: labels.plural, - })) || []; + return ( + results?.map(({ + fullyQualifiedName: value, labels, + }) => ({ + value, + label: labels.plural, + })) || [] + ); }, async paginate(params) { let results; @@ -252,7 +267,7 @@ export default { 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("`, `")}\``, + `\n\nAvailable searchable properties are: \`${schema.searchableProperties.join("`, `")}\``, ); } @@ -287,9 +302,13 @@ export default { }); if (!exactMatch) { - results = results.filter((result) => - result.properties[searchProperty] - && result.properties[searchProperty].toLowerCase().includes(searchValue.toLowerCase())); + results = results.filter( + (result) => + result.properties[searchProperty] && + result.properties[searchProperty] + .toLowerCase() + .includes(searchValue.toLowerCase()), + ); } if (!results?.length && createIfNotFound) { @@ -305,7 +324,10 @@ export default { return response; } - $.export("$summary", `Successfully retrieved ${results?.length} object(s).`); + $.export( + "$summary", + `Successfully retrieved ${results?.length} object(s).`, + ); return results; }, }; diff --git a/components/hubspot/actions/update-company/update-company.mjs b/components/hubspot/actions/update-company/update-company.mjs index 8754f760469e4..cc69577ce57ec 100644 --- a/components/hubspot/actions/update-company/update-company.mjs +++ b/components/hubspot/actions/update-company/update-company.mjs @@ -6,8 +6,9 @@ export default { ...common, key: "hubspot-update-company", name: "Update Company", - description: "Update a company in Hubspot. [See the documentation](https://developers.hubspot.com/docs/api/crm/companies)", - version: "0.0.21", + description: + "Update a company in Hubspot. [See the documentation](https://developers.hubspot.com/docs/api/crm/companies)", + version: "0.0.22", type: "action", methods: { ...common.methods, diff --git a/components/hubspot/actions/update-contact/update-contact.mjs b/components/hubspot/actions/update-contact/update-contact.mjs index b21fc4a6367f0..8356181aab74f 100644 --- a/components/hubspot/actions/update-contact/update-contact.mjs +++ b/components/hubspot/actions/update-contact/update-contact.mjs @@ -6,8 +6,9 @@ export default { ...common, key: "hubspot-update-contact", name: "Update Contact", - description: "Update a contact in Hubspot. [See the documentation](https://developers.hubspot.com/docs/api/crm/contacts#endpoint?spec=POST-/crm/v3/objects/contacts)", - version: "0.0.22", + description: + "Update a contact in Hubspot. [See the documentation](https://developers.hubspot.com/docs/api/crm/contacts#endpoint?spec=POST-/crm/v3/objects/contacts)", + version: "0.0.23", type: "action", methods: { ...common.methods, diff --git a/components/hubspot/actions/update-custom-object/update-custom-object.mjs b/components/hubspot/actions/update-custom-object/update-custom-object.mjs index 456c27c4d703d..ab10fe70582c0 100644 --- a/components/hubspot/actions/update-custom-object/update-custom-object.mjs +++ b/components/hubspot/actions/update-custom-object/update-custom-object.mjs @@ -5,8 +5,9 @@ export default { ...common, key: "hubspot-update-custom-object", name: "Update Custom Object", - description: "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)", - version: "1.0.7", + description: + "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)", + version: "1.0.8", type: "action", methods: { ...common.methods, diff --git a/components/hubspot/actions/update-deal/update-deal.mjs b/components/hubspot/actions/update-deal/update-deal.mjs index f27761975ed6d..e8b4b19b988e2 100644 --- a/components/hubspot/actions/update-deal/update-deal.mjs +++ b/components/hubspot/actions/update-deal/update-deal.mjs @@ -6,8 +6,9 @@ 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.12", + 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.13", type: "action", methods: { ...common.methods, diff --git a/components/hubspot/actions/update-fields-on-the-form/update-fields-on-the-form.mjs b/components/hubspot/actions/update-fields-on-the-form/update-fields-on-the-form.mjs index 5c32703468591..b00e3d35414d9 100644 --- a/components/hubspot/actions/update-fields-on-the-form/update-fields-on-the-form.mjs +++ b/components/hubspot/actions/update-fields-on-the-form/update-fields-on-the-form.mjs @@ -8,8 +8,9 @@ import hubspot from "../../hubspot.app.mjs"; export default { key: "hubspot-update-fields-on-the-form", name: "Update Fields on the Form", - description: "Update some of the form definition components. [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/forms#patch-%2Fmarketing%2Fv3%2Fforms%2F%7Bformid%7D)", - version: "0.0.2", + description: + "Update some of the form definition components. [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/forms#patch-%2Fmarketing%2Fv3%2Fforms%2F%7Bformid%7D)", + version: "0.0.3", type: "action", props: { hubspot, @@ -34,13 +35,15 @@ export default { fieldGroups: { type: "string[]", label: "Field Groups", - description: "A list for objects of group type and fields. **Format: `[{ \"groupType\": \"default_group\", \"richTextType\": \"text\", \"fields\": [ { \"objectTypeId\": \"0-1\", \"name\": \"email\", \"label\": \"Email\", \"required\": true, \"hidden\": false, \"fieldType\": \"email\", \"validation\": { \"blockedEmailDomains\": [], \"useDefaultBlockList\": false }}]}]`** [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/forms#post-%2Fmarketing%2Fv3%2Fforms%2F) for more information.", + description: + "A list for objects of group type and fields. **Format: `[{ \"groupType\": \"default_group\", \"richTextType\": \"text\", \"fields\": [ { \"objectTypeId\": \"0-1\", \"name\": \"email\", \"label\": \"Email\", \"required\": true, \"hidden\": false, \"fieldType\": \"email\", \"validation\": { \"blockedEmailDomains\": [], \"useDefaultBlockList\": false }}]}]`** [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/forms#post-%2Fmarketing%2Fv3%2Fforms%2F) for more information.", optional: true, }, createNewContactForNewEmail: { type: "boolean", label: "Create New Contact for New Email", - description: "Whether to create a new contact when a form is submitted with an email address that doesn't match any in your existing contacts records.", + description: + "Whether to create a new contact when a form is submitted with an email address that doesn't match any in your existing contacts records.", optional: true, }, editable: { @@ -52,20 +55,23 @@ export default { allowLinkToResetKnownValues: { type: "boolean", label: "Allow Link to Reset Known Values", - description: "Whether to add a reset link to the form. This removes any pre-populated content on the form and creates a new contact on submission.", + description: + "Whether to add a reset link to the form. This removes any pre-populated content on the form and creates a new contact on submission.", optional: true, }, lifecycleStages: { type: "string[]", label: "Lifecycle Stages", - description: "A list of objects of lifecycle stages. **Format: `[{ \"objectTypeId\": \"0-1\", \"value\": \"subscriber\" }]`** [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/forms#post-%2Fmarketing%2Fv3%2Fforms%2F) for more information.", + description: + "A list of objects of lifecycle stages. **Format: `[{ \"objectTypeId\": \"0-1\", \"value\": \"subscriber\" }]`** [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/forms#post-%2Fmarketing%2Fv3%2Fforms%2F) for more information.", optional: true, default: [], }, postSubmitActionType: { type: "string", label: "Post Submit Action Type", - description: "The action to take after submit. The default action is displaying a thank you message.", + description: + "The action to take after submit. The default action is displaying a thank you message.", options: [ "thank_you", "redirect_url", @@ -88,7 +94,8 @@ export default { prePopulateKnownValues: { type: "boolean", label: "Pre-populate Known Values", - description: "Whether contact fields should pre-populate with known information when a contact returns to your site.", + description: + "Whether contact fields should pre-populate with known information when a contact returns to your site.", optional: true, }, cloneable: { @@ -100,7 +107,8 @@ export default { notifyContactOwner: { type: "boolean", label: "Notify Contact Owner", - description: "Whether to send a notification email to the contact owner when a submission is received.", + description: + "Whether to send a notification email to the contact owner when a submission is received.", optional: true, }, recaptchaEnabled: { @@ -126,7 +134,8 @@ export default { renderRawHtml: { type: "boolean", label: "Render Raw HTML", - description: "Whether the form will render as raw HTML as opposed to inside an iFrame.", + description: + "Whether the form will render as raw HTML as opposed to inside an iFrame.", optional: true, }, cssClass: { @@ -138,7 +147,8 @@ export default { theme: { type: "string", label: "Theme", - description: "The theme used for styling the input fields. This will not apply if the form is added to a HubSpot CMS page`.", + description: + "The theme used for styling the input fields. This will not apply if the form is added to a HubSpot CMS page`.", options: [ "default_style", "canvas", @@ -247,7 +257,8 @@ export default { legalConsentOptionsObject: { type: "object", label: "Legal Consent Options Object", - description: "The object of legal consent options. **Format: `{\"subscriptionTypeIds\": [1,2,3], \"lawfulBasis\": \"lead\", \"privacy\": \"string\"}`** [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/forms#post-%2Fmarketing%2Fv3%2Fforms%2F) for more information.", + description: + "The object of legal consent options. **Format: `{\"subscriptionTypeIds\": [1,2,3], \"lawfulBasis\": \"lead\", \"privacy\": \"string\"}`** [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/forms#post-%2Fmarketing%2Fv3%2Fforms%2F) for more information.", optional: true, }, }, @@ -257,7 +268,9 @@ export default { (this.postSubmitActionType && !this.postSubmitActionValue) || (!this.postSubmitActionType && this.postSubmitActionValue) ) { - throw new ConfigurationError("Post Submit Action Type and Value must be provided together."); + throw new ConfigurationError( + "Post Submit Action Type and Value must be provided together.", + ); } if (this.language) { @@ -288,45 +301,47 @@ export default { configuration.notifyRecipients = parseObject(this.notifyRecipients); } if (this.createNewContactForNewEmail) { - configuration.createNewContactForNewEmail = this.createNewContactForNewEmail; + configuration.createNewContactForNewEmail = + this.createNewContactForNewEmail; } if (this.prePopulateKnownValues) { configuration.prePopulateKnownValues = this.prePopulateKnownValues; } if (this.allowLinkToResetKnownValues) { - configuration.allowLinkToResetKnownValues = this.allowLinkToResetKnownValues; + configuration.allowLinkToResetKnownValues = + this.allowLinkToResetKnownValues; } if (this.lifecycleStages) { configuration.lifecycleStages = parseObject(this.lifecycleStages); } const data = cleanObject({ - "formType": "hubspot", - "name": this.name, - "archived": this.archived, - "fieldGroups": parseObject(this.fieldGroups), - "displayOptions": { - "renderRawHtml": this.renderRawHtml, - "cssClass": this.cssClass, - "theme": this.theme, - "submitButtonText": this.submitButtonText, - "style": { - "labelTextSize": this.labelTextSize, - "legalConsentTextColor": this.legalConsentTextColor, - "fontFamily": this.fontFamily, - "legalConsentTextSize": this.legalConsentTextSize, - "backgroundWidth": this.backgroundWidth, - "helpTextSize": this.helpTextSize, - "submitFontColor": this.submitFontColor, - "labelTextColor": this.labelTextColor, - "submitAlignment": this.submitAlignment, - "submitSize": this.submitSize, - "helpTextColor": this.helpTextColor, - "submitColor": this.submitColor, + formType: "hubspot", + name: this.name, + archived: this.archived, + fieldGroups: parseObject(this.fieldGroups), + displayOptions: { + renderRawHtml: this.renderRawHtml, + cssClass: this.cssClass, + theme: this.theme, + submitButtonText: this.submitButtonText, + style: { + labelTextSize: this.labelTextSize, + legalConsentTextColor: this.legalConsentTextColor, + fontFamily: this.fontFamily, + legalConsentTextSize: this.legalConsentTextSize, + backgroundWidth: this.backgroundWidth, + helpTextSize: this.helpTextSize, + submitFontColor: this.submitFontColor, + labelTextColor: this.labelTextColor, + submitAlignment: this.submitAlignment, + submitSize: this.submitSize, + helpTextColor: this.helpTextColor, + submitColor: this.submitColor, }, }, - "legalConsentOptions": { - "type": this.legalConsentOptionsType, + legalConsentOptions: { + type: this.legalConsentOptionsType, ...(this.legalConsentOptionsObject ? parseObject(this.legalConsentOptionsObject) : {}), diff --git a/components/hubspot/actions/update-landing-page/update-landing-page.mjs b/components/hubspot/actions/update-landing-page/update-landing-page.mjs index cdc2c2e6d4703..13d2dbdba5bd6 100644 --- a/components/hubspot/actions/update-landing-page/update-landing-page.mjs +++ b/components/hubspot/actions/update-landing-page/update-landing-page.mjs @@ -5,8 +5,9 @@ import commonPageProp from "../common/common-page-prop.mjs"; export default { key: "hubspot-update-landing-page", name: "Update Landing Page", - description: "Update a landing page in HubSpot. [See the documentation](https://developers.hubspot.com/docs/reference/api/cms/pages#patch-%2Fcms%2Fv3%2Fpages%2Flanding-pages%2F%7Bobjectid%7D)", - version: "0.0.2", + description: + "Update a landing page in HubSpot. [See the documentation](https://developers.hubspot.com/docs/reference/api/cms/pages#patch-%2Fcms%2Fv3%2Fpages%2Flanding-pages%2F%7Bobjectid%7D)", + version: "0.0.3", type: "action", props: { hubspot, @@ -55,7 +56,10 @@ export default { }, }); - $.export("$summary", `Successfully updated landing page with ID: ${response.id}`); + $.export( + "$summary", + `Successfully updated landing page with ID: ${response.id}`, + ); return response; }, diff --git a/components/hubspot/actions/update-lead/update-lead.mjs b/components/hubspot/actions/update-lead/update-lead.mjs index c5e28edb90914..01dcf0062b9bc 100644 --- a/components/hubspot/actions/update-lead/update-lead.mjs +++ b/components/hubspot/actions/update-lead/update-lead.mjs @@ -6,8 +6,9 @@ export default { ...common, key: "hubspot-update-lead", name: "Update Lead", - description: "Update a lead in Hubspot. [See the documentation](https://developers.hubspot.com/beta-docs/guides/api/crm/objects/leads#update-leads)", - version: "0.0.13", + description: + "Update a lead in Hubspot. [See the documentation](https://developers.hubspot.com/beta-docs/guides/api/crm/objects/leads#update-leads)", + version: "0.0.14", type: "action", methods: { ...common.methods, diff --git a/components/hubspot/actions/update-page/update-page.mjs b/components/hubspot/actions/update-page/update-page.mjs index 138a64aefe82a..062682e16f428 100644 --- a/components/hubspot/actions/update-page/update-page.mjs +++ b/components/hubspot/actions/update-page/update-page.mjs @@ -5,8 +5,9 @@ import commonPageProp from "../common/common-page-prop.mjs"; export default { key: "hubspot-update-page", name: "Update Page", - description: "Update a page in Hubspot. [See the documentation](https://developers.hubspot.com/docs/reference/api/cms/pages#patch-%2Fcms%2Fv3%2Fpages%2Fsite-pages%2F%7Bobjectid%7D)", - version: "0.0.2", + description: + "Update a page in Hubspot. [See the documentation](https://developers.hubspot.com/docs/reference/api/cms/pages#patch-%2Fcms%2Fv3%2Fpages%2Fsite-pages%2F%7Bobjectid%7D)", + version: "0.0.3", type: "action", props: { hubspot, diff --git a/components/hubspot/sources/delete-blog-article/delete-blog-article.mjs b/components/hubspot/sources/delete-blog-article/delete-blog-article.mjs index ca8a4020223ac..4acc77d858b06 100644 --- a/components/hubspot/sources/delete-blog-article/delete-blog-article.mjs +++ b/components/hubspot/sources/delete-blog-article/delete-blog-article.mjs @@ -6,7 +6,7 @@ export default { key: "hubspot-delete-blog-article", name: "Deleted Blog Posts", description: "Emit new event for each deleted blog post.", - version: "0.0.27", + version: "0.0.28", dedupe: "unique", type: "source", methods: { @@ -16,8 +16,7 @@ export default { }, generateMeta(blogpost) { const { - id, - name: summary, + id, name: summary, } = blogpost; const ts = Date.parse(blogpost.created); return { diff --git a/components/hubspot/sources/new-company-property-change/new-company-property-change.mjs b/components/hubspot/sources/new-company-property-change/new-company-property-change.mjs index 70a9860f8f535..6cbfa322873cb 100644 --- a/components/hubspot/sources/new-company-property-change/new-company-property-change.mjs +++ b/components/hubspot/sources/new-company-property-change/new-company-property-change.mjs @@ -6,8 +6,9 @@ export default { ...common, key: "hubspot-new-company-property-change", name: "New Company Property Change", - description: "Emit new event when a specified property is provided or updated on a company. [See the documentation](https://developers.hubspot.com/docs/api/crm/companies)", - version: "0.0.20", + description: + "Emit new event when a specified property is provided or updated on a company. [See the documentation](https://developers.hubspot.com/docs/api/crm/companies)", + version: "0.0.21", dedupe: "unique", type: "source", props: { @@ -33,8 +34,7 @@ export default { }, generateMeta(company) { const { - id, - properties, + id, properties, } = company; const ts = this.getTs(company); return { @@ -97,10 +97,15 @@ export default { const propertyNames = properties.map((property) => property.name); if (!propertyNames.includes(this.property)) { - throw new Error(`Property "${this.property}" not supported for Companies. See Hubspot's default company properties documentation - https://knowledge.hubspot.com/companies/hubspot-crm-default-company-properties`); + throw new Error( + `Property "${this.property}" not supported for Companies. See Hubspot's default company properties documentation - https://knowledge.hubspot.com/companies/hubspot-crm-default-company-properties`, + ); } - const updatedCompanies = await this.getPaginatedItems(this.hubspot.searchCRM, params); + const updatedCompanies = await this.getPaginatedItems( + this.hubspot.searchCRM, + params, + ); if (!updatedCompanies.length) { return; diff --git a/components/hubspot/sources/new-contact-added-to-list/new-contact-added-to-list.mjs b/components/hubspot/sources/new-contact-added-to-list/new-contact-added-to-list.mjs index 32872284ebae5..239797a0c6c5f 100644 --- a/components/hubspot/sources/new-contact-added-to-list/new-contact-added-to-list.mjs +++ b/components/hubspot/sources/new-contact-added-to-list/new-contact-added-to-list.mjs @@ -2,6 +2,7 @@ import common from "../common/common.mjs"; import { DEFAULT_LIMIT, DEFAULT_CONTACT_PROPERTIES, + API_PATH, } from "../../common/constants.mjs"; import sampleEmit from "./test-event.mjs"; @@ -22,13 +23,26 @@ export default { content: `Properties:\n\`${DEFAULT_CONTACT_PROPERTIES.join(", ")}\``, }, listId: { - propDefinition: [ - common.props.hubspot, - "listId", - ], type: "string", - description: "Select the list to watch for new contacts.", - optional: false, + label: "List ID", + description: "Select the list to watch for new contacts", + withLabel: true, + async options({ page }) { + const { lists } = await this.searchLists({ + data: { + count: DEFAULT_LIMIT, + offset: page * DEFAULT_LIMIT, + }, + }); + return ( + lists?.map(({ + listId, name, + }) => ({ + value: listId, + label: name, + })) || [] + ); + }, }, properties: { propDefinition: [ @@ -53,6 +67,14 @@ export default { _setLastMembershipTimestamp(listId, timestamp) { this.db.set(this._getKey(listId), timestamp); }, + searchLists(opts = {}) { + return this.hubspot.makeRequest({ + api: API_PATH.CRMV3, + method: "POST", + endpoint: "/lists/search", + ...opts, + }); + }, getTs() { return Date.now(); }, @@ -190,19 +212,16 @@ export default { return newMemberships; }, async processResults() { - const { - listId, - listInfo: { name }, - } = this; - - if (!listId) { + if (!this.listId) { console.warn("No list selected to monitor"); return; } + const listId = this.listId?.value || this.listId; + const listInfo = { listId, - name: `List ${name}`, + name: `List ${this.listId?.label || listId}`, }; try { diff --git a/components/hubspot/sources/new-contact-property-change/new-contact-property-change.mjs b/components/hubspot/sources/new-contact-property-change/new-contact-property-change.mjs index 41b8996d84fd2..2ffdebfd4073d 100644 --- a/components/hubspot/sources/new-contact-property-change/new-contact-property-change.mjs +++ b/components/hubspot/sources/new-contact-property-change/new-contact-property-change.mjs @@ -6,8 +6,9 @@ export default { ...common, key: "hubspot-new-contact-property-change", name: "New Contact Property Change", - description: "Emit new event when a specified property is provided or updated on a contact. [See the documentation](https://developers.hubspot.com/docs/api/crm/contacts)", - version: "0.0.22", + description: + "Emit new event when a specified property is provided or updated on a contact. [See the documentation](https://developers.hubspot.com/docs/api/crm/contacts)", + version: "0.0.23", dedupe: "unique", type: "source", props: { @@ -33,8 +34,7 @@ export default { }, generateMeta(contact) { const { - id, - properties, + id, properties, } = contact; const ts = this.getTs(contact); return { @@ -96,10 +96,15 @@ export default { const properties = await this.hubspot.getContactProperties(); const propertyNames = properties.map((property) => property.name); if (!propertyNames.includes(this.property)) { - throw new Error(`Property "${this.property}" not supported for Contacts. See Hubspot's default contact properties documentation - https://knowledge.hubspot.com/contacts/hubspots-default-contact-properties`); + throw new Error( + `Property "${this.property}" not supported for Contacts. See Hubspot's default contact properties documentation - https://knowledge.hubspot.com/contacts/hubspots-default-contact-properties`, + ); } - const updatedContacts = await this.getPaginatedItems(this.hubspot.searchCRM, params); + const updatedContacts = await this.getPaginatedItems( + this.hubspot.searchCRM, + params, + ); if (!updatedContacts.length) { return; diff --git a/components/hubspot/sources/new-custom-object-property-change/new-custom-object-property-change.mjs b/components/hubspot/sources/new-custom-object-property-change/new-custom-object-property-change.mjs index a78ad74f9462f..c9dfc6070979a 100644 --- a/components/hubspot/sources/new-custom-object-property-change/new-custom-object-property-change.mjs +++ b/components/hubspot/sources/new-custom-object-property-change/new-custom-object-property-change.mjs @@ -5,8 +5,9 @@ export default { ...common, key: "hubspot-new-custom-object-property-change", name: "New Custom Object Property Change", - description: "Emit new event when a specified property is provided or updated on a custom object.", - version: "0.0.12", + description: + "Emit new event when a specified property is provided or updated on a custom object.", + version: "0.0.13", dedupe: "unique", type: "source", props: { @@ -38,8 +39,7 @@ export default { }, generateMeta(object) { const { - id, - properties, + id, properties, } = object; const ts = this.getTs(object); return { @@ -102,10 +102,15 @@ export default { const propertyNames = properties.map((property) => property.name); if (!propertyNames.includes(this.property)) { - throw new Error(`Property "${this.property}" not supported for custom object ${this.objectSchema}.`); + throw new Error( + `Property "${this.property}" not supported for custom object ${this.objectSchema}.`, + ); } - const updatedObjects = await this.getPaginatedItems(this.hubspot.searchCRM, params); + const updatedObjects = await this.getPaginatedItems( + this.hubspot.searchCRM, + params, + ); if (!updatedObjects.length) { return; diff --git a/components/hubspot/sources/new-deal-in-stage/new-deal-in-stage.mjs b/components/hubspot/sources/new-deal-in-stage/new-deal-in-stage.mjs index a047e8ed4daa4..fc653985eadd2 100644 --- a/components/hubspot/sources/new-deal-in-stage/new-deal-in-stage.mjs +++ b/components/hubspot/sources/new-deal-in-stage/new-deal-in-stage.mjs @@ -11,7 +11,7 @@ export default { key: "hubspot-new-deal-in-stage", name: "New Deal In Stage", description: "Emit new event for each new deal in a stage.", - version: "0.0.33", + version: "0.0.34", dedupe: "unique", type: "source", props: { @@ -45,8 +45,7 @@ export default { }, emitEvent(deal, ts) { const { - id, - properties, + id, properties, } = deal; this.$emit(deal, { id: `${id}${properties.dealstage}`, @@ -103,7 +102,9 @@ export default { const ts = await this.getTs(deal); if (this.isRelevant(ts, after)) { if (deal.properties.hubspot_owner_id) { - deal.properties.owner = await this.getOwner(deal.properties.hubspot_owner_id); + deal.properties.owner = await this.getOwner( + deal.properties.hubspot_owner_id, + ); } this.emitEvent(deal, ts); if (ts > maxTs) { diff --git a/components/hubspot/sources/new-deal-property-change/new-deal-property-change.mjs b/components/hubspot/sources/new-deal-property-change/new-deal-property-change.mjs index c9e9918eb4788..6cb8fa630806c 100644 --- a/components/hubspot/sources/new-deal-property-change/new-deal-property-change.mjs +++ b/components/hubspot/sources/new-deal-property-change/new-deal-property-change.mjs @@ -6,8 +6,9 @@ export default { ...common, key: "hubspot-new-deal-property-change", name: "New Deal Property Change", - description: "Emit new event when a specified property is provided or updated on a deal. [See the documentation](https://developers.hubspot.com/docs/api/crm/deals)", - version: "0.0.21", + description: + "Emit new event when a specified property is provided or updated on a deal. [See the documentation](https://developers.hubspot.com/docs/api/crm/deals)", + version: "0.0.22", dedupe: "unique", type: "source", props: { @@ -93,10 +94,15 @@ export default { const properties = await this.hubspot.getDealProperties(); const propertyNames = properties.map((property) => property.name); if (!propertyNames.includes(this.property)) { - throw new Error(`Property "${this.property}" not supported for Deals. See Hubspot's default deal properties documentation - https://knowledge.hubspot.com/crm-deals/hubspots-default-deal-properties`); + throw new Error( + `Property "${this.property}" not supported for Deals. See Hubspot's default deal properties documentation - https://knowledge.hubspot.com/crm-deals/hubspots-default-deal-properties`, + ); } - const updatedDeals = await this.getPaginatedItems(this.hubspot.searchCRM, params); + const updatedDeals = await this.getPaginatedItems( + this.hubspot.searchCRM, + params, + ); if (!updatedDeals.length) { return; diff --git a/components/hubspot/sources/new-email-event/new-email-event.mjs b/components/hubspot/sources/new-email-event/new-email-event.mjs index 1d0c1df69dcab..01938e8491bcc 100644 --- a/components/hubspot/sources/new-email-event/new-email-event.mjs +++ b/components/hubspot/sources/new-email-event/new-email-event.mjs @@ -8,7 +8,7 @@ export default { key: "hubspot-new-email-event", name: "New Email Event", description: "Emit new event for each new Hubspot email event.", - version: "0.0.30", + version: "0.0.31", dedupe: "unique", type: "source", props: { @@ -28,9 +28,7 @@ export default { }, generateMeta(emailEvent) { const { - id, - recipient, - type, + id, recipient, type, } = emailEvent; const ts = this.getTs(emailEvent); return { diff --git a/components/hubspot/sources/new-email-subscriptions-timeline/new-email-subscriptions-timeline.mjs b/components/hubspot/sources/new-email-subscriptions-timeline/new-email-subscriptions-timeline.mjs index 5d4f471371f9c..4ec88a67f3548 100644 --- a/components/hubspot/sources/new-email-subscriptions-timeline/new-email-subscriptions-timeline.mjs +++ b/components/hubspot/sources/new-email-subscriptions-timeline/new-email-subscriptions-timeline.mjs @@ -5,8 +5,9 @@ export default { ...common, key: "hubspot-new-email-subscriptions-timeline", name: "New Email Subscriptions Timeline", - description: "Emit new event when a new email timeline subscription is added for the portal.", - version: "0.0.27", + description: + "Emit new event when a new email timeline subscription is added for the portal.", + version: "0.0.28", dedupe: "unique", type: "source", methods: { diff --git a/components/hubspot/sources/new-engagement/new-engagement.mjs b/components/hubspot/sources/new-engagement/new-engagement.mjs index 6b67b5a911410..55c8427abbf9b 100644 --- a/components/hubspot/sources/new-engagement/new-engagement.mjs +++ b/components/hubspot/sources/new-engagement/new-engagement.mjs @@ -7,8 +7,9 @@ export default { ...common, key: "hubspot-new-engagement", name: "New Engagement", - description: "Emit new event for each new engagement created. This action returns a maximum of 5000 records at a time, make sure you set a correct time range so you don't miss any events", - version: "0.0.32", + description: + "Emit new event for each new engagement created. This action returns a maximum of 5000 records at a time, make sure you set a correct time range so you don't miss any events", + version: "0.0.33", dedupe: "unique", type: "source", props: { @@ -28,8 +29,7 @@ export default { }, generateMeta(engagement) { const { - id, - type, + id, type, } = engagement.engagement; const ts = this.getTs(engagement); return { diff --git a/components/hubspot/sources/new-event/new-event.mjs b/components/hubspot/sources/new-event/new-event.mjs index 0c4e482931d5d..760d791feff90 100644 --- a/components/hubspot/sources/new-event/new-event.mjs +++ b/components/hubspot/sources/new-event/new-event.mjs @@ -7,8 +7,9 @@ export default { ...common, key: "hubspot-new-event", name: "New Events", - description: "Emit new event for each new Hubspot event. Note: Only available for Marketing Hub Enterprise, Sales Hub Enterprise, Service Hub Enterprise, or CMS Hub Enterprise accounts", - version: "0.0.31", + description: + "Emit new event for each new Hubspot event. Note: Only available for Marketing Hub Enterprise, Sales Hub Enterprise, Service Hub Enterprise, or CMS Hub Enterprise accounts", + version: "0.0.32", dedupe: "unique", type: "source", props: { @@ -38,9 +39,10 @@ export default { objectId: this.objectIds[0], }, }); - } - catch { - throw new ConfigurationError("Error occurred. Please verify that your Hubspot account is one of: Marketing Hub Enterprise, Sales Hub Enterprise, Service Hub Enterprise, or CMS Hub Enterprise"); + } catch { + throw new ConfigurationError( + "Error occurred. Please verify that your Hubspot account is one of: Marketing Hub Enterprise, Sales Hub Enterprise, Service Hub Enterprise, or CMS Hub Enterprise", + ); } }, }, @@ -51,8 +53,7 @@ export default { }, generateMeta(result) { const { - id, - eventType, + id, eventType, } = result; return { id, diff --git a/components/hubspot/sources/new-form-submission/new-form-submission.mjs b/components/hubspot/sources/new-form-submission/new-form-submission.mjs index 53e1b53ce36e6..b3fe863b02ff1 100644 --- a/components/hubspot/sources/new-form-submission/new-form-submission.mjs +++ b/components/hubspot/sources/new-form-submission/new-form-submission.mjs @@ -6,7 +6,7 @@ export default { key: "hubspot-new-form-submission", name: "New Form Submission", description: "Emit new event for each new submission of a form.", - version: "0.0.32", + version: "0.0.33", dedupe: "unique", type: "source", props: { diff --git a/components/hubspot/sources/new-note/new-note.mjs b/components/hubspot/sources/new-note/new-note.mjs index 606bf288e49b4..1632cd5d16ab3 100644 --- a/components/hubspot/sources/new-note/new-note.mjs +++ b/components/hubspot/sources/new-note/new-note.mjs @@ -7,8 +7,9 @@ export default { ...common, key: "hubspot-new-note", name: "New Note Created", - description: "Emit new event for each new note created. [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/engagements/notes#get-%2Fcrm%2Fv3%2Fobjects%2Fnotes)", - version: "1.0.8", + description: + "Emit new event for each new note created. [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/engagements/notes#get-%2Fcrm%2Fv3%2Fobjects%2Fnotes)", + version: "1.0.9", type: "source", dedupe: "unique", methods: { @@ -34,7 +35,9 @@ export default { const objectTypes = OBJECT_TYPES.map(({ value }) => value); const { results: custom } = await this.hubspot.listSchemas(); - const customObjects = custom?.map(({ fullyQualifiedName }) => fullyQualifiedName); + const customObjects = custom?.map( + ({ fullyQualifiedName }) => fullyQualifiedName, + ); const associations = [ ...objectTypes, ...customObjects, @@ -49,7 +52,10 @@ export default { }; }, async processResults(after, params) { - const notes = await this.getPaginatedItems(this.hubspot.listNotes.bind(this), params); + const notes = await this.getPaginatedItems( + this.hubspot.listNotes.bind(this), + params, + ); await this.processEvents(notes, after); }, }, diff --git a/components/hubspot/sources/new-or-updated-blog-article/new-or-updated-blog-article.mjs b/components/hubspot/sources/new-or-updated-blog-article/new-or-updated-blog-article.mjs index 42c1c012df43f..e0323a83eec40 100644 --- a/components/hubspot/sources/new-or-updated-blog-article/new-or-updated-blog-article.mjs +++ b/components/hubspot/sources/new-or-updated-blog-article/new-or-updated-blog-article.mjs @@ -7,7 +7,7 @@ export default { key: "hubspot-new-or-updated-blog-article", name: "New or Updated Blog Post", description: "Emit new event for each new or updated blog post in Hubspot.", - version: "0.0.14", + version: "0.0.15", dedupe: "unique", type: "source", props: { @@ -29,8 +29,7 @@ export default { }, generateMeta(blogpost) { const { - id, - name: summary, + id, name: summary, } = blogpost; const ts = this.getTs(blogpost); return { diff --git a/components/hubspot/sources/new-or-updated-company/new-or-updated-company.mjs b/components/hubspot/sources/new-or-updated-company/new-or-updated-company.mjs index f6ecb5245d68f..33e2104d0ae5a 100644 --- a/components/hubspot/sources/new-or-updated-company/new-or-updated-company.mjs +++ b/components/hubspot/sources/new-or-updated-company/new-or-updated-company.mjs @@ -10,7 +10,7 @@ export default { key: "hubspot-new-or-updated-company", name: "New or Updated Company", description: "Emit new event for each new or updated company in Hubspot.", - version: "0.0.14", + version: "0.0.15", dedupe: "unique", type: "source", props: { @@ -47,8 +47,7 @@ export default { }, generateMeta(company) { const { - id, - properties, + id, properties, } = company; const ts = this.getTs(company); return { diff --git a/components/hubspot/sources/new-or-updated-contact/new-or-updated-contact.mjs b/components/hubspot/sources/new-or-updated-contact/new-or-updated-contact.mjs index 8ed95cbb4f4bd..6af0be9e58421 100644 --- a/components/hubspot/sources/new-or-updated-contact/new-or-updated-contact.mjs +++ b/components/hubspot/sources/new-or-updated-contact/new-or-updated-contact.mjs @@ -10,7 +10,7 @@ export default { key: "hubspot-new-or-updated-contact", name: "New or Updated Contact", description: "Emit new event for each new or updated contact in Hubspot.", - version: "0.0.14", + version: "0.0.15", dedupe: "unique", type: "source", props: { diff --git a/components/hubspot/sources/new-or-updated-crm-object/new-or-updated-crm-object.mjs b/components/hubspot/sources/new-or-updated-crm-object/new-or-updated-crm-object.mjs index 6d76f04a44079..bcf0b03ef3c86 100644 --- a/components/hubspot/sources/new-or-updated-crm-object/new-or-updated-crm-object.mjs +++ b/components/hubspot/sources/new-or-updated-crm-object/new-or-updated-crm-object.mjs @@ -6,8 +6,9 @@ export default { ...common, key: "hubspot-new-or-updated-crm-object", name: "New or Updated CRM Object", - description: "Emit new event each time a CRM Object of the specified object type is updated.", - version: "0.0.27", + description: + "Emit new event each time a CRM Object of the specified object type is updated.", + version: "0.0.28", dedupe: "unique", type: "source", props: { @@ -40,9 +41,10 @@ export default { return null; }, getObjectParams(object) { - const propertyName = (object == "contacts") - ? "lastmodifieddate" - : "hs_lastmodifieddate"; + const propertyName = + object == "contacts" + ? "lastmodifieddate" + : "hs_lastmodifieddate"; return { data: { limit: DEFAULT_LIMIT, @@ -57,9 +59,10 @@ export default { }; }, async processResults(after) { - const object = (this.objectType == "company") - ? "companies" - : `${this.objectType}s`; + const object = + this.objectType == "company" + ? "companies" + : `${this.objectType}s`; const params = this.getObjectParams(object); await this.searchCRM(params, after); }, diff --git a/components/hubspot/sources/new-or-updated-custom-object/new-or-updated-custom-object.mjs b/components/hubspot/sources/new-or-updated-custom-object/new-or-updated-custom-object.mjs index 082ca80ff7204..e69089a3126c5 100644 --- a/components/hubspot/sources/new-or-updated-custom-object/new-or-updated-custom-object.mjs +++ b/components/hubspot/sources/new-or-updated-custom-object/new-or-updated-custom-object.mjs @@ -6,8 +6,9 @@ export default { ...common, key: "hubspot-new-or-updated-custom-object", name: "New or Updated Custom Object", - description: "Emit new event each time a Custom Object of the specified schema is updated.", - version: "0.0.16", + description: + "Emit new event each time a Custom Object of the specified schema is updated.", + version: "0.0.17", dedupe: "unique", type: "source", props: { diff --git a/components/hubspot/sources/new-or-updated-deal/new-or-updated-deal.mjs b/components/hubspot/sources/new-or-updated-deal/new-or-updated-deal.mjs index bb0f8224a70f9..7565ecf01376e 100644 --- a/components/hubspot/sources/new-or-updated-deal/new-or-updated-deal.mjs +++ b/components/hubspot/sources/new-or-updated-deal/new-or-updated-deal.mjs @@ -10,7 +10,7 @@ export default { key: "hubspot-new-or-updated-deal", name: "New or Updated Deal", description: "Emit new event for each new or updated deal in Hubspot", - version: "0.0.14", + version: "0.0.15", dedupe: "unique", type: "source", props: { @@ -68,8 +68,7 @@ export default { }, generateMeta(deal) { const { - id, - properties, + id, properties, } = deal; const ts = this.getTs(deal); return { diff --git a/components/hubspot/sources/new-or-updated-line-item/new-or-updated-line-item.mjs b/components/hubspot/sources/new-or-updated-line-item/new-or-updated-line-item.mjs index a71760ee6b496..07483220749a5 100644 --- a/components/hubspot/sources/new-or-updated-line-item/new-or-updated-line-item.mjs +++ b/components/hubspot/sources/new-or-updated-line-item/new-or-updated-line-item.mjs @@ -1,5 +1,6 @@ import { - DEFAULT_LIMIT, DEFAULT_LINE_ITEM_PROPERTIES, + DEFAULT_LIMIT, + DEFAULT_LINE_ITEM_PROPERTIES, } from "../../common/constants.mjs"; import common from "../common/common.mjs"; import sampleEmit from "./test-event.mjs"; @@ -8,8 +9,9 @@ export default { ...common, key: "hubspot-new-or-updated-line-item", name: "New or Updated Line Item", - description: "Emit new event for each new line item added or updated in Hubspot.", - version: "0.0.14", + description: + "Emit new event for each new line item added or updated in Hubspot.", + version: "0.0.15", dedupe: "unique", type: "source", props: { diff --git a/components/hubspot/sources/new-or-updated-product/new-or-updated-product.mjs b/components/hubspot/sources/new-or-updated-product/new-or-updated-product.mjs index d8b28d4445dea..69ecdfddfcb8e 100644 --- a/components/hubspot/sources/new-or-updated-product/new-or-updated-product.mjs +++ b/components/hubspot/sources/new-or-updated-product/new-or-updated-product.mjs @@ -1,5 +1,6 @@ import { - DEFAULT_LIMIT, DEFAULT_PRODUCT_PROPERTIES, + DEFAULT_LIMIT, + DEFAULT_PRODUCT_PROPERTIES, } from "../../common/constants.mjs"; import common from "../common/common.mjs"; import sampleEmit from "./test-event.mjs"; @@ -9,7 +10,7 @@ export default { key: "hubspot-new-or-updated-product", name: "New or Updated Product", description: "Emit new event for each new or updated product in Hubspot.", - version: "0.0.14", + version: "0.0.15", dedupe: "unique", type: "source", props: { @@ -46,8 +47,7 @@ export default { }, generateMeta(product) { const { - id, - properties, + id, properties, } = product; const ts = this.getTs(product); return { diff --git a/components/hubspot/sources/new-social-media-message/new-social-media-message.mjs b/components/hubspot/sources/new-social-media-message/new-social-media-message.mjs index ced9962fab05f..79c7b0a4cf637 100644 --- a/components/hubspot/sources/new-social-media-message/new-social-media-message.mjs +++ b/components/hubspot/sources/new-social-media-message/new-social-media-message.mjs @@ -5,8 +5,9 @@ export default { ...common, key: "hubspot-new-social-media-message", name: "New Social Media Message", - description: "Emit new event when a message is posted from HubSpot to the specified social media channel. Note: Only available for Marketing Hub Enterprise accounts", - version: "0.0.27", + description: + "Emit new event when a message is posted from HubSpot to the specified social media channel. Note: Only available for Marketing Hub Enterprise accounts", + version: "0.0.28", type: "source", dedupe: "unique", props: { @@ -25,8 +26,7 @@ export default { }, generateMeta(message) { const { - broadcastGuid: id, - messageText: summary, + broadcastGuid: id, messageText: summary, } = message; const ts = this.getTs(message); return { diff --git a/components/hubspot/sources/new-task/new-task.mjs b/components/hubspot/sources/new-task/new-task.mjs index e1000b63dc6be..38a673e778889 100644 --- a/components/hubspot/sources/new-task/new-task.mjs +++ b/components/hubspot/sources/new-task/new-task.mjs @@ -7,8 +7,9 @@ export default { ...common, key: "hubspot-new-task", name: "New Task Created", - description: "Emit new event for each new task created. [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/engagements/tasks#get-%2Fcrm%2Fv3%2Fobjects%2Ftasks)", - version: "1.0.8", + description: + "Emit new event for each new task created. [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/engagements/tasks#get-%2Fcrm%2Fv3%2Fobjects%2Ftasks)", + version: "1.0.9", type: "source", dedupe: "unique", methods: { @@ -34,7 +35,9 @@ export default { const objectTypes = OBJECT_TYPES.map(({ value }) => value); const { results: custom } = await this.hubspot.listSchemas(); - const customObjects = custom?.map(({ fullyQualifiedName }) => fullyQualifiedName); + const customObjects = custom?.map( + ({ fullyQualifiedName }) => fullyQualifiedName, + ); const associations = [ ...objectTypes, ...customObjects, @@ -49,7 +52,10 @@ export default { }; }, async processResults(after, params) { - const tasks = await this.getPaginatedItems(this.hubspot.listTasks.bind(this), params); + const tasks = await this.getPaginatedItems( + this.hubspot.listTasks.bind(this), + params, + ); await this.processEvents(tasks, after); }, }, diff --git a/components/hubspot/sources/new-ticket-property-change/new-ticket-property-change.mjs b/components/hubspot/sources/new-ticket-property-change/new-ticket-property-change.mjs index f8f450d390c35..7e8d8f4643c6b 100644 --- a/components/hubspot/sources/new-ticket-property-change/new-ticket-property-change.mjs +++ b/components/hubspot/sources/new-ticket-property-change/new-ticket-property-change.mjs @@ -6,8 +6,9 @@ export default { ...common, key: "hubspot-new-ticket-property-change", name: "New Ticket Property Change", - description: "Emit new event when a specified property is provided or updated on a ticket. [See the documentation](https://developers.hubspot.com/docs/api/crm/tickets)", - version: "0.0.21", + description: + "Emit new event when a specified property is provided or updated on a ticket. [See the documentation](https://developers.hubspot.com/docs/api/crm/tickets)", + version: "0.0.22ack", dedupe: "unique", type: "source", props: { @@ -33,8 +34,7 @@ export default { }, generateMeta(ticket) { const { - id, - properties, + id, properties, } = ticket; const ts = this.getTs(ticket); return { @@ -97,10 +97,15 @@ export default { const propertyNames = properties.map((property) => property.name); if (!propertyNames.includes(this.property)) { - throw new Error(`Property "${this.property}" not supported for Tickets. See Hubspot's default ticket properties documentation - https://knowledge.hubspot.com/tickets/hubspots-default-ticket-properties`); + throw new Error( + `Property "${this.property}" not supported for Tickets. See Hubspot's default ticket properties documentation - https://knowledge.hubspot.com/tickets/hubspots-default-ticket-properties`, + ); } - const updatedTickets = await this.getPaginatedItems(this.hubspot.searchCRM, params); + const updatedTickets = await this.getPaginatedItems( + this.hubspot.searchCRM, + params, + ); if (!updatedTickets.length) { return; diff --git a/components/hubspot/sources/new-ticket/new-ticket.mjs b/components/hubspot/sources/new-ticket/new-ticket.mjs index 1e4db1465d9cd..f49da9ea36425 100644 --- a/components/hubspot/sources/new-ticket/new-ticket.mjs +++ b/components/hubspot/sources/new-ticket/new-ticket.mjs @@ -1,5 +1,6 @@ import { - DEFAULT_LIMIT, DEFAULT_TICKET_PROPERTIES, + DEFAULT_LIMIT, + DEFAULT_TICKET_PROPERTIES, } from "../../common/constants.mjs"; import common from "../common/common.mjs"; import sampleEmit from "./test-event.mjs"; @@ -9,7 +10,7 @@ export default { key: "hubspot-new-ticket", name: "New Ticket", description: "Emit new event for each new ticket created.", - version: "0.0.27", + version: "0.0.28", dedupe: "unique", type: "source", props: { @@ -37,8 +38,7 @@ export default { }, generateMeta(ticket) { const { - id, - properties, + id, properties, } = ticket; const ts = this.getTs(ticket); return { From 099fa4d54711ee66cbb2d27cb36346b29bcf0dc7 Mon Sep 17 00:00:00 2001 From: choeqq Date: Mon, 8 Sep 2025 18:42:17 +0200 Subject: [PATCH 9/9] bump versions --- .../hubspot/actions/add-contact-to-list/add-contact-to-list.mjs | 2 +- .../actions/batch-create-companies/batch-create-companies.mjs | 2 +- .../batch-create-or-update-contact.mjs | 2 +- .../actions/batch-update-companies/batch-update-companies.mjs | 2 +- .../actions/batch-upsert-companies/batch-upsert-companies.mjs | 2 +- components/hubspot/actions/clone-email/clone-email.mjs | 2 +- components/hubspot/actions/clone-site-page/clone-site-page.mjs | 2 +- .../hubspot/actions/create-associations/create-associations.mjs | 2 +- .../actions/create-communication/create-communication.mjs | 2 +- components/hubspot/actions/create-company/create-company.mjs | 2 +- .../actions/create-contact-workflow/create-contact-workflow.mjs | 2 +- .../actions/create-custom-object/create-custom-object.mjs | 2 +- components/hubspot/actions/create-deal/create-deal.mjs | 2 +- components/hubspot/actions/create-email/create-email.mjs | 2 +- .../hubspot/actions/create-engagement/create-engagement.mjs | 2 +- components/hubspot/actions/create-form/create-form.mjs | 2 +- .../hubspot/actions/create-landing-page/create-landing-page.mjs | 2 +- components/hubspot/actions/create-lead/create-lead.mjs | 2 +- components/hubspot/actions/create-meeting/create-meeting.mjs | 2 +- components/hubspot/actions/create-note/create-note.mjs | 2 +- .../create-or-update-contact/create-or-update-contact.mjs | 2 +- components/hubspot/actions/create-page/create-page.mjs | 2 +- components/hubspot/actions/create-task/create-task.mjs | 2 +- components/hubspot/actions/create-ticket/create-ticket.mjs | 2 +- .../enroll-contact-into-workflow.mjs | 2 +- .../actions/get-associated-emails/get-associated-emails.mjs | 2 +- .../actions/get-associated-meetings/get-associated-meetings.mjs | 2 +- components/hubspot/actions/get-company/get-company.mjs | 2 +- components/hubspot/actions/get-contact/get-contact.mjs | 2 +- components/hubspot/actions/get-deal/get-deal.mjs | 2 +- .../hubspot/actions/get-file-public-url/get-file-public-url.mjs | 2 +- components/hubspot/actions/get-meeting/get-meeting.mjs | 2 +- .../get-subscription-preferences.mjs | 2 +- components/hubspot/actions/list-blog-posts/list-blog-posts.mjs | 2 +- components/hubspot/actions/list-campaigns/list-campaigns.mjs | 2 +- components/hubspot/actions/list-forms/list-forms.mjs | 2 +- .../actions/list-marketing-emails/list-marketing-emails.mjs | 2 +- .../actions/list-marketing-events/list-marketing-events.mjs | 2 +- components/hubspot/actions/list-pages/list-pages.mjs | 2 +- components/hubspot/actions/list-templates/list-templates.mjs | 2 +- components/hubspot/actions/search-crm/search-crm.mjs | 2 +- components/hubspot/actions/update-company/update-company.mjs | 2 +- components/hubspot/actions/update-contact/update-contact.mjs | 2 +- .../actions/update-custom-object/update-custom-object.mjs | 2 +- components/hubspot/actions/update-deal/update-deal.mjs | 2 +- .../update-fields-on-the-form/update-fields-on-the-form.mjs | 2 +- .../hubspot/actions/update-landing-page/update-landing-page.mjs | 2 +- components/hubspot/actions/update-lead/update-lead.mjs | 2 +- components/hubspot/actions/update-page/update-page.mjs | 2 +- .../hubspot/sources/delete-blog-article/delete-blog-article.mjs | 2 +- .../new-company-property-change/new-company-property-change.mjs | 2 +- .../new-contact-property-change/new-contact-property-change.mjs | 2 +- .../new-custom-object-property-change.mjs | 2 +- .../hubspot/sources/new-deal-in-stage/new-deal-in-stage.mjs | 2 +- .../new-deal-property-change/new-deal-property-change.mjs | 2 +- components/hubspot/sources/new-email-event/new-email-event.mjs | 2 +- .../new-email-subscriptions-timeline.mjs | 2 +- components/hubspot/sources/new-engagement/new-engagement.mjs | 2 +- components/hubspot/sources/new-event/new-event.mjs | 2 +- .../hubspot/sources/new-form-submission/new-form-submission.mjs | 2 +- components/hubspot/sources/new-note/new-note.mjs | 2 +- .../new-or-updated-blog-article/new-or-updated-blog-article.mjs | 2 +- .../sources/new-or-updated-company/new-or-updated-company.mjs | 2 +- .../sources/new-or-updated-contact/new-or-updated-contact.mjs | 2 +- .../new-or-updated-crm-object/new-or-updated-crm-object.mjs | 2 +- .../new-or-updated-custom-object.mjs | 2 +- .../hubspot/sources/new-or-updated-deal/new-or-updated-deal.mjs | 2 +- .../new-or-updated-line-item/new-or-updated-line-item.mjs | 2 +- .../sources/new-or-updated-product/new-or-updated-product.mjs | 2 +- .../new-social-media-message/new-social-media-message.mjs | 2 +- components/hubspot/sources/new-task/new-task.mjs | 2 +- .../new-ticket-property-change/new-ticket-property-change.mjs | 2 +- components/hubspot/sources/new-ticket/new-ticket.mjs | 2 +- 73 files changed, 73 insertions(+), 73 deletions(-) diff --git a/components/hubspot/actions/add-contact-to-list/add-contact-to-list.mjs b/components/hubspot/actions/add-contact-to-list/add-contact-to-list.mjs index 4187d75cd5373..dbe619d2e6a79 100644 --- a/components/hubspot/actions/add-contact-to-list/add-contact-to-list.mjs +++ b/components/hubspot/actions/add-contact-to-list/add-contact-to-list.mjs @@ -5,7 +5,7 @@ export default { name: "Add Contact to List", description: "Adds a contact to a specific static list. [See the documentation](https://legacydocs.hubspot.com/docs/methods/lists/add_contact_to_list)", - version: "0.0.22", + version: "0.0.23", type: "action", props: { hubspot, diff --git a/components/hubspot/actions/batch-create-companies/batch-create-companies.mjs b/components/hubspot/actions/batch-create-companies/batch-create-companies.mjs index 1e1f1dc0e5fdc..a49540822501a 100644 --- a/components/hubspot/actions/batch-create-companies/batch-create-companies.mjs +++ b/components/hubspot/actions/batch-create-companies/batch-create-companies.mjs @@ -8,7 +8,7 @@ export default { name: "Batch Create Companies", description: "Create a batch of companies in Hubspot. [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/objects/companies#post-%2Fcrm%2Fv3%2Fobjects%2Fcompanies%2Fbatch%2Fcreate)", - version: "0.0.5", + version: "0.0.6", type: "action", props: { hubspot, diff --git a/components/hubspot/actions/batch-create-or-update-contact/batch-create-or-update-contact.mjs b/components/hubspot/actions/batch-create-or-update-contact/batch-create-or-update-contact.mjs index 591db0420a509..2548bf1781126 100644 --- a/components/hubspot/actions/batch-create-or-update-contact/batch-create-or-update-contact.mjs +++ b/components/hubspot/actions/batch-create-or-update-contact/batch-create-or-update-contact.mjs @@ -5,7 +5,7 @@ export default { name: "Batch Create or Update Contact", description: "Create or update a batch of contacts by its ID or email. [See the documentation](https://developers.hubspot.com/docs/api/crm/contacts)", - version: "0.0.19", + version: "0.0.20", type: "action", props: { hubspot, diff --git a/components/hubspot/actions/batch-update-companies/batch-update-companies.mjs b/components/hubspot/actions/batch-update-companies/batch-update-companies.mjs index b10cd0d22d81d..4fa4c37ac95fa 100644 --- a/components/hubspot/actions/batch-update-companies/batch-update-companies.mjs +++ b/components/hubspot/actions/batch-update-companies/batch-update-companies.mjs @@ -8,7 +8,7 @@ export default { name: "Batch Update Companies", description: "Update a batch of companies in Hubspot. [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/objects/companies#post-%2Fcrm%2Fv3%2Fobjects%2Fcompanies%2Fbatch%2Fupdate)", - version: "0.0.5", + version: "0.0.6", type: "action", props: { hubspot, diff --git a/components/hubspot/actions/batch-upsert-companies/batch-upsert-companies.mjs b/components/hubspot/actions/batch-upsert-companies/batch-upsert-companies.mjs index 26a88231567cb..4878a9e35c957 100644 --- a/components/hubspot/actions/batch-upsert-companies/batch-upsert-companies.mjs +++ b/components/hubspot/actions/batch-upsert-companies/batch-upsert-companies.mjs @@ -8,7 +8,7 @@ export default { name: "Batch Upsert Companies", description: "Upsert a batch of companies in Hubspot. [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/objects/companies#post-%2Fcrm%2Fv3%2Fobjects%2Fcompanies%2Fbatch%2Fupsert)", - version: "0.0.5", + version: "0.0.6", type: "action", props: { hubspot, diff --git a/components/hubspot/actions/clone-email/clone-email.mjs b/components/hubspot/actions/clone-email/clone-email.mjs index 43e105cbcbf0e..b5a79c5c33446 100644 --- a/components/hubspot/actions/clone-email/clone-email.mjs +++ b/components/hubspot/actions/clone-email/clone-email.mjs @@ -6,7 +6,7 @@ export default { name: "Clone Marketing Email", description: "Clone a marketing email in HubSpot. [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/emails/marketing-emails#post-%2Fmarketing%2Fv3%2Femails%2Fclone)", - version: "0.0.3", + version: "0.0.4", type: "action", props: { hubspot, diff --git a/components/hubspot/actions/clone-site-page/clone-site-page.mjs b/components/hubspot/actions/clone-site-page/clone-site-page.mjs index 8469d6d17bde1..6a6bd4c562d46 100644 --- a/components/hubspot/actions/clone-site-page/clone-site-page.mjs +++ b/components/hubspot/actions/clone-site-page/clone-site-page.mjs @@ -5,7 +5,7 @@ export default { name: "Clone Site Page", description: "Clone a site page in Hubspot. [See the documentation](https://developers.hubspot.com/docs/reference/api/cms/pages#post-%2Fcms%2Fv3%2Fpages%2Fsite-pages%2Fclone)", - version: "0.0.3", + version: "0.0.4", type: "action", props: { hubspot, diff --git a/components/hubspot/actions/create-associations/create-associations.mjs b/components/hubspot/actions/create-associations/create-associations.mjs index 02c7587c74818..630985abed061 100644 --- a/components/hubspot/actions/create-associations/create-associations.mjs +++ b/components/hubspot/actions/create-associations/create-associations.mjs @@ -6,7 +6,7 @@ export default { name: "Create Associations", description: "Create associations between objects. [See the documentation](https://developers.hubspot.com/docs/api/crm/associations#endpoint?spec=POST-/crm/v3/associations/{fromObjectType}/{toObjectType}/batch/create)", - version: "1.0.8", + version: "1.0.9", type: "action", props: { hubspot, diff --git a/components/hubspot/actions/create-communication/create-communication.mjs b/components/hubspot/actions/create-communication/create-communication.mjs index 1c9815e41c653..9347933c3853e 100644 --- a/components/hubspot/actions/create-communication/create-communication.mjs +++ b/components/hubspot/actions/create-communication/create-communication.mjs @@ -9,7 +9,7 @@ export default { name: "Create Communication", description: "Create a WhatsApp, LinkedIn, or SMS message. [See the documentation](https://developers.hubspot.com/beta-docs/reference/api/crm/engagements/communications/v3#post-%2Fcrm%2Fv3%2Fobjects%2Fcommunications)", - version: "0.0.15", + version: "0.0.16", type: "action", props: { ...appProp.props, diff --git a/components/hubspot/actions/create-company/create-company.mjs b/components/hubspot/actions/create-company/create-company.mjs index a70d345d9a6f8..2a555e202c7ea 100644 --- a/components/hubspot/actions/create-company/create-company.mjs +++ b/components/hubspot/actions/create-company/create-company.mjs @@ -7,7 +7,7 @@ export default { name: "Create Company", description: "Create a company in Hubspot. [See the documentation](https://developers.hubspot.com/docs/api/crm/companies#endpoint?spec=POST-/crm/v3/objects/companies)", - version: "0.0.26", + version: "0.0.27", type: "action", methods: { ...common.methods, diff --git a/components/hubspot/actions/create-contact-workflow/create-contact-workflow.mjs b/components/hubspot/actions/create-contact-workflow/create-contact-workflow.mjs index a7be2e848c94e..3da4b1bb29f04 100644 --- a/components/hubspot/actions/create-contact-workflow/create-contact-workflow.mjs +++ b/components/hubspot/actions/create-contact-workflow/create-contact-workflow.mjs @@ -6,7 +6,7 @@ export default { name: "Create Contact Workflow", description: "Create a contact workflow in Hubspot. [See the documentation](https://developers.hubspot.com/docs/reference/api/automation/create-manage-workflows#post-%2Fautomation%2Fv4%2Fflows)", - version: "0.0.4", + version: "0.0.5", type: "action", props: { hubspot, diff --git a/components/hubspot/actions/create-custom-object/create-custom-object.mjs b/components/hubspot/actions/create-custom-object/create-custom-object.mjs index a7160732e223e..8d28bd245a304 100644 --- a/components/hubspot/actions/create-custom-object/create-custom-object.mjs +++ b/components/hubspot/actions/create-custom-object/create-custom-object.mjs @@ -7,7 +7,7 @@ export default { name: "Create Custom Object", description: "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)", - version: "1.0.8", + version: "1.0.9", type: "action", props: { ...appProp.props, diff --git a/components/hubspot/actions/create-deal/create-deal.mjs b/components/hubspot/actions/create-deal/create-deal.mjs index 4f576d5d3fd3a..c62ccb391d5a4 100644 --- a/components/hubspot/actions/create-deal/create-deal.mjs +++ b/components/hubspot/actions/create-deal/create-deal.mjs @@ -7,7 +7,7 @@ export default { name: "Create Deal", description: "Create a deal in Hubspot. [See the documentation](https://developers.hubspot.com/docs/api/crm/deals#endpoint?spec=POST-/crm/v3/objects/deals)", - version: "0.0.26", + version: "0.0.27", type: "action", props: { ...common.props, diff --git a/components/hubspot/actions/create-email/create-email.mjs b/components/hubspot/actions/create-email/create-email.mjs index cc78355ee6bba..5e34df4abef15 100644 --- a/components/hubspot/actions/create-email/create-email.mjs +++ b/components/hubspot/actions/create-email/create-email.mjs @@ -10,7 +10,7 @@ export default { name: "Create Marketing Email", description: "Create a marketing email in Hubspot. [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/emails/marketing-emails#post-%2Fmarketing%2Fv3%2Femails%2F)", - version: "0.0.3", + version: "0.0.4", type: "action", props: { hubspot, diff --git a/components/hubspot/actions/create-engagement/create-engagement.mjs b/components/hubspot/actions/create-engagement/create-engagement.mjs index 089c94adb3b74..a18502863dc43 100644 --- a/components/hubspot/actions/create-engagement/create-engagement.mjs +++ b/components/hubspot/actions/create-engagement/create-engagement.mjs @@ -11,7 +11,7 @@ export default { name: "Create Engagement", description: "Create a new engagement for a contact. [See the documentation](https://developers.hubspot.com/docs/api/crm/engagements)", - version: "0.0.25", + version: "0.0.26", type: "action", props: { ...common.props, diff --git a/components/hubspot/actions/create-form/create-form.mjs b/components/hubspot/actions/create-form/create-form.mjs index 4292abfb3de46..01d81499c0b6f 100644 --- a/components/hubspot/actions/create-form/create-form.mjs +++ b/components/hubspot/actions/create-form/create-form.mjs @@ -10,7 +10,7 @@ export default { name: "Create Form", description: "Create a form in HubSpot. [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/forms#post-%2Fmarketing%2Fv3%2Fforms%2F)", - version: "0.0.3", + version: "0.0.4", type: "action", props: { hubspot, diff --git a/components/hubspot/actions/create-landing-page/create-landing-page.mjs b/components/hubspot/actions/create-landing-page/create-landing-page.mjs index aa42f774b5506..71013eafe223a 100644 --- a/components/hubspot/actions/create-landing-page/create-landing-page.mjs +++ b/components/hubspot/actions/create-landing-page/create-landing-page.mjs @@ -7,7 +7,7 @@ export default { name: "Create Landing Page", description: "Create a landing page in Hubspot. [See the documentation](https://developers.hubspot.com/docs/reference/api/cms/pages#post-%2Fcms%2Fv3%2Fpages%2Flanding-pages)", - version: "0.0.3", + version: "0.0.4", type: "action", props: { hubspot, diff --git a/components/hubspot/actions/create-lead/create-lead.mjs b/components/hubspot/actions/create-lead/create-lead.mjs index 38a164bfaa1cd..03ff7e73983e0 100644 --- a/components/hubspot/actions/create-lead/create-lead.mjs +++ b/components/hubspot/actions/create-lead/create-lead.mjs @@ -10,7 +10,7 @@ export default { name: "Create Lead", description: "Create a lead in Hubspot. [See the documentation](https://developers.hubspot.com/beta-docs/guides/api/crm/objects/leads#create-leads)", - version: "0.0.14", + version: "0.0.15", type: "action", props: { ...appProp.props, diff --git a/components/hubspot/actions/create-meeting/create-meeting.mjs b/components/hubspot/actions/create-meeting/create-meeting.mjs index 304f119bb5ef7..2c4bbfd18a111 100644 --- a/components/hubspot/actions/create-meeting/create-meeting.mjs +++ b/components/hubspot/actions/create-meeting/create-meeting.mjs @@ -11,7 +11,7 @@ export default { name: "Create Meeting", description: "Creates a new meeting with optional associations to other objects. [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/engagements/meetings#post-%2Fcrm%2Fv3%2Fobjects%2Fmeetings)", - version: "0.0.7", + version: "0.0.8", type: "action", props: { ...common.props, diff --git a/components/hubspot/actions/create-note/create-note.mjs b/components/hubspot/actions/create-note/create-note.mjs index e02a708ff8b51..1740ee13568c7 100644 --- a/components/hubspot/actions/create-note/create-note.mjs +++ b/components/hubspot/actions/create-note/create-note.mjs @@ -8,7 +8,7 @@ export default { name: "Create Note", description: "Create a new note. [See the documentation](https://developers.hubspot.com/docs/api/crm/engagements)", - version: "0.0.6", + version: "0.0.7", type: "action", props: { ...common.props, diff --git a/components/hubspot/actions/create-or-update-contact/create-or-update-contact.mjs b/components/hubspot/actions/create-or-update-contact/create-or-update-contact.mjs index d5e62aaeb44dc..8ce619b9fca36 100644 --- a/components/hubspot/actions/create-or-update-contact/create-or-update-contact.mjs +++ b/components/hubspot/actions/create-or-update-contact/create-or-update-contact.mjs @@ -7,7 +7,7 @@ export default { name: "Create or Update Contact", description: "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)", - version: "0.0.24", + version: "0.0.25", type: "action", props: { ...common.props, diff --git a/components/hubspot/actions/create-page/create-page.mjs b/components/hubspot/actions/create-page/create-page.mjs index de21ad9681b4c..525a215cf4052 100644 --- a/components/hubspot/actions/create-page/create-page.mjs +++ b/components/hubspot/actions/create-page/create-page.mjs @@ -7,7 +7,7 @@ export default { name: "Create Page", description: "Create a page in HubSpot. [See the documentation](https://developers.hubspot.com/docs/reference/api/cms/pages#post-%2Fcms%2Fv3%2Fpages%2Fsite-pages)", - version: "0.0.3", + version: "0.0.4", type: "action", props: { hubspot, diff --git a/components/hubspot/actions/create-task/create-task.mjs b/components/hubspot/actions/create-task/create-task.mjs index 198450b5820c7..8cb724d934cde 100644 --- a/components/hubspot/actions/create-task/create-task.mjs +++ b/components/hubspot/actions/create-task/create-task.mjs @@ -8,7 +8,7 @@ export default { name: "Create Task", description: "Create a new task. [See the documentation](https://developers.hubspot.com/docs/api/crm/engagements)", - version: "0.0.7", + version: "0.0.8", type: "action", props: { ...common.props, diff --git a/components/hubspot/actions/create-ticket/create-ticket.mjs b/components/hubspot/actions/create-ticket/create-ticket.mjs index f7d3e975340f9..51becf7d6b393 100644 --- a/components/hubspot/actions/create-ticket/create-ticket.mjs +++ b/components/hubspot/actions/create-ticket/create-ticket.mjs @@ -7,7 +7,7 @@ export default { name: "Create Ticket", description: "Create a ticket in Hubspot. [See the documentation](https://developers.hubspot.com/docs/api/crm/tickets)", - version: "0.0.17", + version: "0.0.18", type: "action", props: { ...common.props, diff --git a/components/hubspot/actions/enroll-contact-into-workflow/enroll-contact-into-workflow.mjs b/components/hubspot/actions/enroll-contact-into-workflow/enroll-contact-into-workflow.mjs index e42ee219a2c4b..fae5fbb1d8f5e 100644 --- a/components/hubspot/actions/enroll-contact-into-workflow/enroll-contact-into-workflow.mjs +++ b/components/hubspot/actions/enroll-contact-into-workflow/enroll-contact-into-workflow.mjs @@ -5,7 +5,7 @@ export default { name: "Enroll Contact Into Workflow", description: "Add a contact to a workflow. Note: The Workflows API currently only supports contact-based workflows and is only available for Marketing Hub Enterprise accounts. [See the documentation](https://legacydocs.hubspot.com/docs/methods/workflows/add_contact)", - version: "0.0.22", + version: "0.0.23", type: "action", props: { hubspot, diff --git a/components/hubspot/actions/get-associated-emails/get-associated-emails.mjs b/components/hubspot/actions/get-associated-emails/get-associated-emails.mjs index 05bab6caef017..9834686b87a7f 100644 --- a/components/hubspot/actions/get-associated-emails/get-associated-emails.mjs +++ b/components/hubspot/actions/get-associated-emails/get-associated-emails.mjs @@ -6,7 +6,7 @@ export default { name: "Get Associated Emails", description: "Retrieves emails associated with a specific object (contact, company, or deal). [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/search)", - version: "0.0.4", + version: "0.0.5", type: "action", props: { hubspot, diff --git a/components/hubspot/actions/get-associated-meetings/get-associated-meetings.mjs b/components/hubspot/actions/get-associated-meetings/get-associated-meetings.mjs index af15d37c49669..bfa3ec6e05d2d 100644 --- a/components/hubspot/actions/get-associated-meetings/get-associated-meetings.mjs +++ b/components/hubspot/actions/get-associated-meetings/get-associated-meetings.mjs @@ -7,7 +7,7 @@ export default { name: "Get Associated Meetings", description: "Retrieves meetings associated with a specific object (contact, company, or deal) with optional time filtering. [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/associations/association-details#get-%2Fcrm%2Fv4%2Fobjects%2F%7Bobjecttype%7D%2F%7Bobjectid%7D%2Fassociations%2F%7Btoobjecttype%7D)", - version: "0.0.7", + version: "0.0.8", type: "action", props: { hubspot, diff --git a/components/hubspot/actions/get-company/get-company.mjs b/components/hubspot/actions/get-company/get-company.mjs index 9cd558ceb7ed8..5625f498e5348 100644 --- a/components/hubspot/actions/get-company/get-company.mjs +++ b/components/hubspot/actions/get-company/get-company.mjs @@ -7,7 +7,7 @@ export default { name: "Get Company", description: "Gets a company. [See the documentation](https://developers.hubspot.com/docs/api/crm/companies#endpoint?spec=GET-/crm/v3/objects/companies/{companyId})", - version: "0.0.22", + version: "0.0.23", type: "action", props: { ...common.props, diff --git a/components/hubspot/actions/get-contact/get-contact.mjs b/components/hubspot/actions/get-contact/get-contact.mjs index 35bc58f4d1d93..5c2d758b564a1 100644 --- a/components/hubspot/actions/get-contact/get-contact.mjs +++ b/components/hubspot/actions/get-contact/get-contact.mjs @@ -7,7 +7,7 @@ export default { name: "Get Contact", description: "Gets a contact. [See the documentation](https://developers.hubspot.com/docs/api/crm/contacts#endpoint?spec=GET-/crm/v3/objects/contacts/{contactId})", - version: "0.0.22", + version: "0.0.23", type: "action", props: { ...common.props, diff --git a/components/hubspot/actions/get-deal/get-deal.mjs b/components/hubspot/actions/get-deal/get-deal.mjs index f7d0d69ab8ab6..cdb8a687cdc87 100644 --- a/components/hubspot/actions/get-deal/get-deal.mjs +++ b/components/hubspot/actions/get-deal/get-deal.mjs @@ -7,7 +7,7 @@ export default { name: "Get Deal", description: "Gets a deal. [See the documentation](https://developers.hubspot.com/docs/api/crm/deals#endpoint?spec=GET-/crm/v3/objects/deals/{dealId})", - version: "0.0.22", + version: "0.0.23", type: "action", props: { ...common.props, diff --git a/components/hubspot/actions/get-file-public-url/get-file-public-url.mjs b/components/hubspot/actions/get-file-public-url/get-file-public-url.mjs index 7185a43a4f10e..5ce7e09d551e5 100644 --- a/components/hubspot/actions/get-file-public-url/get-file-public-url.mjs +++ b/components/hubspot/actions/get-file-public-url/get-file-public-url.mjs @@ -5,7 +5,7 @@ export default { name: "Get File Public URL", description: "Get a publicly available URL for a file that was uploaded using a Hubspot form. [See the documentation](https://developers.hubspot.com/docs/api/files/files#endpoint?spec=GET-/files/v3/files/{fileId}/signed-url)", - version: "0.0.22", + version: "0.0.23", type: "action", props: { hubspot, diff --git a/components/hubspot/actions/get-meeting/get-meeting.mjs b/components/hubspot/actions/get-meeting/get-meeting.mjs index 25fea877adc97..b580848363c97 100644 --- a/components/hubspot/actions/get-meeting/get-meeting.mjs +++ b/components/hubspot/actions/get-meeting/get-meeting.mjs @@ -7,7 +7,7 @@ export default { name: "Get Meeting", description: "Retrieves a specific meeting by its ID. [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/engagements/meetings#get-%2Fcrm%2Fv3%2Fobjects%2Fmeetings%2F%7Bmeetingid%7D)", - version: "0.0.7", + version: "0.0.8", type: "action", props: { ...common.props, diff --git a/components/hubspot/actions/get-subscription-preferences/get-subscription-preferences.mjs b/components/hubspot/actions/get-subscription-preferences/get-subscription-preferences.mjs index 71b092e694554..10e2bf4229c58 100644 --- a/components/hubspot/actions/get-subscription-preferences/get-subscription-preferences.mjs +++ b/components/hubspot/actions/get-subscription-preferences/get-subscription-preferences.mjs @@ -5,7 +5,7 @@ export default { name: "Get Subscription Preferences", description: "Retrieves the subscription preferences for a contact. [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/subscriptions#get-%2Fcommunication-preferences%2Fv4%2Fstatuses%2F%7Bsubscriberidstring%7D)", - version: "0.0.4", + version: "0.0.5", type: "action", props: { hubspot, diff --git a/components/hubspot/actions/list-blog-posts/list-blog-posts.mjs b/components/hubspot/actions/list-blog-posts/list-blog-posts.mjs index 26e8650823447..cfeeaf388d3ea 100644 --- a/components/hubspot/actions/list-blog-posts/list-blog-posts.mjs +++ b/components/hubspot/actions/list-blog-posts/list-blog-posts.mjs @@ -5,7 +5,7 @@ export default { name: "List Blog Posts", description: "Retrieves a list of blog posts. [See the documentation](https://developers.hubspot.com/docs/reference/api/cms/blogs/blog-posts)", - version: "0.0.4", + version: "0.0.5", type: "action", props: { hubspot, diff --git a/components/hubspot/actions/list-campaigns/list-campaigns.mjs b/components/hubspot/actions/list-campaigns/list-campaigns.mjs index 4b92da4186c61..f893ac00e4c81 100644 --- a/components/hubspot/actions/list-campaigns/list-campaigns.mjs +++ b/components/hubspot/actions/list-campaigns/list-campaigns.mjs @@ -5,7 +5,7 @@ export default { name: "List Campaigns", description: "Retrieves a list of campaigns. [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/campaigns#get-%2Fmarketing%2Fv3%2Fcampaigns%2F)", - version: "0.0.4", + version: "0.0.5", type: "action", props: { hubspot, diff --git a/components/hubspot/actions/list-forms/list-forms.mjs b/components/hubspot/actions/list-forms/list-forms.mjs index ae19e8d9a0b78..82390292feeeb 100644 --- a/components/hubspot/actions/list-forms/list-forms.mjs +++ b/components/hubspot/actions/list-forms/list-forms.mjs @@ -5,7 +5,7 @@ export default { name: "List Forms", description: "Retrieves a list of forms. [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/forms#get-%2Fmarketing%2Fv3%2Fforms%2F)", - version: "0.0.4", + version: "0.0.5", type: "action", props: { hubspot, diff --git a/components/hubspot/actions/list-marketing-emails/list-marketing-emails.mjs b/components/hubspot/actions/list-marketing-emails/list-marketing-emails.mjs index 33c989857d617..5e24f1ca7eb38 100644 --- a/components/hubspot/actions/list-marketing-emails/list-marketing-emails.mjs +++ b/components/hubspot/actions/list-marketing-emails/list-marketing-emails.mjs @@ -5,7 +5,7 @@ export default { name: "List Marketing Emails", description: "Retrieves a list of marketing emails. [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/emails/marketing-emails#get-%2Fmarketing%2Fv3%2Femails%2F)", - version: "0.0.4", + version: "0.0.5", type: "action", props: { hubspot, diff --git a/components/hubspot/actions/list-marketing-events/list-marketing-events.mjs b/components/hubspot/actions/list-marketing-events/list-marketing-events.mjs index 4abc2996bbfd1..2cb1eba1d2fa5 100644 --- a/components/hubspot/actions/list-marketing-events/list-marketing-events.mjs +++ b/components/hubspot/actions/list-marketing-events/list-marketing-events.mjs @@ -5,7 +5,7 @@ export default { name: "List Marketing Events", description: "Retrieves a list of marketing events. [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/marketing-events#get-%2Fmarketing%2Fv3%2Fmarketing-events%2F)", - version: "0.0.4", + version: "0.0.5", type: "action", props: { hubspot, diff --git a/components/hubspot/actions/list-pages/list-pages.mjs b/components/hubspot/actions/list-pages/list-pages.mjs index d182a98c7d79d..2ea70ba1ca8c1 100644 --- a/components/hubspot/actions/list-pages/list-pages.mjs +++ b/components/hubspot/actions/list-pages/list-pages.mjs @@ -5,7 +5,7 @@ export default { name: "List Pages", description: "Retrieves a list of site pages. [See the documentation](https://developers.hubspot.com/docs/reference/api/cms/pages)", - version: "0.0.4", + version: "0.0.5", type: "action", props: { hubspot, diff --git a/components/hubspot/actions/list-templates/list-templates.mjs b/components/hubspot/actions/list-templates/list-templates.mjs index a4b1b48dd3ab8..f856231d3d17e 100644 --- a/components/hubspot/actions/list-templates/list-templates.mjs +++ b/components/hubspot/actions/list-templates/list-templates.mjs @@ -5,7 +5,7 @@ export default { name: "List Templates", description: "Retrieves a list of templates. [See the documentation](https://developers.hubspot.com/docs/reference/api/cms/templates)", - version: "0.0.4", + version: "0.0.5", type: "action", props: { hubspot, diff --git a/components/hubspot/actions/search-crm/search-crm.mjs b/components/hubspot/actions/search-crm/search-crm.mjs index e36319f16b867..0888c902e45d7 100644 --- a/components/hubspot/actions/search-crm/search-crm.mjs +++ b/components/hubspot/actions/search-crm/search-crm.mjs @@ -18,7 +18,7 @@ export default { 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: "1.0.9", + version: "1.0.10", type: "action", props: { hubspot, diff --git a/components/hubspot/actions/update-company/update-company.mjs b/components/hubspot/actions/update-company/update-company.mjs index cc69577ce57ec..e3e68a1f615f4 100644 --- a/components/hubspot/actions/update-company/update-company.mjs +++ b/components/hubspot/actions/update-company/update-company.mjs @@ -8,7 +8,7 @@ export default { name: "Update Company", description: "Update a company in Hubspot. [See the documentation](https://developers.hubspot.com/docs/api/crm/companies)", - version: "0.0.22", + version: "0.0.23", type: "action", methods: { ...common.methods, diff --git a/components/hubspot/actions/update-contact/update-contact.mjs b/components/hubspot/actions/update-contact/update-contact.mjs index 8356181aab74f..b8eb3ebd0d8d4 100644 --- a/components/hubspot/actions/update-contact/update-contact.mjs +++ b/components/hubspot/actions/update-contact/update-contact.mjs @@ -8,7 +8,7 @@ export default { name: "Update Contact", description: "Update a contact in Hubspot. [See the documentation](https://developers.hubspot.com/docs/api/crm/contacts#endpoint?spec=POST-/crm/v3/objects/contacts)", - version: "0.0.23", + version: "0.0.24", type: "action", methods: { ...common.methods, diff --git a/components/hubspot/actions/update-custom-object/update-custom-object.mjs b/components/hubspot/actions/update-custom-object/update-custom-object.mjs index ab10fe70582c0..acb462b4ea264 100644 --- a/components/hubspot/actions/update-custom-object/update-custom-object.mjs +++ b/components/hubspot/actions/update-custom-object/update-custom-object.mjs @@ -7,7 +7,7 @@ export default { name: "Update Custom Object", description: "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)", - version: "1.0.8", + version: "1.0.9", type: "action", methods: { ...common.methods, diff --git a/components/hubspot/actions/update-deal/update-deal.mjs b/components/hubspot/actions/update-deal/update-deal.mjs index e8b4b19b988e2..6889cfdb80a47 100644 --- a/components/hubspot/actions/update-deal/update-deal.mjs +++ b/components/hubspot/actions/update-deal/update-deal.mjs @@ -8,7 +8,7 @@ export default { 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.13", + version: "0.0.14", type: "action", methods: { ...common.methods, diff --git a/components/hubspot/actions/update-fields-on-the-form/update-fields-on-the-form.mjs b/components/hubspot/actions/update-fields-on-the-form/update-fields-on-the-form.mjs index b00e3d35414d9..534afa62a16b0 100644 --- a/components/hubspot/actions/update-fields-on-the-form/update-fields-on-the-form.mjs +++ b/components/hubspot/actions/update-fields-on-the-form/update-fields-on-the-form.mjs @@ -10,7 +10,7 @@ export default { name: "Update Fields on the Form", description: "Update some of the form definition components. [See the documentation](https://developers.hubspot.com/docs/reference/api/marketing/forms#patch-%2Fmarketing%2Fv3%2Fforms%2F%7Bformid%7D)", - version: "0.0.3", + version: "0.0.4", type: "action", props: { hubspot, diff --git a/components/hubspot/actions/update-landing-page/update-landing-page.mjs b/components/hubspot/actions/update-landing-page/update-landing-page.mjs index 13d2dbdba5bd6..8a49edb8fbd78 100644 --- a/components/hubspot/actions/update-landing-page/update-landing-page.mjs +++ b/components/hubspot/actions/update-landing-page/update-landing-page.mjs @@ -7,7 +7,7 @@ export default { name: "Update Landing Page", description: "Update a landing page in HubSpot. [See the documentation](https://developers.hubspot.com/docs/reference/api/cms/pages#patch-%2Fcms%2Fv3%2Fpages%2Flanding-pages%2F%7Bobjectid%7D)", - version: "0.0.3", + version: "0.0.4", type: "action", props: { hubspot, diff --git a/components/hubspot/actions/update-lead/update-lead.mjs b/components/hubspot/actions/update-lead/update-lead.mjs index 01dcf0062b9bc..e8893787cf41f 100644 --- a/components/hubspot/actions/update-lead/update-lead.mjs +++ b/components/hubspot/actions/update-lead/update-lead.mjs @@ -8,7 +8,7 @@ export default { name: "Update Lead", description: "Update a lead in Hubspot. [See the documentation](https://developers.hubspot.com/beta-docs/guides/api/crm/objects/leads#update-leads)", - version: "0.0.14", + version: "0.0.15", type: "action", methods: { ...common.methods, diff --git a/components/hubspot/actions/update-page/update-page.mjs b/components/hubspot/actions/update-page/update-page.mjs index 062682e16f428..494af8a602d1a 100644 --- a/components/hubspot/actions/update-page/update-page.mjs +++ b/components/hubspot/actions/update-page/update-page.mjs @@ -7,7 +7,7 @@ export default { name: "Update Page", description: "Update a page in Hubspot. [See the documentation](https://developers.hubspot.com/docs/reference/api/cms/pages#patch-%2Fcms%2Fv3%2Fpages%2Fsite-pages%2F%7Bobjectid%7D)", - version: "0.0.3", + version: "0.0.4", type: "action", props: { hubspot, diff --git a/components/hubspot/sources/delete-blog-article/delete-blog-article.mjs b/components/hubspot/sources/delete-blog-article/delete-blog-article.mjs index 4acc77d858b06..aa5837adc3a93 100644 --- a/components/hubspot/sources/delete-blog-article/delete-blog-article.mjs +++ b/components/hubspot/sources/delete-blog-article/delete-blog-article.mjs @@ -6,7 +6,7 @@ export default { key: "hubspot-delete-blog-article", name: "Deleted Blog Posts", description: "Emit new event for each deleted blog post.", - version: "0.0.28", + version: "0.0.29", dedupe: "unique", type: "source", methods: { diff --git a/components/hubspot/sources/new-company-property-change/new-company-property-change.mjs b/components/hubspot/sources/new-company-property-change/new-company-property-change.mjs index 6cbfa322873cb..f88a48845eaeb 100644 --- a/components/hubspot/sources/new-company-property-change/new-company-property-change.mjs +++ b/components/hubspot/sources/new-company-property-change/new-company-property-change.mjs @@ -8,7 +8,7 @@ export default { name: "New Company Property Change", description: "Emit new event when a specified property is provided or updated on a company. [See the documentation](https://developers.hubspot.com/docs/api/crm/companies)", - version: "0.0.21", + version: "0.0.22", dedupe: "unique", type: "source", props: { diff --git a/components/hubspot/sources/new-contact-property-change/new-contact-property-change.mjs b/components/hubspot/sources/new-contact-property-change/new-contact-property-change.mjs index 2ffdebfd4073d..7b1fa91ca50db 100644 --- a/components/hubspot/sources/new-contact-property-change/new-contact-property-change.mjs +++ b/components/hubspot/sources/new-contact-property-change/new-contact-property-change.mjs @@ -8,7 +8,7 @@ export default { name: "New Contact Property Change", description: "Emit new event when a specified property is provided or updated on a contact. [See the documentation](https://developers.hubspot.com/docs/api/crm/contacts)", - version: "0.0.23", + version: "0.0.24", dedupe: "unique", type: "source", props: { diff --git a/components/hubspot/sources/new-custom-object-property-change/new-custom-object-property-change.mjs b/components/hubspot/sources/new-custom-object-property-change/new-custom-object-property-change.mjs index c9dfc6070979a..49da904ba1049 100644 --- a/components/hubspot/sources/new-custom-object-property-change/new-custom-object-property-change.mjs +++ b/components/hubspot/sources/new-custom-object-property-change/new-custom-object-property-change.mjs @@ -7,7 +7,7 @@ export default { name: "New Custom Object Property Change", description: "Emit new event when a specified property is provided or updated on a custom object.", - version: "0.0.13", + version: "0.0.14", dedupe: "unique", type: "source", props: { diff --git a/components/hubspot/sources/new-deal-in-stage/new-deal-in-stage.mjs b/components/hubspot/sources/new-deal-in-stage/new-deal-in-stage.mjs index fc653985eadd2..9ed00e01bed42 100644 --- a/components/hubspot/sources/new-deal-in-stage/new-deal-in-stage.mjs +++ b/components/hubspot/sources/new-deal-in-stage/new-deal-in-stage.mjs @@ -11,7 +11,7 @@ export default { key: "hubspot-new-deal-in-stage", name: "New Deal In Stage", description: "Emit new event for each new deal in a stage.", - version: "0.0.34", + version: "0.0.35", dedupe: "unique", type: "source", props: { diff --git a/components/hubspot/sources/new-deal-property-change/new-deal-property-change.mjs b/components/hubspot/sources/new-deal-property-change/new-deal-property-change.mjs index 6cb8fa630806c..57635cf858a74 100644 --- a/components/hubspot/sources/new-deal-property-change/new-deal-property-change.mjs +++ b/components/hubspot/sources/new-deal-property-change/new-deal-property-change.mjs @@ -8,7 +8,7 @@ export default { name: "New Deal Property Change", description: "Emit new event when a specified property is provided or updated on a deal. [See the documentation](https://developers.hubspot.com/docs/api/crm/deals)", - version: "0.0.22", + version: "0.0.23", dedupe: "unique", type: "source", props: { diff --git a/components/hubspot/sources/new-email-event/new-email-event.mjs b/components/hubspot/sources/new-email-event/new-email-event.mjs index 01938e8491bcc..32e7c112e5e68 100644 --- a/components/hubspot/sources/new-email-event/new-email-event.mjs +++ b/components/hubspot/sources/new-email-event/new-email-event.mjs @@ -8,7 +8,7 @@ export default { key: "hubspot-new-email-event", name: "New Email Event", description: "Emit new event for each new Hubspot email event.", - version: "0.0.31", + version: "0.0.32", dedupe: "unique", type: "source", props: { diff --git a/components/hubspot/sources/new-email-subscriptions-timeline/new-email-subscriptions-timeline.mjs b/components/hubspot/sources/new-email-subscriptions-timeline/new-email-subscriptions-timeline.mjs index 4ec88a67f3548..e14902e6396d7 100644 --- a/components/hubspot/sources/new-email-subscriptions-timeline/new-email-subscriptions-timeline.mjs +++ b/components/hubspot/sources/new-email-subscriptions-timeline/new-email-subscriptions-timeline.mjs @@ -7,7 +7,7 @@ export default { name: "New Email Subscriptions Timeline", description: "Emit new event when a new email timeline subscription is added for the portal.", - version: "0.0.28", + version: "0.0.29", dedupe: "unique", type: "source", methods: { diff --git a/components/hubspot/sources/new-engagement/new-engagement.mjs b/components/hubspot/sources/new-engagement/new-engagement.mjs index 55c8427abbf9b..ebbc27993edb3 100644 --- a/components/hubspot/sources/new-engagement/new-engagement.mjs +++ b/components/hubspot/sources/new-engagement/new-engagement.mjs @@ -9,7 +9,7 @@ export default { name: "New Engagement", description: "Emit new event for each new engagement created. This action returns a maximum of 5000 records at a time, make sure you set a correct time range so you don't miss any events", - version: "0.0.33", + version: "0.0.34", dedupe: "unique", type: "source", props: { diff --git a/components/hubspot/sources/new-event/new-event.mjs b/components/hubspot/sources/new-event/new-event.mjs index 760d791feff90..d3eb366352cfa 100644 --- a/components/hubspot/sources/new-event/new-event.mjs +++ b/components/hubspot/sources/new-event/new-event.mjs @@ -9,7 +9,7 @@ export default { name: "New Events", description: "Emit new event for each new Hubspot event. Note: Only available for Marketing Hub Enterprise, Sales Hub Enterprise, Service Hub Enterprise, or CMS Hub Enterprise accounts", - version: "0.0.32", + version: "0.0.33", dedupe: "unique", type: "source", props: { diff --git a/components/hubspot/sources/new-form-submission/new-form-submission.mjs b/components/hubspot/sources/new-form-submission/new-form-submission.mjs index b3fe863b02ff1..7be00798effd4 100644 --- a/components/hubspot/sources/new-form-submission/new-form-submission.mjs +++ b/components/hubspot/sources/new-form-submission/new-form-submission.mjs @@ -6,7 +6,7 @@ export default { key: "hubspot-new-form-submission", name: "New Form Submission", description: "Emit new event for each new submission of a form.", - version: "0.0.33", + version: "0.0.34", dedupe: "unique", type: "source", props: { diff --git a/components/hubspot/sources/new-note/new-note.mjs b/components/hubspot/sources/new-note/new-note.mjs index 9ad0f2f457c47..70beb99f2f757 100644 --- a/components/hubspot/sources/new-note/new-note.mjs +++ b/components/hubspot/sources/new-note/new-note.mjs @@ -8,7 +8,7 @@ export default { key: "hubspot-new-note", name: "New Note Created", description: "Emit new event for each new note created. [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/engagements/notes#get-%2Fcrm%2Fv3%2Fobjects%2Fnotes)", - version: "1.0.9", + version: "1.0.10", type: "source", dedupe: "unique", methods: { diff --git a/components/hubspot/sources/new-or-updated-blog-article/new-or-updated-blog-article.mjs b/components/hubspot/sources/new-or-updated-blog-article/new-or-updated-blog-article.mjs index e0323a83eec40..136c748b5a45a 100644 --- a/components/hubspot/sources/new-or-updated-blog-article/new-or-updated-blog-article.mjs +++ b/components/hubspot/sources/new-or-updated-blog-article/new-or-updated-blog-article.mjs @@ -7,7 +7,7 @@ export default { key: "hubspot-new-or-updated-blog-article", name: "New or Updated Blog Post", description: "Emit new event for each new or updated blog post in Hubspot.", - version: "0.0.15", + version: "0.0.16", dedupe: "unique", type: "source", props: { diff --git a/components/hubspot/sources/new-or-updated-company/new-or-updated-company.mjs b/components/hubspot/sources/new-or-updated-company/new-or-updated-company.mjs index 33e2104d0ae5a..a0925a0acb961 100644 --- a/components/hubspot/sources/new-or-updated-company/new-or-updated-company.mjs +++ b/components/hubspot/sources/new-or-updated-company/new-or-updated-company.mjs @@ -10,7 +10,7 @@ export default { key: "hubspot-new-or-updated-company", name: "New or Updated Company", description: "Emit new event for each new or updated company in Hubspot.", - version: "0.0.15", + version: "0.0.16", dedupe: "unique", type: "source", props: { diff --git a/components/hubspot/sources/new-or-updated-contact/new-or-updated-contact.mjs b/components/hubspot/sources/new-or-updated-contact/new-or-updated-contact.mjs index 56ea8e17311a4..e2a89562cd52c 100644 --- a/components/hubspot/sources/new-or-updated-contact/new-or-updated-contact.mjs +++ b/components/hubspot/sources/new-or-updated-contact/new-or-updated-contact.mjs @@ -10,7 +10,7 @@ export default { key: "hubspot-new-or-updated-contact", name: "New or Updated Contact", description: "Emit new event for each new or updated contact in Hubspot.", - version: "0.0.16", + version: "0.0.17", dedupe: "unique", type: "source", props: { diff --git a/components/hubspot/sources/new-or-updated-crm-object/new-or-updated-crm-object.mjs b/components/hubspot/sources/new-or-updated-crm-object/new-or-updated-crm-object.mjs index bcf0b03ef3c86..c77cc3de920f8 100644 --- a/components/hubspot/sources/new-or-updated-crm-object/new-or-updated-crm-object.mjs +++ b/components/hubspot/sources/new-or-updated-crm-object/new-or-updated-crm-object.mjs @@ -8,7 +8,7 @@ export default { name: "New or Updated CRM Object", description: "Emit new event each time a CRM Object of the specified object type is updated.", - version: "0.0.28", + version: "0.0.29", dedupe: "unique", type: "source", props: { diff --git a/components/hubspot/sources/new-or-updated-custom-object/new-or-updated-custom-object.mjs b/components/hubspot/sources/new-or-updated-custom-object/new-or-updated-custom-object.mjs index e69089a3126c5..9d951e5eb288c 100644 --- a/components/hubspot/sources/new-or-updated-custom-object/new-or-updated-custom-object.mjs +++ b/components/hubspot/sources/new-or-updated-custom-object/new-or-updated-custom-object.mjs @@ -8,7 +8,7 @@ export default { name: "New or Updated Custom Object", description: "Emit new event each time a Custom Object of the specified schema is updated.", - version: "0.0.17", + version: "0.0.18", dedupe: "unique", type: "source", props: { diff --git a/components/hubspot/sources/new-or-updated-deal/new-or-updated-deal.mjs b/components/hubspot/sources/new-or-updated-deal/new-or-updated-deal.mjs index 7565ecf01376e..1398f76528aa3 100644 --- a/components/hubspot/sources/new-or-updated-deal/new-or-updated-deal.mjs +++ b/components/hubspot/sources/new-or-updated-deal/new-or-updated-deal.mjs @@ -10,7 +10,7 @@ export default { key: "hubspot-new-or-updated-deal", name: "New or Updated Deal", description: "Emit new event for each new or updated deal in Hubspot", - version: "0.0.15", + version: "0.0.16", dedupe: "unique", type: "source", props: { diff --git a/components/hubspot/sources/new-or-updated-line-item/new-or-updated-line-item.mjs b/components/hubspot/sources/new-or-updated-line-item/new-or-updated-line-item.mjs index 07483220749a5..0b4b3a76f09ce 100644 --- a/components/hubspot/sources/new-or-updated-line-item/new-or-updated-line-item.mjs +++ b/components/hubspot/sources/new-or-updated-line-item/new-or-updated-line-item.mjs @@ -11,7 +11,7 @@ export default { name: "New or Updated Line Item", description: "Emit new event for each new line item added or updated in Hubspot.", - version: "0.0.15", + version: "0.0.16", dedupe: "unique", type: "source", props: { diff --git a/components/hubspot/sources/new-or-updated-product/new-or-updated-product.mjs b/components/hubspot/sources/new-or-updated-product/new-or-updated-product.mjs index 69ecdfddfcb8e..3ec83022a5a32 100644 --- a/components/hubspot/sources/new-or-updated-product/new-or-updated-product.mjs +++ b/components/hubspot/sources/new-or-updated-product/new-or-updated-product.mjs @@ -10,7 +10,7 @@ export default { key: "hubspot-new-or-updated-product", name: "New or Updated Product", description: "Emit new event for each new or updated product in Hubspot.", - version: "0.0.15", + version: "0.0.16", dedupe: "unique", type: "source", props: { diff --git a/components/hubspot/sources/new-social-media-message/new-social-media-message.mjs b/components/hubspot/sources/new-social-media-message/new-social-media-message.mjs index 79c7b0a4cf637..33332bc052699 100644 --- a/components/hubspot/sources/new-social-media-message/new-social-media-message.mjs +++ b/components/hubspot/sources/new-social-media-message/new-social-media-message.mjs @@ -7,7 +7,7 @@ export default { name: "New Social Media Message", description: "Emit new event when a message is posted from HubSpot to the specified social media channel. Note: Only available for Marketing Hub Enterprise accounts", - version: "0.0.28", + version: "0.0.29", type: "source", dedupe: "unique", props: { diff --git a/components/hubspot/sources/new-task/new-task.mjs b/components/hubspot/sources/new-task/new-task.mjs index 38a673e778889..dabdf8cda7892 100644 --- a/components/hubspot/sources/new-task/new-task.mjs +++ b/components/hubspot/sources/new-task/new-task.mjs @@ -9,7 +9,7 @@ export default { name: "New Task Created", description: "Emit new event for each new task created. [See the documentation](https://developers.hubspot.com/docs/reference/api/crm/engagements/tasks#get-%2Fcrm%2Fv3%2Fobjects%2Ftasks)", - version: "1.0.9", + version: "1.0.10", type: "source", dedupe: "unique", methods: { diff --git a/components/hubspot/sources/new-ticket-property-change/new-ticket-property-change.mjs b/components/hubspot/sources/new-ticket-property-change/new-ticket-property-change.mjs index 41ef6db522668..2288b15cb6f29 100644 --- a/components/hubspot/sources/new-ticket-property-change/new-ticket-property-change.mjs +++ b/components/hubspot/sources/new-ticket-property-change/new-ticket-property-change.mjs @@ -8,7 +8,7 @@ export default { name: "New Ticket Property Change", description: "Emit new event when a specified property is provided or updated on a ticket. [See the documentation](https://developers.hubspot.com/docs/api/crm/tickets)", - version: "0.0.22", + version: "0.0.23", dedupe: "unique", type: "source", props: { diff --git a/components/hubspot/sources/new-ticket/new-ticket.mjs b/components/hubspot/sources/new-ticket/new-ticket.mjs index f49da9ea36425..2f6b128650f88 100644 --- a/components/hubspot/sources/new-ticket/new-ticket.mjs +++ b/components/hubspot/sources/new-ticket/new-ticket.mjs @@ -10,7 +10,7 @@ export default { key: "hubspot-new-ticket", name: "New Ticket", description: "Emit new event for each new ticket created.", - version: "0.0.28", + version: "0.0.29", dedupe: "unique", type: "source", props: {