AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
feat(hubspot): readable property notes, plain-language labels and optional fields under Advanced (#15814)
Talal Jaber7a71f7db6baf
diff --git a/bun.lock b/bun.lockindex 0dbd8e2beb7..400690c8935 100644--- a/bun.lock+++ b/bun.lock@@ -4384,7 +4384,7 @@},"packages/pieces/community/hubspot": {"name": "@activepieces/piece-hubspot",- "version": "0.11.0",+ "version": "0.12.0","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -4395,6 +4395,7 @@},"devDependencies": {"tslib": "2.6.2",+ "vitest": "3.2.6",},},"packages/pieces/community/hugging-face": {diff --git a/packages/pieces/community/hubspot/package.json b/packages/pieces/community/hubspot/package.jsonindex dbf8955571d..74f66b2641b 100644--- a/packages/pieces/community/hubspot/package.json+++ b/packages/pieces/community/hubspot/package.json@@ -1,6 +1,6 @@{"name": "@activepieces/piece-hubspot",- "version": "0.11.0",+ "version": "0.12.0","main": "./dist/src/index.js","types": "./dist/src/index.d.ts","dependencies": {@@ -12,11 +12,13 @@"@activepieces/core-utils": "workspace:*"},"devDependencies": {- "tslib": "2.6.2"+ "tslib": "2.6.2",+ "vitest": "3.2.6"},"scripts": {"build": "tsc -p tsconfig.lib.json && cp package.json dist/","bundle": "node ../../../../dist/packages/cli/src/index.js pieces bundle",- "lint": "eslint 'src/**/*.ts'"+ "lint": "eslint 'src/**/*.ts'",+ "test": "vitest run"}}diff --git a/packages/pieces/community/hubspot/src/index.ts b/packages/pieces/community/hubspot/src/index.tsindex b3e8188e34d..64e41d69b9d 100644--- a/packages/pieces/community/hubspot/src/index.ts+++ b/packages/pieces/community/hubspot/src/index.ts@@ -83,7 +83,7 @@ import { getHubspotAccessToken, hubspotAuth } from './lib/auth';export const hubspot = createPiece({displayName: 'HubSpot',description: 'Powerful CRM that offers tools for sales, customer service, and marketing automation.',- minimumSupportedRelease: '0.87.0',+ minimumSupportedRelease: '0.88.2',logoUrl: 'https://cdn.activepieces.com/pieces/hubspot.png',authors: ['Salem-Alaa', 'kishanprmr', 'MoShizzle', 'khaledmashaly', 'abuaboud'],categories: [PieceCategory.SALES_AND_CRM],diff --git a/packages/pieces/community/hubspot/src/lib/actions/add-contact-to-list-action.ts b/packages/pieces/community/hubspot/src/lib/actions/add-contact-to-list-action.tsindex 3d21db7b4ec..5f9aa8149b7 100644--- a/packages/pieces/community/hubspot/src/lib/actions/add-contact-to-list-action.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/add-contact-to-list-action.ts@@ -7,14 +7,15 @@ export const hubSpotListsAddContactAction = createAction({auth: hubspotAuth,name: 'add_contact_to_list',classification: 'WRITE',- displayName: 'Add contact To List',- description: 'Add contact to list',+ displayName: 'Add Contact to List',+ description: 'Adds a contact to a static list by email.',audience: 'both',aiMetadata: { description: 'Adds a contact, identified by email, to a chosen HubSpot static contact list. Use to enroll a known contact into a list for segmentation or workflow targeting; the list must be static (not dynamic/active). Idempotent: a contact already on the list stays a single member.', idempotent: true },props: {listId: staticListsDropdown,email: Property.ShortText({displayName: 'Contact Email',+ placeholder: '[email protected]',required: true,}),},diff --git a/packages/pieces/community/hubspot/src/lib/actions/add-contact-to-workflow.ts b/packages/pieces/community/hubspot/src/lib/actions/add-contact-to-workflow.tsindex 77f689c0e27..1bafe7dfeff 100644--- a/packages/pieces/community/hubspot/src/lib/actions/add-contact-to-workflow.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/add-contact-to-workflow.ts@@ -14,8 +14,8 @@ export const addContactToWorkflowAction = createAction({props:{workflowId : workflowIdDropdown,email:Property.ShortText({- displayName:"Contact's Email",- description:'The email of the contact to add to the workflow.',+ displayName:'Contact Email',+ placeholder:'[email protected]',required:true}),},diff --git a/packages/pieces/community/hubspot/src/lib/actions/create-associations.ts b/packages/pieces/community/hubspot/src/lib/actions/create-associations.tsindex 2d56b01d47f..c701386a4b1 100644--- a/packages/pieces/community/hubspot/src/lib/actions/create-associations.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/create-associations.ts@@ -16,34 +16,34 @@ export const createAssociationsAction = createAction({name: 'create-associations',classification: 'WRITE',displayName: 'Create Associations',- description: 'Creates associations between objects',+ description: 'Links a record to one or more other records.',audience: 'both',aiMetadata: { description: 'Link one source HubSpot object (e.g. a company) to one or more target objects using a specific association type, batching the targets. Re-running with the same inputs re-applies the same association without creating duplicates. Use Remove Associations to undo a link.', idempotent: true },outputSchema: createAssociationsOutputSchema,props: {fromObjectId: Property.ShortText({displayName: 'From Object ID',- description: 'The ID of the object being associated.',+ description: 'Map it from an earlier Find or Get step.',required: true,}),fromObjectType: fromObjectTypeAssociationDropdown({objectType: OBJECT_TYPE.COMPANY,displayName: 'From Object Type',required: true,- description: 'The type of the object being associated.',+ description: 'The object type of that record.',}),toObjectType: fromObjectTypeAssociationDropdown({objectType: OBJECT_TYPE.COMPANY,displayName: 'To Object Type',required: true,- description: 'Type of the objects the from object is being associated with.',+ description: 'The object type of the records to link to.',}),associationType: associationTypeDropdown,toObjectIds: toObjectIdsDropdown({objectType: OBJECT_TYPE.COMPANY,- displayName: 'To Object IDs',+ displayName: 'To Records',required: true,- description: 'The ID\'sof the objects the from object is being associated with',+ description: 'The records to link to.',}),},async run(context) {diff --git a/packages/pieces/community/hubspot/src/lib/actions/create-blog-post.ts b/packages/pieces/community/hubspot/src/lib/actions/create-blog-post.tsindex 6250c953ed0..065899fc5ac 100644--- a/packages/pieces/community/hubspot/src/lib/actions/create-blog-post.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/create-blog-post.ts@@ -8,8 +8,8 @@ export const createBlogPostAction = createAction({auth: hubspotAuth,name: 'create-blog-post',classification: 'WRITE',- displayName: 'Create COS Blog Post',- description: 'Creates a blog post in you Hubspot COS blog.',+ displayName: 'Create Blog Post',+ description: 'Creates a draft or published post on a HubSpot blog.',audience: 'both',aiMetadata: { description: 'Create a post in a HubSpot CMS (COS) blog with title, slug, body, and featured image, then optionally publish it immediately when Status is set to publish rather than draft. Each call creates a new post, so it is not idempotent.', idempotent: false },outputSchema: createBlogPostOutputSchema,@@ -17,18 +17,23 @@ export const createBlogPostAction = createAction({contentGroupId: blogUrlDropdown,authorId: blogAuthorDropdown,status: Property.StaticDropdown({- displayName: 'Publish This Post?',+ displayName: 'Status',required: true,+ display: 'cards',options: {disabled: false,options: [{- label: 'Leave As Draft',+ label: 'Draft',value: 'DRAFT',+ description: 'Kept unpublished',+ icon: 'file',},{- label: 'Publish Immediately',+ label: 'Publish',value: 'PUBLISHED',+ description: 'Live once created',+ icon: 'send',},],},@@ -36,14 +41,15 @@ export const createBlogPostAction = createAction({slug: Property.ShortText({displayName: 'Slug',required: true,- description: 'The slug of the blog post. This is the URL of the post on your COS blog.',+ description: 'The last part of the post\'s URL.',+ placeholder: 'my-first-post',}),title: Property.ShortText({- displayName: 'Blog Post Title',+ displayName: 'Title',required: true,}),body: Property.LongText({- displayName: 'Blog Post Content',+ displayName: 'Content',required: true,}),meta: Property.LongText({@@ -52,6 +58,7 @@ export const createBlogPostAction = createAction({}),imageUrl: Property.ShortText({displayName: 'Featured Image URL',+ placeholder: 'https://example.com/cover.png',required: true,}),},diff --git a/packages/pieces/community/hubspot/src/lib/actions/create-company.ts b/packages/pieces/community/hubspot/src/lib/actions/create-company.tsindex 232901a1e27..fec3bcd622a 100644--- a/packages/pieces/community/hubspot/src/lib/actions/create-company.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/create-company.ts@@ -11,7 +11,7 @@ export const createCompanyAction = createAction({name: 'create-company',classification: 'WRITE',displayName: 'Create Company',- description: 'Creates a company in Hubspot.',+ description: 'Creates a company in HubSpot.',audience: 'both',aiMetadata: { description: 'Create a new HubSpot company record from the supplied properties (name, domain, industry, etc.). Always inserts a new company even if one with the same domain already exists, so it is not idempotent; to change an existing record use Update Company, and to locate one first use a find action.', idempotent: false },outputSchema: crmObjectOutputSchema,@@ -19,16 +19,15 @@ export const createCompanyAction = createAction({objectProperties: standardObjectDynamicProperties(OBJECT_TYPE.COMPANY, []),markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- name, domain, industry, about_us, phone, address, address2, city, state, zip, country, website, type, description, founded_year, hs_createdate, hs_lastmodifieddate, hs_object_id, is_public, timezone, total_money_raised, total_revenue, owneremail, ownername, numberofemployees, annualrevenue, lifecyclestage, createdate, web_technologies-- **Specify here a list of additional properties to retrieve**`,+ value: `Returned by default: name, domain, industry, about_us, phone, address, address2, city, state, zip, country, website, type, description, founded_year, hs_createdate, hs_lastmodifieddate, hs_object_id, is_public, timezone, total_money_raised, total_revenue, owneremail, ownername, numberofemployees, annualrevenue, lifecyclestage, createdate, web_technologies.++Pick more under **Advanced**.`,}),additionalPropertiesToRetrieve: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.COMPANY,- displayName: 'Additional properties to retrieve',+ displayName: 'Additional Properties to Retrieve',required: false,+ advanced: true,}),},async run(context) {diff --git a/packages/pieces/community/hubspot/src/lib/actions/create-contact.ts b/packages/pieces/community/hubspot/src/lib/actions/create-contact.tsindex 00ab2f2d9e3..9c1f36f29ce 100644--- a/packages/pieces/community/hubspot/src/lib/actions/create-contact.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/create-contact.ts@@ -12,7 +12,7 @@ export const createContactAction = createAction({name: 'create-contact',classification: 'WRITE',displayName: 'Create Contact',- description: 'Creates a contact in Hubspot.',+ description: 'Creates a contact in HubSpot.',audience: 'both',aiMetadata: { description: 'Creates a new contact record in HubSpot from the supplied property values, then returns the created contact. Use when you specifically need a new contact; to avoid duplicates when a contact may already exist, prefer Create or Update Contact, which upserts on email. Not idempotent: each call creates a separate contact.', idempotent: false },outputSchema: crmObjectOutputSchema,@@ -20,16 +20,15 @@ export const createContactAction = createAction({objectProperties: standardObjectDynamicProperties(OBJECT_TYPE.CONTACT, []),markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- firstname, lastname, email, company, website, mobilephone, phone, fax, address, city, state, zip, salutation, country, jobtitle, hs_createdate, hs_email_domain, hs_object_id, lastmodifieddate, hs_persona, hs_language, lifecyclestage, createdate, numemployees, annualrevenue, industry-- **Specify here a list of additional properties to retrieve**`,+ value: `Returned by default: firstname, lastname, email, company, website, mobilephone, phone, fax, address, city, state, zip, salutation, country, jobtitle, hs_createdate, hs_email_domain, hs_object_id, lastmodifieddate, hs_persona, hs_language, lifecyclestage, createdate, numemployees, annualrevenue, industry.++Pick more under **Advanced**.`,}),additionalPropertiesToRetrieve: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.CONTACT,- displayName: 'Additional properties to retrieve',+ displayName: 'Additional Properties to Retrieve',required: false,+ advanced: true,}),},async run(context) {diff --git a/packages/pieces/community/hubspot/src/lib/actions/create-custom-object.ts b/packages/pieces/community/hubspot/src/lib/actions/create-custom-object.tsindex 5cac12e133e..48293f8882e 100644--- a/packages/pieces/community/hubspot/src/lib/actions/create-custom-object.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/create-custom-object.ts@@ -15,7 +15,7 @@ export const createCustomObjectAction = createAction({name: 'create-custome-object',classification: 'WRITE',displayName: 'Create Custom Object',- description: 'Creates a custom object in Hubspot.',+ description: 'Creates a custom object record in HubSpot.',audience: 'both',aiMetadata: { description: 'Create a new record of a selected HubSpot custom object type from the supplied properties. Each call inserts a new record, so it is not idempotent. Requires choosing the custom object type; use Find Custom Object to locate an existing record.', idempotent: false },outputSchema: crmObjectOutputSchema,@@ -24,16 +24,15 @@ export const createCustomObjectAction = createAction({objectProperties: customObjectDynamicProperties,markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- hs_object_id, hs_lastmodifieddate, hs_createdate+ value: `Returned by default: hs_object_id, hs_lastmodifieddate, hs_createdate.- **Specify here a list of additional properties to retrieve**`,+Pick more under **Advanced**.`,+ }),+ additionalPropertiesToRetrieve: customObjectPropertiesDropdown({+ displayName: 'Additional Properties to Retrieve',+ required: false,+ advanced: true,}),- additionalPropertiesToRetrieve: customObjectPropertiesDropdown(- 'Additional Properties to Retrieve',- false,- ),},async run(context) {const customObjectType = context.propsValue.customObjectType as string;diff --git a/packages/pieces/community/hubspot/src/lib/actions/create-deal.ts b/packages/pieces/community/hubspot/src/lib/actions/create-deal.tsindex 703508738bb..48c213adafd 100644--- a/packages/pieces/community/hubspot/src/lib/actions/create-deal.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/create-deal.ts@@ -20,7 +20,7 @@ export const createDealAction = createAction({name: 'create-deal',classification: 'WRITE',displayName: 'Create Deal',- description: 'Creates a new deal in Hubspot.',+ description: 'Creates a deal in HubSpot.',audience: 'both',aiMetadata: { description: 'Creates a new deal in HubSpot, requiring a deal name plus a pipeline and stage, and returns the created deal. Use to open a new opportunity; use Update Deal to modify an existing one. Not idempotent: each call creates a separate deal, so guard against duplicates.', idempotent: false },outputSchema: crmObjectOutputSchema,@@ -46,16 +46,15 @@ export const createDealAction = createAction({]),markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- dealtype, dealname, amount, description, closedate, createdate, num_associated_contacts, hs_forecast_amount, hs_forecast_probability, hs_manual_forecast_category, hs_next_step, hs_object_id, hs_lastmodifieddate, hubspot_owner_id, hubspot_team_id-- **Specify here a list of additional properties to retrieve**`,+ value: `Returned by default: dealtype, dealname, amount, description, closedate, createdate, num_associated_contacts, hs_forecast_amount, hs_forecast_probability, hs_manual_forecast_category, hs_next_step, hs_object_id, hs_lastmodifieddate, hubspot_owner_id, hubspot_team_id.++Pick more under **Advanced**.`,}),additionalPropertiesToRetrieve: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.DEAL,- displayName: 'Additional properties to retrieve',+ displayName: 'Additional Properties to Retrieve',required: false,+ advanced: true,}),},async run(context) {diff --git a/packages/pieces/community/hubspot/src/lib/actions/create-line-item.ts b/packages/pieces/community/hubspot/src/lib/actions/create-line-item.tsindex b2c8c958d1d..aceaff18d57 100644--- a/packages/pieces/community/hubspot/src/lib/actions/create-line-item.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/create-line-item.ts@@ -17,29 +17,28 @@ export const createLineItemAction = createAction({name: 'create-line-item',classification: 'WRITE',displayName: 'Create Line Item',- description: 'Creates a line item in Hubspot.',+ description: 'Creates a line item in HubSpot.',audience: 'both',aiMetadata: { description: 'Creates a new standalone line item in HubSpot from a required product plus optional property values (quantity, price, discount), and returns the created line item. Use when building out a quote or deal\'s line items. Not idempotent: each call creates a separate line item.', idempotent: false },outputSchema: crmObjectOutputSchema,props: {productId: productDropdown({- displayName: 'Line Item Information: Product ID',+ displayName: 'Product',required: true,objectType: OBJECT_TYPE.PRODUCT,}),objectProperties: standardObjectDynamicProperties(OBJECT_TYPE.LINE_ITEM, ['hs_product_id']),markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- name, description, price, quantity, amount, discount, tax, createdate, hs_object_id, hs_product_id, hs_images, hs_lastmodifieddate, hs_line_item_currency_code, hs_sku, hs_url, hs_cost_of_goods_sold, hs_discount_percentage, hs_term_in_months-- **Specify here a list of additional properties to retrieve**`,+ value: `Returned by default: name, description, price, quantity, amount, discount, tax, createdate, hs_object_id, hs_product_id, hs_images, hs_lastmodifieddate, hs_line_item_currency_code, hs_sku, hs_url, hs_cost_of_goods_sold, hs_discount_percentage, hs_term_in_months.++Pick more under **Advanced**.`,}),additionalPropertiesToRetrieve: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.LINE_ITEM,- displayName: 'Additional properties to retrieve',+ displayName: 'Additional Properties to Retrieve',required: false,+ advanced: true,}),},async run(context) {diff --git a/packages/pieces/community/hubspot/src/lib/actions/create-or-update-contact.ts b/packages/pieces/community/hubspot/src/lib/actions/create-or-update-contact.tsindex 2f011058130..a8857dfc43c 100644--- a/packages/pieces/community/hubspot/src/lib/actions/create-or-update-contact.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/create-or-update-contact.ts@@ -13,13 +13,15 @@ export const createOrUpdateContactAction = createAction({name: 'create-or-update-contact',classification: 'WRITE',displayName: 'Create or Update Contact',- description: 'Creates a new contact or updates an existing contact based on email address.',+ description: 'Updates the contact with this email, or creates it if none exists.',audience: 'both',aiMetadata: { description: 'Upserts a contact keyed on email: searches for a contact with the given email and updates it if found, otherwise creates a new one with the provided properties. Use this safe-to-retry path when you want to set a contact by email without risking duplicates; use Create Contact when you specifically need a new record. Idempotent on the email key.', idempotent: true },outputSchema: crmObjectOutputSchema,props: {email: Property.ShortText({displayName: 'Contact Email',+ description: 'Used to find the contact; a new one is created if none matches.',+ placeholder: '[email protected]',required: true,}),objectProperties: standardObjectDynamicProperties(OBJECT_TYPE.CONTACT, ['email']),diff --git a/packages/pieces/community/hubspot/src/lib/actions/create-page.ts b/packages/pieces/community/hubspot/src/lib/actions/create-page.tsindex f9a1d667a2c..daa5fc72f51 100644--- a/packages/pieces/community/hubspot/src/lib/actions/create-page.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/create-page.ts@@ -9,7 +9,7 @@ export const createPageAction = createAction({name: 'create-page',classification: 'WRITE',displayName: 'Create Page',- description: 'Creates a new landing/site page.',+ description: 'Creates a landing page or site page.',audience: 'both',aiMetadata: { description: 'Create a new HubSpot CMS landing page or site page (choose via Page Type) from a template, then optionally publish it when State is set to publish rather than leaving it as a draft. Each call creates a distinct page, so it is not idempotent.', idempotent: false },outputSchema: pageOutputSchema,@@ -25,37 +25,45 @@ export const createPageAction = createAction({}),templatePath: Property.ShortText({displayName: 'Template Path',- description:- 'The path should not include a slash (/) at the start.For example,"@hubspot/elevate/templates/blank.hubl.html".',+ description: 'The theme template to use, without a leading slash.',+ placeholder: '@hubspot/elevate/templates/blank.hubl.html',required: true,}),slug: Property.ShortText({displayName: 'Slug',+ placeholder: 'spring-sale',required: true,}),language: Property.ShortText({displayName: 'Language',+ description: 'A language code such as en-us or de-de.',required: false,defaultValue: 'en-us',}),metaDescription: Property.LongText({displayName: 'Meta Description',required: false,+ advanced: true,}),state: Property.StaticDropdown({- displayName: 'State',+ displayName: 'Status',required: false,defaultValue: 'DRAFT',+ display: 'cards',options: {disabled: false,options: [{label: 'Draft',value: 'DRAFT',+ description: 'Kept unpublished',+ icon: 'file',},{label: 'Publish',value: 'PUBLISHED_OR_SCHEDULED',+ description: 'Live once created',+ icon: 'send',},],},@@ -63,10 +71,12 @@ export const createPageAction = createAction({headHtml: Property.LongText({displayName: 'Additional Head HTML',required: false,+ advanced: true,}),footerHtml: Property.LongText({displayName: 'Additional Footer HTML',required: false,+ advanced: true,}),},async run(context) {diff --git a/packages/pieces/community/hubspot/src/lib/actions/create-product.ts b/packages/pieces/community/hubspot/src/lib/actions/create-product.tsindex 701ffe58bde..373359ac1d4 100644--- a/packages/pieces/community/hubspot/src/lib/actions/create-product.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/create-product.ts@@ -15,7 +15,7 @@ export const createProductAction = createAction({name: 'create-product',classification: 'WRITE',displayName: 'Create Product',- description: 'Creates a product in Hubspot.',+ description: 'Creates a product in HubSpot.',audience: 'both',aiMetadata: {description:@@ -27,16 +27,15 @@ export const createProductAction = createAction({objectProperties: standardObjectDynamicProperties(OBJECT_TYPE.PRODUCT,[]),markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- createdate, description, name, price, tax, hs_lastmodifieddate-- **Specify here a list of additional properties to retrieve**`,+ value: `Returned by default: createdate, description, name, price, tax, hs_lastmodifieddate.++Pick more under **Advanced**.`,}),additionalPropertiesToRetrieve: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.PRODUCT,- displayName: 'Additional properties to retrieve',+ displayName: 'Additional Properties to Retrieve',required: false,+ advanced: true,}),},async run(context) {diff --git a/packages/pieces/community/hubspot/src/lib/actions/create-ticket.ts b/packages/pieces/community/hubspot/src/lib/actions/create-ticket.tsindex 4260c65521d..b45cde6fde9 100644--- a/packages/pieces/community/hubspot/src/lib/actions/create-ticket.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/create-ticket.ts@@ -19,7 +19,7 @@ export const createTicketAction = createAction({props: {ticketName: Property.ShortText({displayName: 'Ticket Name',- description: 'The name of the ticket to create.',+ description: 'Shown as the ticket\'s subject in HubSpot.',required: true,}),pipelineId: pipelineDropdown({@@ -29,7 +29,7 @@ export const createTicketAction = createAction({}),pipelineStageId: pipelineStageDropdown({objectType: OBJECT_TYPE.TICKET,- displayName: 'Ticket Pipeline Stage',+ displayName: 'Ticket Stage',required: true,}),objectProperties : standardObjectDynamicProperties(OBJECT_TYPE.TICKET, [@@ -39,16 +39,15 @@ export const createTicketAction = createAction({]),markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- subject, content, source_type, createdate, hs_pipeline, hs_pipeline_stage, hs_resolution, hs_ticket_category, hs_ticket_id, hs_ticket_priority, hs_lastmodifieddate, hubspot_owner_id, hubspot_team_id-- **Specify here a list of additional properties to retrieve**`,+ value: `Returned by default: subject, content, source_type, createdate, hs_pipeline, hs_pipeline_stage, hs_resolution, hs_ticket_category, hs_ticket_id, hs_ticket_priority, hs_lastmodifieddate, hubspot_owner_id, hubspot_team_id.++Pick more under **Advanced**.`,}),additionalPropertiesToRetrieve: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.TICKET,- displayName: 'Additional properties to retrieve',+ displayName: 'Additional Properties to Retrieve',required: false,+ advanced: true,}),},async run(context) {diff --git a/packages/pieces/community/hubspot/src/lib/actions/delete-page.ts b/packages/pieces/community/hubspot/src/lib/actions/delete-page.tsindex 793bae2c34f..9d3e6e062a4 100644--- a/packages/pieces/community/hubspot/src/lib/actions/delete-page.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/delete-page.ts@@ -8,14 +8,14 @@ export const deletePageAction = createAction({name: 'delete-page',classification: 'DESTRUCTIVE',displayName: 'Delete Page',- description: 'Deletes an existing landing/site page.',+ description: 'Deletes a landing page or site page.',audience: 'both',aiMetadata: { description: 'Archive (delete) a HubSpot CMS landing page or site page by its ID; select the matching Page Type. Deleting an already-deleted page is harmless, so the operation is effectively idempotent on the end state. This is destructive and cannot be undone here.', idempotent: true },props: {pageType: pageType,pageId: Property.ShortText({displayName: 'Page ID',- description: 'The ID of the page to delete.',+ description: 'Map it from an earlier step like Create Page.',required: true,}),},diff --git a/packages/pieces/community/hubspot/src/lib/actions/find-associations.ts b/packages/pieces/community/hubspot/src/lib/actions/find-associations.tsindex 42711561f20..899e5c52fba 100644--- a/packages/pieces/community/hubspot/src/lib/actions/find-associations.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/find-associations.ts@@ -10,27 +10,27 @@ export const findAssociationsAction = createAction({name: 'find-associations',classification: 'SEARCH',displayName: 'Find Associations',- description: 'Finds associations between objects',+ description: 'Lists the records of one type linked to a record.',audience: 'both',aiMetadata: { description: 'Lists all associations from one CRM object to objects of another type (e.g. a company to its contacts or deals), paging through every result. Use to discover what records are linked to a known object given its ID and the from/to object types. Read-only and idempotent.', idempotent: true },outputSchema: findAssociationsOutputSchema,props: {fromObjectId: Property.ShortText({displayName: 'From Object ID',- description: 'The ID of the object you want to search the association.',+ description: 'Map it from an earlier Find or Get step.',required: true,}),fromObjectType: fromObjectTypeAssociationDropdown({objectType: OBJECT_TYPE.COMPANY,displayName: 'From Object Type',required: true,- description: 'The type of the object you want to search the association.',+ description: 'The object type of that record.',}),toObjectType: fromObjectTypeAssociationDropdown({objectType: OBJECT_TYPE.COMPANY,displayName: 'To Object Type',required: true,- description: 'Type of the object the from object is being associated with.',+ description: 'The object type of the linked records to list.',}),},async run(context) {diff --git a/packages/pieces/community/hubspot/src/lib/actions/find-company.ts b/packages/pieces/community/hubspot/src/lib/actions/find-company.tsindex 3556d422a1c..79d7d02acd9 100644--- a/packages/pieces/community/hubspot/src/lib/actions/find-company.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/find-company.ts@@ -15,7 +15,7 @@ export const findCompanyAction = createAction({name: 'find-company',classification: 'SEARCH',displayName: 'Find Company',- description: 'Finds a company by searching.',+ description: 'Finds up to 200 companies matching one or two property values.',audience: 'both',aiMetadata: { description: 'Searches companies via the HubSpot CRM search API, matching on one or two property name/value pairs (exact match, combined as AND), and returns matching companies. Use to locate a company by domain, name, or another property before reading or updating it; prefer Get Company when you already have the company ID. Read-only and idempotent.', idempotent: true },outputSchema: companySearchOutputSchema,@@ -23,41 +23,46 @@ export const findCompanyAction = createAction({firstSearchPropertyName: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.COMPANY,- displayName: 'First search property name',+ displayName: 'Search Property',+ description: 'The property to compare, such as the company domain.',required: true,},true,true,),firstSearchPropertyValue: Property.ShortText({- displayName: 'First search property value',+ displayName: 'Search Value',+ description: 'Only exact matches are returned.',required: true,}),secondSearchPropertyName: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.COMPANY,- displayName: 'Second search property name',+ displayName: 'Second Search Property',+ description: 'Optional second condition; records must match both.',required: false,+ advanced: true,},true,true,),secondSearchPropertyValue: Property.ShortText({- displayName: 'Second search property value',+ displayName: 'Second Search Value',+ description: 'Ignored unless a second property is also chosen.',required: false,+ advanced: true,}),markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- name, domain, industry, about_us, phone, address, address2, city, state, zip, country, website, type, description, founded_year, hs_createdate, hs_lastmodifieddate, hs_object_id, is_public, timezone, total_money_raised, total_revenue, owneremail, ownername, numberofemployees, annualrevenue, lifecyclestage, createdate, web_technologies+ value: `Returned by default: name, domain, industry, about_us, phone, address, address2, city, state, zip, country, website, type, description, founded_year, hs_createdate, hs_lastmodifieddate, hs_object_id, is_public, timezone, total_money_raised, total_revenue, owneremail, ownername, numberofemployees, annualrevenue, lifecyclestage, createdate, web_technologies.- **Specify here a list of additional properties to retrieve**`,+Pick more under **Advanced**.`,}),additionalPropertiesToRetrieve: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.COMPANY,- displayName: 'Additional properties to retrieve',+ displayName: 'Additional Properties to Retrieve',required: false,+ advanced: true,}),},async run(context) {diff --git a/packages/pieces/community/hubspot/src/lib/actions/find-contact.ts b/packages/pieces/community/hubspot/src/lib/actions/find-contact.tsindex 1934bb5c3d8..c8696e1c31f 100644--- a/packages/pieces/community/hubspot/src/lib/actions/find-contact.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/find-contact.ts@@ -12,7 +12,7 @@ export const findContactAction = createAction({name: 'find-contact',classification: 'SEARCH',displayName: 'Find Contact',- description: 'Finds a contact by searching.',+ description: 'Finds up to 200 contacts matching one or two property values.',audience: 'both',aiMetadata: { description: 'Search HubSpot contacts by one or two property/value pairs (matched with equality) and return the matching contacts. Read-only and repeatable. Use this to resolve a contact before updating or enrolling it; pick a create action instead when no match should exist.', idempotent: true },outputSchema: contactSearchOutputSchema,@@ -20,41 +20,46 @@ export const findContactAction = createAction({firstSearchPropertyName: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.CONTACT,- displayName: 'First search property name',+ displayName: 'Search Property',+ description: 'The property to compare, such as the email address.',required: true,},true,true,),firstSearchPropertyValue: Property.ShortText({- displayName: 'First search property value',+ displayName: 'Search Value',+ description: 'Only exact matches are returned.',required: true,}),secondSearchPropertyName: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.CONTACT,- displayName: 'Second search property name',+ displayName: 'Second Search Property',+ description: 'Optional second condition; records must match both.',required: false,+ advanced: true,},true,true,),secondSearchPropertyValue: Property.ShortText({- displayName: 'Second search property value',+ displayName: 'Second Search Value',+ description: 'Ignored unless a second property is also chosen.',required: false,+ advanced: true,}),markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- firstname, lastname, email, company, website, mobilephone, phone, fax, address, city, state, zip, salutation, country, jobtitle, hs_createdate, hs_email_domain, hs_object_id, lastmodifieddate, hs_persona, hs_language, lifecyclestage, createdate, numemployees, annualrevenue, industry-- **Specify here a list of additional properties to retrieve**`,+ value: `Returned by default: firstname, lastname, email, company, website, mobilephone, phone, fax, address, city, state, zip, salutation, country, jobtitle, hs_createdate, hs_email_domain, hs_object_id, lastmodifieddate, hs_persona, hs_language, lifecyclestage, createdate, numemployees, annualrevenue, industry.++Pick more under **Advanced**.`,}),additionalPropertiesToRetrieve: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.CONTACT,- displayName: 'Additional properties to retrieve',+ displayName: 'Additional Properties to Retrieve',required: false,+ advanced: true,}),},async run(context) {diff --git a/packages/pieces/community/hubspot/src/lib/actions/find-custom-object.ts b/packages/pieces/community/hubspot/src/lib/actions/find-custom-object.tsindex 8d8df7eb16b..3beb1cc9317 100644--- a/packages/pieces/community/hubspot/src/lib/actions/find-custom-object.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/find-custom-object.ts@@ -12,42 +12,47 @@ export const findCustomObjectAction = createAction({name: 'find-custom-object',classification: 'SEARCH',displayName: 'Find Custom Object',- description: 'Finds a custom object by searching.',+ description: 'Finds up to 200 custom object records matching one or two values.',audience: 'both',aiMetadata: { description: 'Search records of a selected HubSpot custom object type by one or two property/value pairs (matched with equality) and return the matches. Read-only and repeatable. Requires choosing the custom object type; use Create Custom Object to add a new record.', idempotent: true },outputSchema: customObjectSearchOutputSchema,props: {customObjectType: customObjectDropdown,- firstSearchPropertyName: customObjectPropertiesDropdown(- 'First search property name',- true,- true,- ),+ firstSearchPropertyName: customObjectPropertiesDropdown({+ displayName: 'Search Property',+ description: 'The property to compare.',+ required: true,+ isSingleSelect: true,+ }),firstSearchPropertyValue: Property.ShortText({- displayName: 'First search property value',+ displayName: 'Search Value',+ description: 'Only exact matches are returned.',required: true,}),- secondSearchPropertyName: customObjectPropertiesDropdown(- 'Second search property name',- false,- true,- ),+ secondSearchPropertyName: customObjectPropertiesDropdown({+ displayName: 'Second Search Property',+ description: 'Optional second condition; records must match both.',+ required: false,+ isSingleSelect: true,+ advanced: true,+ }),secondSearchPropertyValue: Property.ShortText({- displayName: 'Second search property value',+ displayName: 'Second Search Value',+ description: 'Ignored unless a second property is also chosen.',required: false,+ advanced: true,}),markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- hs_object_id, hs_lastmodifieddate, hs_createdate-- **Specify here a list of additional properties to retrieve**`,+ value: `Returned by default: hs_object_id, hs_lastmodifieddate, hs_createdate.++Pick more under **Advanced**.`,+ }),+ additionalPropertiesToRetrieve: customObjectPropertiesDropdown({+ displayName: 'Additional Properties to Retrieve',+ required: false,+ advanced: true,}),- additionalPropertiesToRetrieve: customObjectPropertiesDropdown(- 'Additional Properties to Retrieve',- false,- ),},async run(context) {const customObjectType = context.propsValue.customObjectType as string;diff --git a/packages/pieces/community/hubspot/src/lib/actions/find-deal.ts b/packages/pieces/community/hubspot/src/lib/actions/find-deal.tsindex a956469c342..2f3aeeba1ca 100644--- a/packages/pieces/community/hubspot/src/lib/actions/find-deal.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/find-deal.ts@@ -12,7 +12,7 @@ export const findDealAction = createAction({name: 'find-deal',classification: 'SEARCH',displayName: 'Find Deal',- description: 'Finds a deal by searching.',+ description: 'Finds up to 200 deals matching one or two property values.',audience: 'both',aiMetadata: { description: 'Search HubSpot deals by one or two property/value pairs (matched with equality) and return the matching deals. Read-only and repeatable. Use this to look up an existing deal before updating or associating it; pick a create action instead when no matching deal should exist.', idempotent: true },outputSchema: dealSearchOutputSchema,@@ -20,41 +20,46 @@ export const findDealAction = createAction({firstSearchPropertyName: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.DEAL,- displayName: 'First search property name',+ displayName: 'Search Property',+ description: 'The property to compare, such as the deal name.',required: true,},true,true,),firstSearchPropertyValue: Property.ShortText({- displayName: 'First search property value',+ displayName: 'Search Value',+ description: 'Only exact matches are returned.',required: true,}),secondSearchPropertyName: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.DEAL,- displayName: 'Second search property name',+ displayName: 'Second Search Property',+ description: 'Optional second condition; records must match both.',required: false,+ advanced: true,},true,true,),secondSearchPropertyValue: Property.ShortText({- displayName: 'Second search property value',+ displayName: 'Second Search Value',+ description: 'Ignored unless a second property is also chosen.',required: false,+ advanced: true,}),markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- dealtype, dealname, amount, description, closedate, createdate, num_associated_contacts, hs_forecast_amount, hs_forecast_probability, hs_manual_forecast_category, hs_next_step, hs_object_id, hs_lastmodifieddate, hubspot_owner_id, hubspot_team_id-- **Specify here a list of additional properties to retrieve**`,+ value: `Returned by default: dealtype, dealname, amount, description, closedate, createdate, num_associated_contacts, hs_forecast_amount, hs_forecast_probability, hs_manual_forecast_category, hs_next_step, hs_object_id, hs_lastmodifieddate, hubspot_owner_id, hubspot_team_id.++Pick more under **Advanced**.`,}),additionalPropertiesToRetrieve: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.DEAL,- displayName: 'Additional properties to retrieve',+ displayName: 'Additional Properties to Retrieve',required: false,+ advanced: true,}),},async run(context) {diff --git a/packages/pieces/community/hubspot/src/lib/actions/find-line-item.ts b/packages/pieces/community/hubspot/src/lib/actions/find-line-item.tsindex 97facc8d65c..87222072b45 100644--- a/packages/pieces/community/hubspot/src/lib/actions/find-line-item.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/find-line-item.ts@@ -12,7 +12,7 @@ export const findLineItemAction = createAction({name: 'find-line-item',classification: 'SEARCH',displayName: 'Find Line Item',- description: 'Finds a line item by searching.',+ description: 'Finds up to 200 line items matching one or two property values.',audience: 'both',aiMetadata: { description: 'Search HubSpot line items by one or two property/value pairs (matched with equality) and return the matches. Read-only and repeatable. Use this to locate an existing line item before updating it.', idempotent: true },outputSchema: lineItemSearchOutputSchema,@@ -20,41 +20,46 @@ export const findLineItemAction = createAction({firstSearchPropertyName: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.LINE_ITEM,- displayName: 'First search property name',+ displayName: 'Search Property',+ description: 'The property to compare, such as the line item name.',required: true,},true,true,),firstSearchPropertyValue: Property.ShortText({- displayName: 'First search property value',+ displayName: 'Search Value',+ description: 'Only exact matches are returned.',required: true,}),secondSearchPropertyName: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.LINE_ITEM,- displayName: 'Second search property name',+ displayName: 'Second Search Property',+ description: 'Optional second condition; records must match both.',required: false,+ advanced: true,},true,true,),secondSearchPropertyValue: Property.ShortText({- displayName: 'Second search property value',+ displayName: 'Second Search Value',+ description: 'Ignored unless a second property is also chosen.',required: false,+ advanced: true,}),markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- name, description, price, quantity, amount, discount, tax, createdate, hs_object_id, hs_product_id, hs_images, hs_lastmodifieddate, hs_line_item_currency_code, hs_sku, hs_url, hs_cost_of_goods_sold, hs_discount_percentage, hs_term_in_months-- **Specify here a list of additional properties to retrieve**`,+ value: `Returned by default: name, description, price, quantity, amount, discount, tax, createdate, hs_object_id, hs_product_id, hs_images, hs_lastmodifieddate, hs_line_item_currency_code, hs_sku, hs_url, hs_cost_of_goods_sold, hs_discount_percentage, hs_term_in_months.++Pick more under **Advanced**.`,}),additionalPropertiesToRetrieve: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.LINE_ITEM,- displayName: 'Additional properties to retrieve',+ displayName: 'Additional Properties to Retrieve',required: false,+ advanced: true,}),},async run(context) {diff --git a/packages/pieces/community/hubspot/src/lib/actions/find-product.ts b/packages/pieces/community/hubspot/src/lib/actions/find-product.tsindex e7934208045..ee4e4033cfa 100644--- a/packages/pieces/community/hubspot/src/lib/actions/find-product.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/find-product.ts@@ -14,7 +14,7 @@ export const findProductAction = createAction({name: 'find-product',classification: 'SEARCH',displayName: 'Find Product',- description: 'Finds a product by searching.',+ description: 'Finds up to 200 products matching one or two property values.',audience: 'both',aiMetadata: { description: 'Search the HubSpot product library by one or two property/value pairs (matched with equality) and return the matching products. Read-only and repeatable. Use Get Product instead when you already have the product ID.', idempotent: true },outputSchema: productSearchOutputSchema,@@ -22,41 +22,46 @@ export const findProductAction = createAction({firstSearchPropertyName: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.PRODUCT,- displayName: 'First search property name',+ displayName: 'Search Property',+ description: 'The property to compare, such as the SKU.',required: true,},true,true,),firstSearchPropertyValue: Property.ShortText({- displayName: 'First search property value',+ displayName: 'Search Value',+ description: 'Only exact matches are returned.',required: true,}),secondSearchPropertyName: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.PRODUCT,- displayName: 'Second search property name',+ displayName: 'Second Search Property',+ description: 'Optional second condition; records must match both.',required: false,+ advanced: true,},true,true,),secondSearchPropertyValue: Property.ShortText({- displayName: 'Second search property value',+ displayName: 'Second Search Value',+ description: 'Ignored unless a second property is also chosen.',required: false,+ advanced: true,}),markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- createdate, description, name, price, tax, hs_lastmodifieddate+ value: `Returned by default: createdate, description, name, price, tax, hs_lastmodifieddate.- **Specify here a list of additional properties to retrieve**`,+Pick more under **Advanced**.`,}),additionalPropertiesToRetrieve: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.PRODUCT,- displayName: 'Additional properties to retrieve',+ displayName: 'Additional Properties to Retrieve',required: false,+ advanced: true,}),},async run(context) {diff --git a/packages/pieces/community/hubspot/src/lib/actions/find-ticket.ts b/packages/pieces/community/hubspot/src/lib/actions/find-ticket.tsindex 23e15b9c425..5c72eea0cdc 100644--- a/packages/pieces/community/hubspot/src/lib/actions/find-ticket.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/find-ticket.ts@@ -12,7 +12,7 @@ export const findTicketAction = createAction({name: 'find-ticket',classification: 'SEARCH',displayName: 'Find Ticket',- description: 'Finds a ticket by searching.',+ description: 'Finds up to 200 tickets matching one or two property values.',audience: 'both',aiMetadata: { description: 'Searches support tickets via the HubSpot CRM search API, matching on one or two property name/value pairs (exact match, combined as AND), and returns matching tickets. Use to locate a ticket by subject or another property before reading or updating it; prefer Get Ticket when you already have the ticket ID. Read-only and idempotent.', idempotent: true },outputSchema: ticketSearchOutputSchema,@@ -20,41 +20,46 @@ export const findTicketAction = createAction({firstSearchPropertyName: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.TICKET,- displayName: 'First search property name',+ displayName: 'Search Property',+ description: 'The property to compare, such as the subject.',required: true,},true,true,),firstSearchPropertyValue: Property.ShortText({- displayName: 'First search property value',+ displayName: 'Search Value',+ description: 'Only exact matches are returned.',required: true,}),secondSearchPropertyName: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.TICKET,- displayName: 'Second search property name',+ displayName: 'Second Search Property',+ description: 'Optional second condition; records must match both.',required: false,+ advanced: true,},true,true,),secondSearchPropertyValue: Property.ShortText({- displayName: 'Second search property value',+ displayName: 'Second Search Value',+ description: 'Ignored unless a second property is also chosen.',required: false,+ advanced: true,}),markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- subject, content, source_type, createdate, hs_pipeline, hs_pipeline_stage, hs_resolution, hs_ticket_category, hs_ticket_id, hs_ticket_priority, hs_lastmodifieddate, hubspot_owner_id, hubspot_team_id-- **Specify here a list of additional properties to retrieve**`,+ value: `Returned by default: subject, content, source_type, createdate, hs_pipeline, hs_pipeline_stage, hs_resolution, hs_ticket_category, hs_ticket_id, hs_ticket_priority, hs_lastmodifieddate, hubspot_owner_id, hubspot_team_id.++Pick more under **Advanced**.`,}),additionalPropertiesToRetrieve: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.TICKET,- displayName: 'Additional properties to retrieve',+ displayName: 'Additional Properties to Retrieve',required: false,+ advanced: true,}),},async run(context) {diff --git a/packages/pieces/community/hubspot/src/lib/actions/get-company.ts b/packages/pieces/community/hubspot/src/lib/actions/get-company.tsindex 71ddd886b48..d13bcdb6467 100644--- a/packages/pieces/community/hubspot/src/lib/actions/get-company.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/get-company.ts@@ -14,28 +14,27 @@ export const getCompanyAction = createAction({name: 'get-company',classification: 'READ',displayName: 'Get Company',- description: 'Gets a company.',+ description: 'Gets a company by its ID.',audience: 'both',aiMetadata: { description: 'Fetches a single company by its HubSpot company ID, returning default and any requested additional properties. Use when you already have the company ID; use Find Company to look one up by domain or another property first. Read-only and idempotent.', idempotent: true },outputSchema: crmObjectOutputSchema,props: {companyId: Property.ShortText({displayName: 'Company ID',- description: 'The ID of the company to get.',+ description: 'Map it from an earlier step like Find Company.',required: true,}),markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- name, domain, industry, about_us, phone, address, address2, city, state, zip, country, website, type, description, founded_year, hs_createdate, hs_lastmodifieddate, hs_object_id, is_public, timezone, total_money_raised, total_revenue, owneremail, ownername, numberofemployees, annualrevenue, lifecyclestage, createdate, web_technologies-- **Specify here a list of additional properties to retrieve**`,+ value: `Returned by default: name, domain, industry, about_us, phone, address, address2, city, state, zip, country, website, type, description, founded_year, hs_createdate, hs_lastmodifieddate, hs_object_id, is_public, timezone, total_money_raised, total_revenue, owneremail, ownername, numberofemployees, annualrevenue, lifecyclestage, createdate, web_technologies.++Pick more under **Advanced**.`,}),additionalPropertiesToRetrieve: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.COMPANY,- displayName: 'Additional properties to retrieve',+ displayName: 'Additional Properties to Retrieve',required: false,+ advanced: true,}),},async run(context) {diff --git a/packages/pieces/community/hubspot/src/lib/actions/get-contact.ts b/packages/pieces/community/hubspot/src/lib/actions/get-contact.tsindex f89abdbd006..5ec2bb61084 100644--- a/packages/pieces/community/hubspot/src/lib/actions/get-contact.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/get-contact.ts@@ -12,28 +12,27 @@ export const getContactAction = createAction({name: 'get-contact',classification: 'READ',displayName: 'Get Contact',- description: 'Gets a contact.',+ description: 'Gets a contact by its ID.',audience: 'both',aiMetadata: { description: 'Fetches a single contact by its HubSpot contact ID, returning default and any requested additional properties. Use when you already have the contact ID; to look one up by email instead, use a search-based action. Read-only and idempotent.', idempotent: true },outputSchema: crmObjectOutputSchema,props: {contactId: Property.ShortText({displayName: 'Contact ID',- description: 'The ID of the contact to get.',+ description: 'Map it from an earlier step like Find Contact.',required: true,}),markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- firstname, lastname, email, company, website, mobilephone, phone, fax, address, city, state, zip, salutation, country, jobtitle, hs_createdate, hs_email_domain, hs_object_id, lastmodifieddate, hs_persona, hs_language, lifecyclestage, createdate, numemployees, annualrevenue, industry-- **Specify here a list of additional properties to retrieve**`,+ value: `Returned by default: firstname, lastname, email, company, website, mobilephone, phone, fax, address, city, state, zip, salutation, country, jobtitle, hs_createdate, hs_email_domain, hs_object_id, lastmodifieddate, hs_persona, hs_language, lifecyclestage, createdate, numemployees, annualrevenue, industry.++Pick more under **Advanced**.`,}),additionalPropertiesToRetrieve: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.CONTACT,- displayName: 'Additional properties to retrieve',+ displayName: 'Additional Properties to Retrieve',required: false,+ advanced: true,}),},async run(context) {diff --git a/packages/pieces/community/hubspot/src/lib/actions/get-custom-object.ts b/packages/pieces/community/hubspot/src/lib/actions/get-custom-object.tsindex 83048f63585..126a88b33b6 100644--- a/packages/pieces/community/hubspot/src/lib/actions/get-custom-object.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/get-custom-object.ts@@ -11,7 +11,7 @@ export const getCustomObjectAction = createAction({name: 'get-custom-object',classification: 'READ',displayName: 'Get Custom Object',- description: 'Gets a custom object.',+ description: 'Gets a custom object record by its ID.',audience: 'both',aiMetadata: { description: 'Fetches a single custom-object record by its ID for a chosen custom object type, returning the requested properties. Use when you already have the record ID and the custom object type; for standard CRM objects use the dedicated Get Contact / Deal / Company / Ticket actions instead. Read-only and idempotent.', idempotent: true },outputSchema: crmObjectOutputSchema,@@ -19,18 +19,20 @@ export const getCustomObjectAction = createAction({customObjectType: customObjectDropdown,customObjectId: Property.ShortText({displayName: 'Custom Object ID',- description: 'The ID of the custom object to get.',+ description: 'Map it from an earlier step like Find Custom Object.',required: true,}),markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- hs_object_id, hs_lastmodifieddate, hs_createdate-- **Specify here a list of additional properties to retrieve**`,+ value: `Returned by default: hs_object_id, hs_lastmodifieddate, hs_createdate.++Pick more under **Advanced**.`,+ }),+ additionalPropertiesToRetrieve: customObjectPropertiesDropdown({+ displayName: 'Additional Properties to Retrieve',+ required: false,+ advanced: true,}),- additionalPropertiesToRetrieve: customObjectPropertiesDropdown('Additional Properties to Retrieve', false),},async run(context) {const customObjectType = context.propsValue.customObjectType as string;diff --git a/packages/pieces/community/hubspot/src/lib/actions/get-deal.ts b/packages/pieces/community/hubspot/src/lib/actions/get-deal.tsindex e070af89905..ef00c0136af 100644--- a/packages/pieces/community/hubspot/src/lib/actions/get-deal.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/get-deal.ts@@ -12,28 +12,27 @@ export const getDealAction = createAction({name: 'get-deal',classification: 'READ',displayName: 'Get Deal',- description: 'Gets a deal.',+ description: 'Gets a deal by its ID.',audience: 'both',aiMetadata: { description: 'Fetches a single deal by its HubSpot deal ID, returning default and any requested additional properties such as amount, stage, and close date. Use when you already have the deal ID. Read-only and idempotent.', idempotent: true },outputSchema: crmObjectOutputSchema,props: {dealId: Property.ShortText({displayName: 'Deal ID',- description: 'The ID of the deal to get.',+ description: 'Map it from an earlier step like Find Deal.',required: true,}),markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- dealtype, dealname, amount, description, closedate, createdate, num_associated_contacts, hs_forecast_amount, hs_forecast_probability, hs_manual_forecast_category, hs_next_step, hs_object_id, hs_lastmodifieddate, hubspot_owner_id, hubspot_team_id-- **Specify here a list of additional properties to retrieve**`,+ value: `Returned by default: dealtype, dealname, amount, description, closedate, createdate, num_associated_contacts, hs_forecast_amount, hs_forecast_probability, hs_manual_forecast_category, hs_next_step, hs_object_id, hs_lastmodifieddate, hubspot_owner_id, hubspot_team_id.++Pick more under **Advanced**.`,}),additionalPropertiesToRetrieve: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.DEAL,- displayName: 'Additional properties to retrieve',+ displayName: 'Additional Properties to Retrieve',required: false,+ advanced: true,}),},async run(context) {diff --git a/packages/pieces/community/hubspot/src/lib/actions/get-line-item.ts b/packages/pieces/community/hubspot/src/lib/actions/get-line-item.tsindex 299f662bad6..7dd1bd17772 100644--- a/packages/pieces/community/hubspot/src/lib/actions/get-line-item.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/get-line-item.ts@@ -11,28 +11,27 @@ export const getLineItemAction = createAction({name: 'get-line-item',classification: 'READ',displayName: 'Get Line Item',- description: 'Gets a line item.',+ description: 'Gets a line item by its ID.',audience: 'both',aiMetadata: { description: 'Fetches a single line item by its HubSpot line item ID, returning default and any requested additional properties. Use when you already have the line item ID and need its details (price, quantity, product). Read-only and idempotent.', idempotent: true },outputSchema: crmObjectOutputSchema,props: {lineItemId: Property.ShortText({displayName: 'Line Item ID',- description: 'The ID of the line item to get.',+ description: 'Map it from an earlier step like Find Line Item.',required: true,}),markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- name, description, price, quantity, amount, discount, tax, createdate, hs_object_id, hs_product_id, hs_images, hs_lastmodifieddate, hs_line_item_currency_code, hs_sku, hs_url, hs_cost_of_goods_sold, hs_discount_percentage, hs_term_in_months+ value: `Returned by default: name, description, price, quantity, amount, discount, tax, createdate, hs_object_id, hs_product_id, hs_images, hs_lastmodifieddate, hs_line_item_currency_code, hs_sku, hs_url, hs_cost_of_goods_sold, hs_discount_percentage, hs_term_in_months.- **Specify here a list of additional properties to retrieve**`,+Pick more under **Advanced**.`,}),additionalPropertiesToRetrieve: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.LINE_ITEM,- displayName: 'Additional properties to retrieve',+ displayName: 'Additional Properties to Retrieve',required: false,+ advanced: true,}),},async run(context) {diff --git a/packages/pieces/community/hubspot/src/lib/actions/get-owner-by-email.ts b/packages/pieces/community/hubspot/src/lib/actions/get-owner-by-email.tsindex b9c15e8a93c..60bde341573 100644--- a/packages/pieces/community/hubspot/src/lib/actions/get-owner-by-email.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/get-owner-by-email.ts@@ -19,6 +19,8 @@ export const getOwnerByEmailAction = createAction({props: {email: Property.ShortText({displayName: 'Owner Email',+ description: 'The email of the HubSpot user who owns records.',+ placeholder: '[email protected]',required: true,}),},diff --git a/packages/pieces/community/hubspot/src/lib/actions/get-owner-by-id.ts b/packages/pieces/community/hubspot/src/lib/actions/get-owner-by-id.tsindex 678e8f112d8..6640f50ab63 100644--- a/packages/pieces/community/hubspot/src/lib/actions/get-owner-by-id.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/get-owner-by-id.ts@@ -15,6 +15,7 @@ export const getOwnerByIdAction = createAction({props: {ownerId: Property.ShortText({displayName: 'Owner ID',+ description: 'Find it in a record\'s hubspot_owner_id property.',required: true,}),},diff --git a/packages/pieces/community/hubspot/src/lib/actions/get-page.ts b/packages/pieces/community/hubspot/src/lib/actions/get-page.tsindex 032d3963df5..64a09c6f986 100644--- a/packages/pieces/community/hubspot/src/lib/actions/get-page.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/get-page.ts@@ -9,7 +9,7 @@ export const getPageAction = createAction({name: 'get-page',classification: 'READ',displayName: 'Get Page',- description: 'Gets landing/site page Details.',+ description: 'Gets a landing page or site page by its ID.',audience: 'both',aiMetadata: {description:@@ -21,7 +21,7 @@ export const getPageAction = createAction({pageType: pageType,pageId: Property.ShortText({displayName: 'Page ID',- description: 'The ID of the page to get.',+ description: 'Map it from an earlier step like Create Page.',required: true,}),},diff --git a/packages/pieces/community/hubspot/src/lib/actions/get-pipeline-stage-details.ts b/packages/pieces/community/hubspot/src/lib/actions/get-pipeline-stage-details.tsindex 13ce708e672..b946027ebb4 100644--- a/packages/pieces/community/hubspot/src/lib/actions/get-pipeline-stage-details.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/get-pipeline-stage-details.ts@@ -8,7 +8,7 @@ export const getPipelineStageDetailsAction = createAction({name: 'get-pipeline-stage-details',classification: 'READ',displayName: 'Get Pipeline Stage Details',- description: 'Finds and retrieves CRM object pipeline stage details.',+ description: 'Gets the details of a deal or ticket pipeline stage.',audience: 'both',aiMetadata: { description: 'Retrieves the configuration of a single pipeline stage (label, order, metadata) for a ticket or deal pipeline, given the object type, pipeline ID, and stage ID. Use to resolve or validate a stage ID before setting a deal or ticket stage. Read-only and idempotent.', idempotent: true },outputSchema: pipelineStageDetailsOutputSchema,@@ -20,7 +20,7 @@ export const getPipelineStageDetailsAction = createAction({disabled: false,options: [{- label: 'Tickets',+ label: 'Ticket',value: 'ticket',},{@@ -32,10 +32,12 @@ export const getPipelineStageDetailsAction = createAction({}),pipelineId: Property.ShortText({displayName: 'Pipeline ID',+ description: 'The pipeline\'s ID, found in a deal or ticket\'s pipeline property.',required: true,}),stageId: Property.ShortText({displayName: 'Stage ID',+ description: 'The stage\'s ID, found in a deal or ticket\'s stage property.',required: true,}),},diff --git a/packages/pieces/community/hubspot/src/lib/actions/get-product.ts b/packages/pieces/community/hubspot/src/lib/actions/get-product.tsindex 4d7ea7feef4..331fada0723 100644--- a/packages/pieces/community/hubspot/src/lib/actions/get-product.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/get-product.ts@@ -12,28 +12,27 @@ export const getProductAction = createAction({name: 'get-product',classification: 'READ',displayName: 'Get Product',- description: 'Gets a product.',+ description: 'Gets a product by its ID.',audience: 'both',aiMetadata: { description: 'Fetch a single HubSpot product by its product ID, returning its default and any requested additional properties. Read-only and repeatable. Use Find Product when you only know property values rather than the ID.', idempotent: true },outputSchema: crmObjectOutputSchema,props: {productId: Property.ShortText({displayName: 'Product ID',- description: 'The ID of the product to get.',+ description: 'Map it from an earlier step like Find Product.',required: true,}),markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- createdate, description, name, price, tax, hs_lastmodifieddate-- **Specify here a list of additional properties to retrieve**`,+ value: `Returned by default: createdate, description, name, price, tax, hs_lastmodifieddate.++Pick more under **Advanced**.`,}),additionalPropertiesToRetrieve: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.PRODUCT,- displayName: 'Additional properties to retrieve',+ displayName: 'Additional Properties to Retrieve',required: false,+ advanced: true,}),},async run(context) {diff --git a/packages/pieces/community/hubspot/src/lib/actions/get-ticket.ts b/packages/pieces/community/hubspot/src/lib/actions/get-ticket.tsindex bb15acf3417..1438a33ea15 100644--- a/packages/pieces/community/hubspot/src/lib/actions/get-ticket.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/get-ticket.ts@@ -12,28 +12,27 @@ export const getTicketAction = createAction({name: 'get-ticket',classification: 'READ',displayName: 'Get Ticket',- description: 'Gets a ticket.',+ description: 'Gets a ticket by its ID.',audience: 'both',aiMetadata: { description: 'Fetches a single support ticket by its HubSpot ticket ID, returning default and any requested additional properties. Use when you already have the ticket ID; use Find Ticket to look one up by another property first. Read-only and idempotent.', idempotent: true },outputSchema: crmObjectOutputSchema,props: {ticketId: Property.ShortText({displayName: 'Ticket ID',- description: 'The ID of the ticket to get.',+ description: 'Map it from an earlier step like Find Ticket.',required: true,}),markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- subject, content, source_type, createdate, hs_pipeline, hs_pipeline_stage, hs_resolution, hs_ticket_category, hs_ticket_id, hs_ticket_priority, hs_lastmodifieddate, hubspot_owner_id, hubspot_team_id-- **Specify here a list of additional properties to retrieve**`,+ value: `Returned by default: subject, content, source_type, createdate, hs_pipeline, hs_pipeline_stage, hs_resolution, hs_ticket_category, hs_ticket_id, hs_ticket_priority, hs_lastmodifieddate, hubspot_owner_id, hubspot_team_id.++Pick more under **Advanced**.`,}),additionalPropertiesToRetrieve: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.TICKET,- displayName: 'Additional properties to retrieve',+ displayName: 'Additional Properties to Retrieve',required: false,+ advanced: true,}),},async run(context) {diff --git a/packages/pieces/community/hubspot/src/lib/actions/remove-associations.ts b/packages/pieces/community/hubspot/src/lib/actions/remove-associations.tsindex 27d9d99d33b..40622585679 100644--- a/packages/pieces/community/hubspot/src/lib/actions/remove-associations.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/remove-associations.ts@@ -16,33 +16,33 @@ export const removeAssociationsAction = createAction({name: 'remove-associations',classification: 'WRITE',displayName: 'Remove Associations',- description: 'Removes associations between objects',+ description: 'Unlinks a record from one or more linked records.',audience: 'both',aiMetadata: { description: 'Remove the labeled association of a specific type between one source HubSpot object and one or more target objects, batching the targets. Removing an already-absent association is harmless, so it is idempotent on the end state. Use Create Associations to add links.', idempotent: true },outputSchema: removeAssociationsOutputSchema,props: {fromObjectId: Property.ShortText({displayName: 'From Object ID',- description: 'The ID of the object you want to remove the association from.',+ description: 'Map it from an earlier Find or Get step.',required: true,}),fromObjectType: fromObjectTypeAssociationDropdown({objectType: OBJECT_TYPE.COMPANY,displayName: 'From Object Type',required: true,- description: 'The type of the object you want to remove the association from.',+ description: 'The object type of that record.',}),toObjectType: fromObjectTypeAssociationDropdown({objectType: OBJECT_TYPE.COMPANY,displayName: 'To Object Type',required: true,- description: "Type of the currently associated objects that you're removing the association from.",+ description: 'The object type of the linked records.',}),associationType: associationTypeDropdown,toObjectIds: toObjectIdsDropdown({objectType: OBJECT_TYPE.COMPANY,- displayName: 'To Object IDs',- description: 'The IDs of the currently associated objects that you\'re removing the association from.',+ displayName: 'To Records',+ description: 'The linked records to unlink.',required: true,}),},diff --git a/packages/pieces/community/hubspot/src/lib/actions/remove-contact-from-list.ts b/packages/pieces/community/hubspot/src/lib/actions/remove-contact-from-list.tsindex 994bfea7559..aec82b7b2d8 100644--- a/packages/pieces/community/hubspot/src/lib/actions/remove-contact-from-list.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/remove-contact-from-list.ts@@ -10,7 +10,7 @@ export const removeContactFromListAction = createAction({name: 'remove-contact-from-list',classification: 'WRITE',displayName: 'Remove Contact from List',- description: 'Remove a contact from a specific list.',+ description: 'Removes a contact from a static list by email.',audience: 'both',aiMetadata: {description:@@ -21,6 +21,7 @@ export const removeContactFromListAction = createAction({listId: staticListsDropdown,email: Property.ShortText({displayName: 'Contact Email',+ placeholder: '[email protected]',required: true,}),},diff --git a/packages/pieces/community/hubspot/src/lib/actions/remove-email-subscription.ts b/packages/pieces/community/hubspot/src/lib/actions/remove-email-subscription.tsindex 8defb9373cc..be5bfb995e4 100644--- a/packages/pieces/community/hubspot/src/lib/actions/remove-email-subscription.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/remove-email-subscription.ts@@ -7,12 +7,13 @@ export const removeEmailSubscriptionAction = createAction({name: 'remove-email-subscription',classification: 'DESTRUCTIVE',displayName: 'Remove Email Subscription',- description: 'Removes email subscription.',+ description: 'Unsubscribes an email address from all HubSpot email subscriptions.',audience: 'both',aiMetadata: { description: 'Unsubscribe an email address from all HubSpot marketing email subscriptions (opt the contact out of every subscription type). Re-running leaves the address in the same unsubscribed state, so it is idempotent.', idempotent: true },props: {email: Property.ShortText({- displayName: 'Email',+ displayName: 'Contact Email',+ placeholder: '[email protected]',required: true,}),},diff --git a/packages/pieces/community/hubspot/src/lib/actions/update-company.ts b/packages/pieces/community/hubspot/src/lib/actions/update-company.tsindex ce252834aad..1b86349ede1 100644--- a/packages/pieces/community/hubspot/src/lib/actions/update-company.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/update-company.ts@@ -16,29 +16,28 @@ export const updateCompanyAction = createAction({name: 'update-company',classification: 'WRITE',displayName: 'Update Company',- description: 'Updates a company in Hubspot.',+ description: 'Updates a company in HubSpot.',audience: 'both',aiMetadata: { description: 'Update properties on an existing HubSpot company identified by Company ID; only the supplied fields are changed. Applying the same field values repeatedly leaves the record in the same state, so it is idempotent. Use Create Company to add a new record, or a find action to obtain the ID first.', idempotent: true },outputSchema: crmObjectOutputSchema,props: {companyId: Property.ShortText({displayName: 'Company ID',- description: 'The ID of the company to update.',+ description: 'Map it from an earlier step like Find Company.',required: true,}),objectProperties: standardObjectDynamicProperties(OBJECT_TYPE.COMPANY, []),markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- name, domain, industry, about_us, phone, address, address2, city, state, zip, country, website, type, description, founded_year, hs_createdate, hs_lastmodifieddate, hs_object_id, is_public, timezone, total_money_raised, total_revenue, owneremail, ownername, numberofemployees, annualrevenue, lifecyclestage, createdate, web_technologies-- **Specify here a list of additional properties to retrieve**`,+ value: `Returned by default: name, domain, industry, about_us, phone, address, address2, city, state, zip, country, website, type, description, founded_year, hs_createdate, hs_lastmodifieddate, hs_object_id, is_public, timezone, total_money_raised, total_revenue, owneremail, ownername, numberofemployees, annualrevenue, lifecyclestage, createdate, web_technologies.++Pick more under **Advanced**.`,}),additionalPropertiesToRetrieve: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.COMPANY,- displayName: 'Additional properties to retrieve',+ displayName: 'Additional Properties to Retrieve',required: false,+ advanced: true,}),},async run(context) {diff --git a/packages/pieces/community/hubspot/src/lib/actions/update-contact.ts b/packages/pieces/community/hubspot/src/lib/actions/update-contact.tsindex c2d9a0a4c6c..c4c3742a474 100644--- a/packages/pieces/community/hubspot/src/lib/actions/update-contact.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/update-contact.ts@@ -16,29 +16,28 @@ export const updateContactAction = createAction({name: 'update-contact',classification: 'WRITE',displayName: 'Update Contact',- description: 'Updates a contact in Hubspot.',+ description: 'Updates a contact in HubSpot.',audience: 'both',aiMetadata: { description: 'Update properties on an existing HubSpot contact identified by Contact ID; only the supplied fields are changed. Applying the same values repeatedly is idempotent. Use a find action to resolve the contact ID first, or a create action to add a new contact.', idempotent: true },outputSchema: crmObjectOutputSchema,props: {contactId: Property.ShortText({displayName: 'Contact ID',- description: 'The ID of the contact to update.',+ description: 'Map it from an earlier step like Find Contact.',required: true,}),objectProperties: standardObjectDynamicProperties(OBJECT_TYPE.CONTACT, []),markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- firstname, lastname, email, company, website, mobilephone, phone, fax, address, city, state, zip, salutation, country, jobtitle, hs_createdate, hs_email_domain, hs_object_id, lastmodifieddate, hs_persona, hs_language, lifecyclestage, createdate, numemployees, annualrevenue, industry-- **Specify here a list of additional properties to retrieve**`,+ value: `Returned by default: firstname, lastname, email, company, website, mobilephone, phone, fax, address, city, state, zip, salutation, country, jobtitle, hs_createdate, hs_email_domain, hs_object_id, lastmodifieddate, hs_persona, hs_language, lifecyclestage, createdate, numemployees, annualrevenue, industry.++Pick more under **Advanced**.`,}),additionalPropertiesToRetrieve: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.CONTACT,- displayName: 'Additional properties to retrieve',+ displayName: 'Additional Properties to Retrieve',required: false,+ advanced: true,}),},async run(context) {diff --git a/packages/pieces/community/hubspot/src/lib/actions/update-custom-object.ts b/packages/pieces/community/hubspot/src/lib/actions/update-custom-object.tsindex fbc544d7888..2ddf8bd762d 100644--- a/packages/pieces/community/hubspot/src/lib/actions/update-custom-object.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/update-custom-object.ts@@ -15,7 +15,7 @@ export const updateCustomObjectAction = createAction({name: 'update-custome-object',classification: 'WRITE',displayName: 'Update Custom Object',- description: 'Updates a custom object in Hubspot.',+ description: 'Updates a custom object record in HubSpot.',audience: 'both',aiMetadata: { description: 'Updates properties on an existing custom-object record identified by its custom object type and record ID, then returns the refreshed record. Use to modify a known custom-object record; for standard CRM objects use the dedicated update actions instead. Idempotent: applying the same property values converges to the same record state.', idempotent: true },outputSchema: crmObjectOutputSchema,@@ -23,19 +23,21 @@ export const updateCustomObjectAction = createAction({customObjectType: customObjectDropdown,customObjectId: Property.ShortText({displayName: 'Custom Object ID',- description: 'The ID of the custom object to update.',+ description: 'Map it from an earlier step like Find Custom Object.',required: true,}),objectProperties: customObjectDynamicProperties,markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- hs_object_id, hs_lastmodifieddate, hs_createdate+ value: `Returned by default: hs_object_id, hs_lastmodifieddate, hs_createdate.- **Specify here a list of additional properties to retrieve**`,+Pick more under **Advanced**.`,+ }),+ additionalPropertiesToRetrieve: customObjectPropertiesDropdown({+ displayName: 'Additional Properties to Retrieve',+ required: false,+ advanced: true,}),- additionalPropertiesToRetrieve: customObjectPropertiesDropdown('Additional Properties to Retrieve', false),},async run(context) {const customObjectType = context.propsValue.customObjectType as string;diff --git a/packages/pieces/community/hubspot/src/lib/actions/update-deal.ts b/packages/pieces/community/hubspot/src/lib/actions/update-deal.tsindex 4044dd5c31a..92fb5c0dfc6 100644--- a/packages/pieces/community/hubspot/src/lib/actions/update-deal.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/update-deal.ts@@ -30,21 +30,24 @@ export const updateDealAction = createAction({props: {dealId: Property.ShortText({displayName: 'Deal ID',- description: 'The ID of the deal to update.',+ description: 'Map it from an earlier step like Find Deal.',required: true,}),dealname: Property.ShortText({displayName: 'Deal Name',+ description: 'Leave empty to keep the current name.',required: false,}),pipelineId: pipelineDropdown({objectType: OBJECT_TYPE.DEAL,displayName: 'Deal Pipeline',+ description: 'Leave empty to keep the current pipeline.',required: false,}),pipelineStageId: pipelineStageDropdown({objectType: OBJECT_TYPE.DEAL,displayName: 'Deal Stage',+ description: 'Leave empty to keep the current stage.',required: false,}),objectProperties: standardObjectDynamicProperties(OBJECT_TYPE.DEAL, [@@ -54,16 +57,15 @@ export const updateDealAction = createAction({]),markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- dealtype, dealname, amount, description, closedate, createdate, num_associated_contacts, hs_forecast_amount, hs_forecast_probability, hs_manual_forecast_category, hs_next_step, hs_object_id, hs_lastmodifieddate, hubspot_owner_id, hubspot_team_id-- **Specify here a list of additional properties to retrieve**`,+ value: `Returned by default: dealtype, dealname, amount, description, closedate, createdate, num_associated_contacts, hs_forecast_amount, hs_forecast_probability, hs_manual_forecast_category, hs_next_step, hs_object_id, hs_lastmodifieddate, hubspot_owner_id, hubspot_team_id.++Pick more under **Advanced**.`,}),additionalPropertiesToRetrieve: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.DEAL,- displayName: 'Additional properties to retrieve',+ displayName: 'Additional Properties to Retrieve',required: false,+ advanced: true,}),},async run(context) {diff --git a/packages/pieces/community/hubspot/src/lib/actions/update-line-item.ts b/packages/pieces/community/hubspot/src/lib/actions/update-line-item.tsindex 9eb6924c23f..e1be5720397 100644--- a/packages/pieces/community/hubspot/src/lib/actions/update-line-item.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/update-line-item.ts@@ -17,34 +17,34 @@ export const updateLineItemAction = createAction({name: 'update-line-item',classification: 'WRITE',displayName: 'Update Line Item',- description: 'Updates a line item in Hubspot.',+ description: 'Updates a line item in HubSpot.',audience: 'both',aiMetadata: { description: 'Update properties (product, quantity, price, etc.) on an existing HubSpot line item identified by Line Item ID; only supplied fields change. Applying the same values repeatedly is idempotent. Use a find action to obtain the line item ID first.', idempotent: true },outputSchema: crmObjectOutputSchema,props: {lineItemId: Property.ShortText({displayName: 'Line Item ID',- description: 'The ID of the line item to update.',+ description: 'Map it from an earlier step like Find Line Item.',required: true,}),productId: productDropdown({- displayName: 'Line Item Information: Product ID',+ displayName: 'Product',+ description: 'Leave empty to keep the current product.',required: false,objectType: OBJECT_TYPE.PRODUCT,}),objectProperties: standardObjectDynamicProperties(OBJECT_TYPE.LINE_ITEM, ['hs_product_id']),markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- name, description, price, quantity, amount, discount, tax, createdate, hs_object_id, hs_product_id, hs_images, hs_lastmodifieddate, hs_line_item_currency_code, hs_sku, hs_url, hs_cost_of_goods_sold, hs_discount_percentage, hs_term_in_months-- **Specify here a list of additional properties to retrieve**`,+ value: `Returned by default: name, description, price, quantity, amount, discount, tax, createdate, hs_object_id, hs_product_id, hs_images, hs_lastmodifieddate, hs_line_item_currency_code, hs_sku, hs_url, hs_cost_of_goods_sold, hs_discount_percentage, hs_term_in_months.++Pick more under **Advanced**.`,}),additionalPropertiesToRetrieve: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.LINE_ITEM,- displayName: 'Additional properties to retrieve',+ displayName: 'Additional Properties to Retrieve',required: false,+ advanced: true,}),},async run(context) {@@ -53,9 +53,7 @@ export const updateLineItemAction = createAction({const objectProperties = context.propsValue.objectProperties ?? {};const additionalPropertiesToRetrieve = context.propsValue.additionalPropertiesToRetrieve ?? [];- const lineItemProperties: Record<string, string> = {- hs_product_id: productId!,- };+ const lineItemProperties: Record<string, string> = {};if(productId){diff --git a/packages/pieces/community/hubspot/src/lib/actions/update-product.ts b/packages/pieces/community/hubspot/src/lib/actions/update-product.tsindex 354e787babf..b2174d821d7 100644--- a/packages/pieces/community/hubspot/src/lib/actions/update-product.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/update-product.ts@@ -16,29 +16,28 @@ export const updateProductAction = createAction({name: 'update-product',classification: 'WRITE',displayName: 'Update Product',- description: 'Updates a product in Hubspot.',+ description: 'Updates a product in HubSpot.',audience: 'both',aiMetadata: { description: 'Updates properties on an existing product identified by its product ID, such as name, price, description, or tax, then returns the refreshed product. Use to modify a known product in the product library. Idempotent: applying the same property values converges to the same product state.', idempotent: true },outputSchema: crmObjectOutputSchema,props: {productId:Property.ShortText({displayName:'Product ID',- description:'The ID of the product to update.',+ description:'Map it from an earlier step like Find Product.',required:true}),objectProperties: standardObjectDynamicProperties(OBJECT_TYPE.PRODUCT,[]),markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- createdate, description, name, price, tax, hs_lastmodifieddate-- **Specify here a list of additional properties to retrieve**`,+ value: `Returned by default: createdate, description, name, price, tax, hs_lastmodifieddate.++Pick more under **Advanced**.`,}),additionalPropertiesToRetrieve: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.PRODUCT,- displayName: 'Additional properties to retrieve',+ displayName: 'Additional Properties to Retrieve',required: false,+ advanced: true,}),},async run(context) {diff --git a/packages/pieces/community/hubspot/src/lib/actions/update-ticket.ts b/packages/pieces/community/hubspot/src/lib/actions/update-ticket.tsindex db18b86d6b6..dfb8194d139 100644--- a/packages/pieces/community/hubspot/src/lib/actions/update-ticket.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/update-ticket.ts@@ -19,21 +19,24 @@ export const updateTicketAction = createAction({props: {ticketId: Property.ShortText({displayName: 'Ticket ID',- description: 'The ID of the ticket to update.',+ description: 'Map it from an earlier step like Find Ticket.',required: true,}),ticketName: Property.ShortText({displayName: 'Ticket Name',+ description: 'Leave empty to keep the current name.',required: false,}),pipelineId: pipelineDropdown({objectType: OBJECT_TYPE.TICKET,displayName: 'Ticket Pipeline',+ description: 'Leave empty to keep the current pipeline.',required: false,}),pipelineStageId: pipelineStageDropdown({objectType: OBJECT_TYPE.TICKET,- displayName: 'Ticket Pipeline Stage',+ displayName: 'Ticket Stage',+ description: 'Leave empty to keep the current stage.',required: false,}),objectProperties: standardObjectDynamicProperties(OBJECT_TYPE.TICKET, [@@ -43,16 +46,15 @@ export const updateTicketAction = createAction({]),markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- subject, content, source_type, createdate, hs_pipeline, hs_pipeline_stage, hs_resolution, hs_ticket_category, hs_ticket_id, hs_ticket_priority, hs_lastmodifieddate, hubspot_owner_id, hubspot_team_id-- **Specify here a list of additional properties to retrieve**`,+ value: `Returned by default: subject, content, source_type, createdate, hs_pipeline, hs_pipeline_stage, hs_resolution, hs_ticket_category, hs_ticket_id, hs_ticket_priority, hs_lastmodifieddate, hubspot_owner_id, hubspot_team_id.++Pick more under **Advanced**.`,}),additionalPropertiesToRetrieve: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.TICKET,- displayName: 'Additional properties to retrieve',+ displayName: 'Additional Properties to Retrieve',required: false,+ advanced: true,}),},async run(context) {diff --git a/packages/pieces/community/hubspot/src/lib/actions/upload-file.ts b/packages/pieces/community/hubspot/src/lib/actions/upload-file.tsindex 4a8caedb342..494b680b457 100644--- a/packages/pieces/community/hubspot/src/lib/actions/upload-file.ts+++ b/packages/pieces/community/hubspot/src/lib/actions/upload-file.ts@@ -63,23 +63,25 @@ export const uploadFileAction = createAction({}),fileName: Property.ShortText({displayName: 'File Name',+ placeholder: 'report.pdf',required: true,}),accessLevel: Property.StaticDropdown({displayName: 'Access Level',+ description: 'Indexable files can appear in search engine results.',required: true,options: {disabled: false,options: [{value: 'PUBLIC_INDEXABLE',- label: 'PUBLIC_INDEXABLE',+ label: 'Public and indexable',},{value: 'PUBLIC_NOT_INDEXABLE',- label: 'PUBLIC_NOT_INDEXABLE',+ label: 'Public but not indexable',},- { label: 'PRIVATE', value: 'PRIVATE' },+ { label: 'Private', value: 'PRIVATE' },],},}),diff --git a/packages/pieces/community/hubspot/src/lib/common/props.ts b/packages/pieces/community/hubspot/src/lib/common/props.tsindex bccf53481f5..83ca569085f 100644--- a/packages/pieces/community/hubspot/src/lib/common/props.ts+++ b/packages/pieces/community/hubspot/src/lib/common/props.ts@@ -372,7 +372,7 @@ export const standardObjectDynamicProperties = (objectType: string, excludedPropexport const customObjectDynamicProperties = Property.DynamicProperties({auth: hubspotAuth,- displayName: 'Custom Object Properties',+ displayName: 'Object Properties',refreshers: ['customObjectType'],required: false,props: async ({ auth, customObjectType }) => {@@ -396,6 +396,7 @@ export const standardObjectPropertiesDropdown = (refreshers: [],required: params.required,description: params.description,+ advanced: params.advanced,options: async ({ auth }) => {if (!auth) {return buildEmptyList({@@ -439,16 +440,19 @@ export const standardObjectPropertiesDropdown = (});};-export const customObjectPropertiesDropdown = (- displayName: string,- required: boolean,+export const customObjectPropertiesDropdown = ({+ displayName,+ required,+ description,isSingleSelect = false,-) =>+ advanced = false,+}: CustomObjectPropertiesDropdownParams) =>Property.DynamicProperties({auth: hubspotAuth,displayName,refreshers: ['customObjectType'],required,+ advanced,props: async ({ auth, customObjectType }) => {if (!auth || !customObjectType) {return {};@@ -486,6 +490,7 @@ export const customObjectPropertiesDropdown = (props['values'] = dropdownFunction({displayName,+ description,required,options: {disabled: false,@@ -499,8 +504,8 @@ export const customObjectPropertiesDropdown = (export const workflowIdDropdown = Property.Dropdown({auth: hubspotAuth,displayName: 'Workflow',+ description: 'Only workflows that are turned on are listed.',refreshers: [],- // description: 'Workflow to add contact to',required: true,options: async ({ auth }) => {if (!auth) {@@ -579,7 +584,7 @@ export const pipelineStageDropdown = (params: DropdownParams) =>options: async ({ auth, pipelineId }) => {if (!auth || !pipelineId) {return buildEmptyList({- placeholder: 'Please connect your account and select a pipeline.',+ placeholder: 'Please select a pipeline first.',});}@@ -644,7 +649,7 @@ export const productDropdown = (params: DropdownParams) =>});export const customObjectDropdown = Property.Dropdown({auth: hubspotAuth,- displayName: 'Type of Custom Object',+ displayName: 'Custom Object Type',refreshers: [],required: true,options: async ({ auth }) => {@@ -674,7 +679,8 @@ export const customObjectDropdown = Property.Dropdown({export const staticListsDropdown = Property.Dropdown({auth: hubspotAuth,- displayName: 'List ID',+ displayName: 'Contact List',+ description: 'Only static lists are shown.',refreshers: [],required: true,options: async ({ auth }) => {@@ -759,7 +765,7 @@ export const fromObjectTypeAssociationDropdown = (params: DropdownParams) =>export const associationTypeDropdown = Property.Dropdown({auth: hubspotAuth,- displayName: 'Type of the association',+ displayName: 'Association Type',refreshers: ['fromObjectType', 'toObjectType'],required: true,options: async ({ auth, fromObjectType, toObjectType }) => {@@ -895,23 +901,36 @@ export const blogUrlDropdown = Property.Dropdown({}- const response = await httpClient.sendRequest<ListBlogsResponse>({- method: HttpMethod.GET,- url: 'https://api.hubapi.com/content/api/v2/blogs',- authentication: { type: AuthenticationType.BEARER_TOKEN, token: getHubspotAccessToken(auth) },- queryParams: {- limit: '100',- },- });+ const options: DropdownOption<string>[] = [];+ let offset = 0;+ let total = 0;+ do {+ const response = await httpClient.sendRequest<ListBlogsResponse>({+ method: HttpMethod.GET,+ url: 'https://api.hubapi.com/content/api/v2/blogs',+ authentication: { type: AuthenticationType.BEARER_TOKEN, token: getHubspotAccessToken(auth) },+ queryParams: {+ limit: '100',+ offset: String(offset),+ },+ });+ const { objects } = response.body;+ if (objects.length === 0) {+ break;+ }+ for (const blog of objects) {+ options.push({+ label: blog.absolute_url,+ value: blog.id.toString(),+ });+ }+ offset += objects.length;+ total = response.body.total;+ } while (offset < total);return {disabled: false,- options: response.body.objects.map((blog) => {- return {- label: blog.absolute_url,- value: blog.id.toString(),- };- }),+ options,};},});@@ -965,6 +984,15 @@ type DropdownParams = {displayName: string;required: boolean;description?: string;+ advanced?: boolean;+};++type CustomObjectPropertiesDropdownParams = {+ displayName: string;+ required: boolean;+ description?: string;+ isSingleSelect?: boolean;+ advanced?: boolean;};export const pageType=Property.StaticDropdown({diff --git a/packages/pieces/community/hubspot/src/lib/triggers/deal-stage-updated.ts b/packages/pieces/community/hubspot/src/lib/triggers/deal-stage-updated.tsindex 54b9d003bb1..5dfba06fd88 100644--- a/packages/pieces/community/hubspot/src/lib/triggers/deal-stage-updated.ts+++ b/packages/pieces/community/hubspot/src/lib/triggers/deal-stage-updated.ts@@ -117,16 +117,15 @@ export const dealStageUpdatedTrigger = createTrigger({}),markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- dealtype, dealname, amount, description, closedate, createdate, num_associated_contacts, hs_forecast_amount, hs_forecast_probability, hs_manual_forecast_category, hs_next_step, hs_object_id, hs_lastmodifieddate, hubspot_owner_id, hubspot_team_id, hs_v2_date_entered_current_stage-- **Specify here a list of additional properties to retrieve**`,+ value: `Returned by default: dealtype, dealname, amount, description, closedate, createdate, num_associated_contacts, hs_forecast_amount, hs_forecast_probability, hs_manual_forecast_category, hs_next_step, hs_object_id, hs_lastmodifieddate, hubspot_owner_id, hubspot_team_id, hs_v2_date_entered_current_stage.++Pick more under **Advanced**.`,}),additionalPropertiesToRetrieve: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.DEAL,- displayName: 'Additional properties to retrieve',+ displayName: 'Additional Properties to Retrieve',required: false,+ advanced: true,}),},outputSchema: crmObjectOutputSchema,diff --git a/packages/pieces/community/hubspot/src/lib/triggers/email-subscriptions-timeline.ts b/packages/pieces/community/hubspot/src/lib/triggers/email-subscriptions-timeline.tsindex b43c5f17b0b..360350d9a72 100644--- a/packages/pieces/community/hubspot/src/lib/triggers/email-subscriptions-timeline.ts+++ b/packages/pieces/community/hubspot/src/lib/triggers/email-subscriptions-timeline.ts@@ -59,8 +59,8 @@ export const newEmailSubscriptionsTimelineTrigger = createTrigger({auth: hubspotAuth,name: 'new-email-subscriptions-timeline',classification: 'READ',- displayName: 'New Email Subscriptions Timeline',- description: 'Triggers when a new email timeline subscription added for the portal.',+ displayName: 'New Email Subscription Change',+ description: "Triggers when a contact's email subscription status changes.",aiMetadata: {description:'Fires when a new email-subscription timeline event is recorded for the HubSpot portal. Each event represents one subscription change (such as a bounce, unsubscribe, or opt-in) for a recipient, including the change type, source, and the underlying event that caused it. Polls the portal-wide email subscription timeline by timestamp.',diff --git a/packages/pieces/community/hubspot/src/lib/triggers/new-blog-article.ts b/packages/pieces/community/hubspot/src/lib/triggers/new-blog-article.tsindex 5cfc416120a..4f46eb21862 100644--- a/packages/pieces/community/hubspot/src/lib/triggers/new-blog-article.ts+++ b/packages/pieces/community/hubspot/src/lib/triggers/new-blog-article.ts@@ -86,8 +86,8 @@ export const newBlogArticleTrigger = createTrigger({auth: hubspotAuth,name: 'new-blog-article',classification: 'READ',- displayName: 'New COS Blog Article',- description: 'Triggers when a new article is added to your COS blog.',+ displayName: 'New Blog Post',+ description: 'Triggers when a post is added to your HubSpot blog.',aiMetadata: {description:'Fires when a blog post is added to your HubSpot COS (CMS) blog. The configured article state (Published only, Draft only, or Both) determines which posts qualify; published posts are tracked by publish date and drafts by creation date. Each event represents one blog post with its full CMS metadata.',@@ -96,7 +96,7 @@ export const newBlogArticleTrigger = createTrigger({type: TriggerStrategy.POLLING,props: {articleState: Property.StaticDropdown({- displayName: 'Article State',+ displayName: 'Post Status',required: true,options: {disabled: false,diff --git a/packages/pieces/community/hubspot/src/lib/triggers/new-company-property-change.ts b/packages/pieces/community/hubspot/src/lib/triggers/new-company-property-change.tsindex b2092fc49c5..15a3a91660f 100644--- a/packages/pieces/community/hubspot/src/lib/triggers/new-company-property-change.ts+++ b/packages/pieces/community/hubspot/src/lib/triggers/new-company-property-change.ts@@ -137,7 +137,7 @@ export const newCompanyPropertyChangeTrigger = createTrigger({propertyName: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.COMPANY,- displayName: 'Property Name',+ displayName: 'Property',required: true,},true,diff --git a/packages/pieces/community/hubspot/src/lib/triggers/new-company.ts b/packages/pieces/community/hubspot/src/lib/triggers/new-company.tsindex 0c7165cce25..0affe5f8234 100644--- a/packages/pieces/community/hubspot/src/lib/triggers/new-company.ts+++ b/packages/pieces/community/hubspot/src/lib/triggers/new-company.ts@@ -77,7 +77,7 @@ export const newCompanyTrigger = createTrigger({name: 'new-company',classification: 'READ',displayName: 'New Company',- description: 'Trigger when a new company is added.',+ description: 'Triggers when a new company is created.',aiMetadata: {description:'Fires when a new company is created in HubSpot. Each event represents one company record with properties such as name, domain, industry, address, employee count, revenue, and lifecycle stage. Polls for companies by creation date; does not fire on updates to existing companies.',@@ -85,15 +85,13 @@ export const newCompanyTrigger = createTrigger({props: {markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- name, domain, industry, about_us, phone, address, address2, city, state, zip, country, website, type, description, founded_year, hs_createdate, hs_lastmodifieddate, hs_object_id, is_public, timezone, total_money_raised, total_revenue, owneremail, ownername, numberofemployees, annualrevenue, lifecyclestage, createdate, web_technologies-- **Specify here a list of additional properties to retrieve**`,+ value: `Returned by default: name, domain, industry, about_us, phone, address, address2, city, state, zip, country, website, type, description, founded_year, hs_createdate, hs_lastmodifieddate, hs_object_id, is_public, timezone, total_money_raised, total_revenue, owneremail, ownername, numberofemployees, annualrevenue, lifecyclestage, createdate, web_technologies.++Pick more below.`,}),additionalPropertiesToRetrieve: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.COMPANY,- displayName: 'Additional properties to retrieve',+ displayName: 'Additional Properties to Retrieve',required: false,}),},diff --git a/packages/pieces/community/hubspot/src/lib/triggers/new-contact-in-list.ts b/packages/pieces/community/hubspot/src/lib/triggers/new-contact-in-list.tsindex 0bc1d5ef474..ccaa43f1eec 100644--- a/packages/pieces/community/hubspot/src/lib/triggers/new-contact-in-list.ts+++ b/packages/pieces/community/hubspot/src/lib/triggers/new-contact-in-list.ts@@ -140,16 +140,15 @@ export const newContactInListTrigger = createTrigger({}),markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- firstname, lastname, email, company, website, mobilephone, phone, fax, address, city, state, zip, salutation, country, jobtitle, hs_createdate, hs_email_domain, hs_object_id, lastmodifieddate, hs_persona, hs_language, lifecyclestage, createdate, numemployees, annualrevenue, industry-- **Specify here a list of additional properties to retrieve**`,+ value: `Returned by default: firstname, lastname, email, company, website, mobilephone, phone, fax, address, city, state, zip, salutation, country, jobtitle, hs_createdate, hs_email_domain, hs_object_id, lastmodifieddate, hs_persona, hs_language, lifecyclestage, createdate, numemployees, annualrevenue, industry.++Pick more under **Advanced**.`,}),additionalPropertiesToRetrieve: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.CONTACT,- displayName: 'Additional properties to retrieve',+ displayName: 'Additional Properties to Retrieve',required: false,+ advanced: true,}),},async onEnable(context) {diff --git a/packages/pieces/community/hubspot/src/lib/triggers/new-contact-property-change.ts b/packages/pieces/community/hubspot/src/lib/triggers/new-contact-property-change.tsindex bb0e76637b5..bf435febfee 100644--- a/packages/pieces/community/hubspot/src/lib/triggers/new-contact-property-change.ts+++ b/packages/pieces/community/hubspot/src/lib/triggers/new-contact-property-change.ts@@ -138,7 +138,7 @@ export const newContactPropertyChangeTrigger = createTrigger({propertyName: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.CONTACT,- displayName: 'Property Name',+ displayName: 'Property',required: true,},true,diff --git a/packages/pieces/community/hubspot/src/lib/triggers/new-contact.ts b/packages/pieces/community/hubspot/src/lib/triggers/new-contact.tsindex 3c82d1039cb..3fc6f2a534d 100644--- a/packages/pieces/community/hubspot/src/lib/triggers/new-contact.ts+++ b/packages/pieces/community/hubspot/src/lib/triggers/new-contact.ts@@ -77,7 +77,7 @@ export const newContactTrigger = createTrigger({name: 'new-contact',classification: 'READ',displayName: 'New Contact',- description: 'Trigger when new contact is available.',+ description: 'Triggers when a new contact is created.',aiMetadata: {description:'Fires when a new contact is created in HubSpot. Each event represents one contact record with its properties such as name, email, company, phone, lifecycle stage, and address. Polls for contacts by creation date; does not fire on updates to existing contacts.',@@ -85,15 +85,13 @@ export const newContactTrigger = createTrigger({props: {markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- firstname, lastname, email, company, website, mobilephone, phone, fax, address, city, state, zip, salutation, country, jobtitle, hs_createdate, hs_email_domain, hs_object_id, lastmodifieddate, hs_persona, hs_language, lifecyclestage, createdate, numemployees, annualrevenue, industry-- **Specify here a list of additional properties to retrieve**`,+ value: `Returned by default: firstname, lastname, email, company, website, mobilephone, phone, fax, address, city, state, zip, salutation, country, jobtitle, hs_createdate, hs_email_domain, hs_object_id, lastmodifieddate, hs_persona, hs_language, lifecyclestage, createdate, numemployees, annualrevenue, industry.++Pick more below.`,}),additionalPropertiesToRetrieve: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.CONTACT,- displayName: 'Additional properties to retrieve',+ displayName: 'Additional Properties to Retrieve',required: false,}),},diff --git a/packages/pieces/community/hubspot/src/lib/triggers/new-custom-object-property-change.ts b/packages/pieces/community/hubspot/src/lib/triggers/new-custom-object-property-change.tsindex 1fbccdb8858..c2848f406f7 100644--- a/packages/pieces/community/hubspot/src/lib/triggers/new-custom-object-property-change.ts+++ b/packages/pieces/community/hubspot/src/lib/triggers/new-custom-object-property-change.ts@@ -141,7 +141,11 @@ export const newCustomObjectPropertyChangeTrigger = createTrigger({},props: {customObjectType: customObjectDropdown,- propertyName: customObjectPropertiesDropdown('Property Name', true, true),+ propertyName: customObjectPropertiesDropdown({+ displayName: 'Property',+ required: true,+ isSingleSelect: true,+ }),},outputSchema: crmObjectOutputSchema,type: TriggerStrategy.POLLING,diff --git a/packages/pieces/community/hubspot/src/lib/triggers/new-custom-object.ts b/packages/pieces/community/hubspot/src/lib/triggers/new-custom-object.tsindex d79239ad198..4136105d450 100644--- a/packages/pieces/community/hubspot/src/lib/triggers/new-custom-object.ts+++ b/packages/pieces/community/hubspot/src/lib/triggers/new-custom-object.ts@@ -92,7 +92,7 @@ export const newCustomObjectTrigger = createTrigger({name: 'new-custom-object',classification: 'READ',displayName: 'New Custom Object',- description: 'Triggers when new custom object is available.',+ description: 'Triggers when a new custom object record is created.',aiMetadata: {description:'Fires when a new record of the selected HubSpot custom object type is created. Each event represents one custom-object record with the properties chosen to retrieve plus standard fields like object ID and create date. Polls by creation date; does not fire on updates to existing records.',@@ -101,16 +101,15 @@ export const newCustomObjectTrigger = createTrigger({customObjectType: customObjectDropdown,markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- hs_object_id, hs_lastmodifieddate, hs_createdate-- **Specify here a list of additional properties to retrieve**`,+ value: `Returned by default: hs_object_id, hs_lastmodifieddate, hs_createdate.++Pick more under **Advanced**.`,+ }),+ additionalPropertiesToRetrieve: customObjectPropertiesDropdown({+ displayName: 'Additional Properties to Retrieve',+ required: false,+ advanced: true,}),- additionalPropertiesToRetrieve: customObjectPropertiesDropdown(- 'Additional Properties to Retrieve',- false,- ),},outputSchema: crmObjectOutputSchema,type: TriggerStrategy.POLLING,diff --git a/packages/pieces/community/hubspot/src/lib/triggers/new-deal-property-change.ts b/packages/pieces/community/hubspot/src/lib/triggers/new-deal-property-change.tsindex e3aa13caa59..426d2b654d7 100644--- a/packages/pieces/community/hubspot/src/lib/triggers/new-deal-property-change.ts+++ b/packages/pieces/community/hubspot/src/lib/triggers/new-deal-property-change.ts@@ -137,7 +137,7 @@ export const newDealPropertyChangeTrigger = createTrigger({propertyName: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.DEAL,- displayName: 'Property Name',+ displayName: 'Property',required: true,},true,diff --git a/packages/pieces/community/hubspot/src/lib/triggers/new-deal.ts b/packages/pieces/community/hubspot/src/lib/triggers/new-deal.tsindex a663b2a7cff..79a71d21a51 100644--- a/packages/pieces/community/hubspot/src/lib/triggers/new-deal.ts+++ b/packages/pieces/community/hubspot/src/lib/triggers/new-deal.ts@@ -77,7 +77,7 @@ export const newDealTrigger = createTrigger({name: 'new-deal',classification: 'READ',displayName: 'New Deal',- description: 'Trigger when a new deal is added.',+ description: 'Triggers when a new deal is created.',aiMetadata: {description:'Fires when a new deal is created in HubSpot. Each event represents one deal record with properties such as deal name, type, amount, close date, owner, forecast, and associated contacts. Polls for deals by creation date; does not fire on updates to existing deals.',@@ -85,15 +85,13 @@ export const newDealTrigger = createTrigger({props: {markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- dealtype, dealname, amount, description, closedate, createdate, num_associated_contacts, hs_forecast_amount, hs_forecast_probability, hs_manual_forecast_category, hs_next_step, hs_object_id, hs_lastmodifieddate, hubspot_owner_id, hubspot_team_id-- **Specify here a list of additional properties to retrieve**`,+ value: `Returned by default: dealtype, dealname, amount, description, closedate, createdate, num_associated_contacts, hs_forecast_amount, hs_forecast_probability, hs_manual_forecast_category, hs_next_step, hs_object_id, hs_lastmodifieddate, hubspot_owner_id, hubspot_team_id.++Pick more below.`,}),additionalPropertiesToRetrieve: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.DEAL,- displayName: 'Additional properties to retrieve',+ displayName: 'Additional Properties to Retrieve',required: false,}),},diff --git a/packages/pieces/community/hubspot/src/lib/triggers/new-email-event.ts b/packages/pieces/community/hubspot/src/lib/triggers/new-email-event.tsindex a9b3b52cf26..de2745cfa19 100644--- a/packages/pieces/community/hubspot/src/lib/triggers/new-email-event.ts+++ b/packages/pieces/community/hubspot/src/lib/triggers/new-email-event.ts@@ -71,7 +71,7 @@ export const newEmailEventTrigger = createTrigger({name: 'new-email-event',classification: 'READ',displayName: 'New Email Event',- description: 'Triggers when all,or specific new email event is available.',+ description: 'Triggers on new marketing email events, such as opens or clicks.',aiMetadata: {description:'Fires when a new marketing-email event occurs in HubSpot, optionally filtered to a single event type (sent, delivered, open, click, bounce, dropped, deferred, processed, status change, or spam report). Each event represents one email engagement record with its recipient and timestamp. Polls the email events API by timestamp.',@@ -80,6 +80,7 @@ export const newEmailEventTrigger = createTrigger({props: {eventType: Property.StaticDropdown({displayName: 'Event Type',+ description: 'Leave empty to trigger on every event type.',required: false,options: {disabled: false,diff --git a/packages/pieces/community/hubspot/src/lib/triggers/new-engagement.ts b/packages/pieces/community/hubspot/src/lib/triggers/new-engagement.tsindex f30ec285eb0..06ab4604c7b 100644--- a/packages/pieces/community/hubspot/src/lib/triggers/new-engagement.ts+++ b/packages/pieces/community/hubspot/src/lib/triggers/new-engagement.ts@@ -74,7 +74,8 @@ export const newEngagementTrigger = createTrigger({type: TriggerStrategy.POLLING,props: {eventType: Property.StaticDropdown({- displayName: 'Type',+ displayName: 'Engagement Type',+ description: 'Leave empty to trigger on every engagement type.',required: false,options: {disabled: false,diff --git a/packages/pieces/community/hubspot/src/lib/triggers/new-form-submission.ts b/packages/pieces/community/hubspot/src/lib/triggers/new-form-submission.tsindex 67575baee0a..634bc5fc840 100644--- a/packages/pieces/community/hubspot/src/lib/triggers/new-form-submission.ts+++ b/packages/pieces/community/hubspot/src/lib/triggers/new-form-submission.ts@@ -137,7 +137,7 @@ export const newFormSubmissionTrigger = createTrigger({formId: formDropdown,allowMultipleFiles: Property.Checkbox({displayName: 'Allow Multiple Files',- description: 'Return all file fields as array',+ description: 'Returns every uploaded file as a list; off keeps only the last one.',required: true,defaultValue: false,}),diff --git a/packages/pieces/community/hubspot/src/lib/triggers/new-line-item.ts b/packages/pieces/community/hubspot/src/lib/triggers/new-line-item.tsindex 6ea35eccbc9..40ba466cbd5 100644--- a/packages/pieces/community/hubspot/src/lib/triggers/new-line-item.ts+++ b/packages/pieces/community/hubspot/src/lib/triggers/new-line-item.ts@@ -80,7 +80,7 @@ export const newLineItemTrigger = createTrigger({name: 'new-line-item',classification: 'READ',displayName: 'New Line Item',- description: 'Triggers when new line item is available.',+ description: 'Triggers when a new line item is created.',aiMetadata: {description:'Fires when a new line item is created in HubSpot. Each event represents one line item with properties such as name, price, quantity, amount, discount, tax, SKU, and linked product. Polls for line items by creation date; does not fire on updates to existing line items.',@@ -88,15 +88,13 @@ export const newLineItemTrigger = createTrigger({props: {markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- name, description, price, quantity, amount, discount, tax, createdate, hs_object_id, hs_product_id, hs_images, hs_lastmodifieddate, hs_line_item_currency_code, hs_sku, hs_url, hs_cost_of_goods_sold, hs_discount_percentage, hs_term_in_months-- **Specify here a list of additional properties to retrieve**`,+ value: `Returned by default: name, description, price, quantity, amount, discount, tax, createdate, hs_object_id, hs_product_id, hs_images, hs_lastmodifieddate, hs_line_item_currency_code, hs_sku, hs_url, hs_cost_of_goods_sold, hs_discount_percentage, hs_term_in_months.++Pick more below.`,}),additionalPropertiesToRetrieve: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.LINE_ITEM,- displayName: 'Additional properties to retrieve',+ displayName: 'Additional Properties to Retrieve',required: false,}),},diff --git a/packages/pieces/community/hubspot/src/lib/triggers/new-or-updated-company.ts b/packages/pieces/community/hubspot/src/lib/triggers/new-or-updated-company.tsindex cef30642983..99fcfc7485c 100644--- a/packages/pieces/community/hubspot/src/lib/triggers/new-or-updated-company.ts+++ b/packages/pieces/community/hubspot/src/lib/triggers/new-or-updated-company.ts@@ -75,8 +75,8 @@ export const newOrUpdatedCompanyTrigger = createTrigger({auth: hubspotAuth,name: 'new-or-updated-company',classification: 'READ',- displayName: 'Company Recently Created or Updated',- description: 'Triggers when a company recently created or updated.',+ displayName: 'New or Updated Company',+ description: 'Triggers when a company is created or updated.',aiMetadata: {description:'Fires when a company is created or modified in HubSpot. Each event represents one company record with properties such as name, domain, industry, address, employee count, revenue, and lifecycle stage. Polls by last-modified date, so both new and edited companies trigger it.',@@ -84,15 +84,13 @@ export const newOrUpdatedCompanyTrigger = createTrigger({props: {markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- name, domain, industry, about_us, phone, address, address2, city, state, zip, country, website, type, description, founded_year, hs_createdate, hs_lastmodifieddate, hs_object_id, is_public, timezone, total_money_raised, total_revenue, owneremail, ownername, numberofemployees, annualrevenue, lifecyclestage, createdate, web_technologies-- **Specify here a list of additional properties to retrieve**`,+ value: `Returned by default: name, domain, industry, about_us, phone, address, address2, city, state, zip, country, website, type, description, founded_year, hs_createdate, hs_lastmodifieddate, hs_object_id, is_public, timezone, total_money_raised, total_revenue, owneremail, ownername, numberofemployees, annualrevenue, lifecyclestage, createdate, web_technologies.++Pick more below.`,}),additionalPropertiesToRetrieve: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.COMPANY,- displayName: 'Additional properties to retrieve',+ displayName: 'Additional Properties to Retrieve',required: false,}),},diff --git a/packages/pieces/community/hubspot/src/lib/triggers/new-or-updated-contact.ts b/packages/pieces/community/hubspot/src/lib/triggers/new-or-updated-contact.tsindex a271b029116..73f65b5ea56 100644--- a/packages/pieces/community/hubspot/src/lib/triggers/new-or-updated-contact.ts+++ b/packages/pieces/community/hubspot/src/lib/triggers/new-or-updated-contact.ts@@ -75,8 +75,8 @@ export const newOrUpdatedContactTrigger = createTrigger({auth: hubspotAuth,name: 'new-or-updated-contact',classification: 'READ',- displayName: 'Contact Recently Created or Updated',- description: 'Triggers when a contact recently created or updated.',+ displayName: 'New or Updated Contact',+ description: 'Triggers when a contact is created or updated.',aiMetadata: {description:'Fires when a contact is created or modified in HubSpot. Each event represents one contact record with properties such as name, email, company, phone, lifecycle stage, and address. Polls by last-modified date, so both new and edited contacts trigger it.',@@ -84,15 +84,13 @@ export const newOrUpdatedContactTrigger = createTrigger({props: {markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- firstname, lastname, email, company, website, mobilephone, phone, fax, address, city, state, zip, salutation, country, jobtitle, hs_createdate, hs_email_domain, hs_object_id, lastmodifieddate, hs_persona, hs_language, lifecyclestage, createdate, numemployees, annualrevenue, industry-- **Specify here a list of additional properties to retrieve**`,+ value: `Returned by default: firstname, lastname, email, company, website, mobilephone, phone, fax, address, city, state, zip, salutation, country, jobtitle, hs_createdate, hs_email_domain, hs_object_id, lastmodifieddate, hs_persona, hs_language, lifecyclestage, createdate, numemployees, annualrevenue, industry.++Pick more below.`,}),additionalPropertiesToRetrieve: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.CONTACT,- displayName: 'Additional properties to retrieve',+ displayName: 'Additional Properties to Retrieve',required: false,}),},diff --git a/packages/pieces/community/hubspot/src/lib/triggers/new-or-updated-line-item.ts b/packages/pieces/community/hubspot/src/lib/triggers/new-or-updated-line-item.tsindex 2e81eb49d63..49cde52682c 100644--- a/packages/pieces/community/hubspot/src/lib/triggers/new-or-updated-line-item.ts+++ b/packages/pieces/community/hubspot/src/lib/triggers/new-or-updated-line-item.ts@@ -75,8 +75,8 @@ export const newOrUpdatedLineItemTrigger = createTrigger({auth: hubspotAuth,name: 'new-or-updated-line-item',classification: 'READ',- displayName: 'Line Item Recently Created or Updated',- description: 'Triggers when a line item recently created or updated.',+ displayName: 'New or Updated Line Item',+ description: 'Triggers when a line item is created or updated.',aiMetadata: {description:'Fires when a line item is created or modified in HubSpot. Each event represents one line item with properties such as name, price, quantity, amount, discount, tax, SKU, and linked product. Polls by last-modified date, so both new and edited line items trigger it.',@@ -84,15 +84,13 @@ export const newOrUpdatedLineItemTrigger = createTrigger({props: {markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- name, description, price, quantity, amount, discount, tax, createdate, hs_object_id, hs_product_id, hs_images, hs_lastmodifieddate, hs_line_item_currency_code, hs_sku, hs_url, hs_cost_of_goods_sold, hs_discount_percentage, hs_term_in_months-- **Specify here a list of additional properties to retrieve**`,+ value: `Returned by default: name, description, price, quantity, amount, discount, tax, createdate, hs_object_id, hs_product_id, hs_images, hs_lastmodifieddate, hs_line_item_currency_code, hs_sku, hs_url, hs_cost_of_goods_sold, hs_discount_percentage, hs_term_in_months.++Pick more below.`,}),additionalPropertiesToRetrieve: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.LINE_ITEM,- displayName: 'Additional properties to retrieve',+ displayName: 'Additional Properties to Retrieve',required: false,}),},diff --git a/packages/pieces/community/hubspot/src/lib/triggers/new-or-updated-product.ts b/packages/pieces/community/hubspot/src/lib/triggers/new-or-updated-product.tsindex 448080825e3..cc6fa5eb276 100644--- a/packages/pieces/community/hubspot/src/lib/triggers/new-or-updated-product.ts+++ b/packages/pieces/community/hubspot/src/lib/triggers/new-or-updated-product.ts@@ -75,8 +75,8 @@ export const newOrUpdatedProductTrigger = createTrigger({auth: hubspotAuth,name: 'new-or-updated-product',classification: 'READ',- displayName: 'Product Recently Created or Updated',- description: 'Triggers when a product recently created or updated.',+ displayName: 'New or Updated Product',+ description: 'Triggers when a product is created or updated.',aiMetadata: {description:'Fires when a product is created or modified in the HubSpot product library. Each event represents one product record with properties such as name, description, price, and tax. Polls by last-modified date, so both new and edited products trigger it.',@@ -84,15 +84,13 @@ export const newOrUpdatedProductTrigger = createTrigger({props: {markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- createdate, description, name, price, tax, hs_lastmodifieddate-- **Specify here a list of additional properties to retrieve**`,+ value: `Returned by default: createdate, description, name, price, tax, hs_lastmodifieddate.++Pick more below.`,}),additionalPropertiesToRetrieve: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.PRODUCT,- displayName: 'Additional properties to retrieve',+ displayName: 'Additional Properties to Retrieve',required: false,}),},diff --git a/packages/pieces/community/hubspot/src/lib/triggers/new-product.ts b/packages/pieces/community/hubspot/src/lib/triggers/new-product.tsindex 4f05f36c7d1..a89f2a75edc 100644--- a/packages/pieces/community/hubspot/src/lib/triggers/new-product.ts+++ b/packages/pieces/community/hubspot/src/lib/triggers/new-product.ts@@ -80,7 +80,7 @@ export const newProductTrigger = createTrigger({name: 'new-product',classification: 'READ',displayName: 'New Product',- description: 'Triggers when new product is available.',+ description: 'Triggers when a new product is created.',aiMetadata: {description:'Fires when a new product is created in the HubSpot product library. Each event represents one product record with properties such as name, description, price, and tax. Polls for products by creation date; does not fire on updates to existing products.',@@ -88,15 +88,13 @@ export const newProductTrigger = createTrigger({props: {markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- createdate, description, name, price, tax, hs_lastmodifieddate-- **Specify here a list of additional properties to retrieve**`,+ value: `Returned by default: createdate, description, name, price, tax, hs_lastmodifieddate.++Pick more below.`,}),additionalPropertiesToRetrieve: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.PRODUCT,- displayName: 'Additional properties to retrieve',+ displayName: 'Additional Properties to Retrieve',required: false,}),},diff --git a/packages/pieces/community/hubspot/src/lib/triggers/new-task.ts b/packages/pieces/community/hubspot/src/lib/triggers/new-task.tsindex b885f35dcdd..5dce23f97d0 100644--- a/packages/pieces/community/hubspot/src/lib/triggers/new-task.ts+++ b/packages/pieces/community/hubspot/src/lib/triggers/new-task.ts@@ -77,7 +77,7 @@ export const newTaskTrigger = createTrigger({name: 'new-task',classification: 'READ',displayName: 'New Task',- description: 'Trigger when a new task is added.',+ description: 'Triggers when a new task is created.',aiMetadata: {description:'Fires when a new task is created in the HubSpot CRM. Each event represents one task record (call, to-do, or email follow-up) with its properties such as subject, type, priority, owner, due timestamp, and associated contacts/companies/deals. Polls for tasks by creation date.',@@ -85,15 +85,13 @@ export const newTaskTrigger = createTrigger({props: {markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- hs_task_subject, hs_task_type, hs_task_priority, hubspot_owner_id, hs_timestamp, hs_queue_membership_ids, hs_lastmodifieddate,hs_createdate+ value: `Returned by default: hs_task_body, hubspot_owner_id, hs_task_subject, hs_task_status, hs_task_priority, hs_task_type, hs_created_by, hs_repeat_status, hs_task_completion_date, hs_task_is_completed, hs_timestamp, hs_queue_membership_ids, hs_lastmodifieddate, hs_createdate.- **Specify here a list of additional properties to retrieve**`,+Pick more below.`,}),additionalPropertiesToRetrieve: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.TASK,- displayName: 'Additional properties to retrieve',+ displayName: 'Additional Properties to Retrieve',required: false,}),},diff --git a/packages/pieces/community/hubspot/src/lib/triggers/new-ticket-property-change.ts b/packages/pieces/community/hubspot/src/lib/triggers/new-ticket-property-change.tsindex 7980a26a3ca..6edc5358e95 100644--- a/packages/pieces/community/hubspot/src/lib/triggers/new-ticket-property-change.ts+++ b/packages/pieces/community/hubspot/src/lib/triggers/new-ticket-property-change.ts@@ -137,7 +137,7 @@ export const newTicketPropertyChangeTrigger = createTrigger({propertyName: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.TICKET,- displayName: 'Property Name',+ displayName: 'Property',required: true,},true,diff --git a/packages/pieces/community/hubspot/src/lib/triggers/new-ticket.ts b/packages/pieces/community/hubspot/src/lib/triggers/new-ticket.tsindex be44f5f315a..f9d9a65986c 100644--- a/packages/pieces/community/hubspot/src/lib/triggers/new-ticket.ts+++ b/packages/pieces/community/hubspot/src/lib/triggers/new-ticket.ts@@ -77,7 +77,7 @@ export const newTicketTrigger = createTrigger({name: 'new-ticket',classification: 'READ',displayName: 'New Ticket',- description: 'Trigger when new ticket is available.',+ description: 'Triggers when a new ticket is created.',aiMetadata: {description:'Fires when a new support ticket is created in HubSpot. Polls the CRM tickets API for tickets sorted by creation date and emits each newly created ticket, including default ticket properties (subject, content, source type, pipeline, pipeline stage, priority, owner, etc.) plus any additional properties configured. Represents a freshly opened customer service case or request.',@@ -85,15 +85,13 @@ export const newTicketTrigger = createTrigger({props: {markdown: Property.MarkDown({variant: MarkdownVariant.INFO,- value: `### Properties to retrieve:-- subject, content, source_type, createdate, hs_pipeline, hs_pipeline_stage, hs_resolution, hs_ticket_category, hs_ticket_id, hs_ticket_priority, hs_lastmodifieddate, hubspot_owner_id, hubspot_team_id+ value: `Returned by default: subject, content, source_type, createdate, hs_pipeline, hs_pipeline_stage, hs_resolution, hs_ticket_category, hs_ticket_id, hs_ticket_priority, hs_lastmodifieddate, hubspot_owner_id, hubspot_team_id.- **Specify here a list of additional properties to retrieve**`,+Pick more below.`,}),additionalPropertiesToRetrieve: standardObjectPropertiesDropdown({objectType: OBJECT_TYPE.TICKET,- displayName: 'Additional properties to retrieve',+ displayName: 'Additional Properties to Retrieve',required: false,}),},diff --git a/packages/pieces/community/hubspot/test/blog-url-dropdown.test.ts b/packages/pieces/community/hubspot/test/blog-url-dropdown.test.tsnew file mode 100644index 00000000000..b57c3e47b33--- /dev/null+++ b/packages/pieces/community/hubspot/test/blog-url-dropdown.test.ts@@ -0,0 +1,75 @@+import { HttpRequest, HttpResponse, httpClient } from '@activepieces/pieces-common';+import {+ AppConnectionType,+ AppConnectionValueForAuthProperty,+ PropertyContext,+} from '@activepieces/pieces-framework';+import { afterEach, describe, expect, it, vi } from 'vitest';+import { hubspotAuth } from '../src/lib/auth';+import { blogUrlDropdown } from '../src/lib/common/props';++const PAGE_SIZE = 100;++const CUSTOM_AUTH: AppConnectionValueForAuthProperty<typeof hubspotAuth> = {+ type: AppConnectionType.CUSTOM_AUTH,+ props: { access_token: 'test-token' },+};++const PROPERTY_CONTEXT: PropertyContext = {+ server: { apiUrl: 'http://localhost/api/', publicUrl: 'http://localhost/', token: 'test-token' },+ project: { id: 'test-project', externalId: async () => undefined },+ flows: {+ list: async () => ({ data: [], next: null, previous: null }),+ current: { id: 'test-flow', version: { id: 'test-flow-version' } },+ },+ connections: { get: async () => null },+};++describe('blogUrlDropdown', () => {+ afterEach(() => {+ vi.restoreAllMocks();+ });++ it('requests every page until the total is reached', async () => {+ const requestedOffsets = serveBlogs({ total: 150, available: 150 });++ const state = await blogUrlDropdown.options({ auth: CUSTOM_AUTH }, PROPERTY_CONTEXT);++ expect(requestedOffsets).toEqual(['0', '100']);+ expect(state.options).toHaveLength(150);+ expect(state.options[149]).toEqual({ label: 'https://blog.example.com/149', value: '149' });+ });++ it('stops when a page comes back empty even if the total says more', async () => {+ const requestedOffsets = serveBlogs({ total: 300, available: 100 });++ const state = await blogUrlDropdown.options({ auth: CUSTOM_AUTH }, PROPERTY_CONTEXT);++ expect(requestedOffsets).toEqual(['0', '100']);+ expect(state.options).toHaveLength(100);+ });+});++function serveBlogs({ total, available }: { total: number; available: number }): string[] {+ const requestedOffsets: string[] = [];+ vi.spyOn(httpClient, 'sendRequest').mockImplementation(+ async (request: HttpRequest): Promise<HttpResponse> => {+ const offset = Number(request.queryParams?.['offset'] ?? '0');+ requestedOffsets.push(String(offset));+ const count = Math.max(0, Math.min(PAGE_SIZE, available - offset));+ return {+ status: 200,+ headers: {},+ body: { objects: buildBlogs({ start: offset, count }), offset, total, limit: PAGE_SIZE },+ };+ },+ );+ return requestedOffsets;+}++function buildBlogs({ start, count }: { start: number; count: number }) {+ return Array.from({ length: count }, (_, index) => ({+ absolute_url: `https://blog.example.com/${start + index}`,+ id: start + index,+ }));+}diff --git a/packages/pieces/community/hubspot/vitest.config.ts b/packages/pieces/community/hubspot/vitest.config.tsnew file mode 100644index 00000000000..ba8ade4a178--- /dev/null+++ b/packages/pieces/community/hubspot/vitest.config.ts@@ -0,0 +1,17 @@+import path from 'path'+import { defineConfig } from 'vitest/config'++const repoRoot = path.resolve(__dirname, '../../../..')++export default defineConfig({+ test: {+ globals: true,+ environment: 'node',+ },+ resolve: {+ alias: {+ '@activepieces/pieces-framework': path.resolve(repoRoot, 'packages/pieces/framework/src/index.ts'),+ '@activepieces/pieces-common': path.resolve(repoRoot, 'packages/pieces/common/src/index.ts'),+ },+ },+})