/** * HubSpot Node - Version 1 * Discriminator: resource=deal, operation=update */ interface Credentials { hubspotApi: CredentialReference; hubspotAppToken: CredentialReference; hubspotOAuth2Api: CredentialReference; } /** Update a company */ export type HubspotV1DealUpdateParams = { resource: 'deal'; operation: 'update'; authentication?: 'apiKey' | 'appToken' | 'oAuth2' | Expression; /** * Unique identifier for a particular deal */ dealId?: string | Expression | PlaceholderValue; /** * Update Fields * @default {} */ updateFields?: { /** Amount */ amount?: string | Expression | PlaceholderValue; /** Close Date */ closeDate?: string | Expression; /** Custom Properties * @default {} */ customPropertiesUi?: { /** Custom Property */ customPropertiesValues?: Array<{ /** Name of the property. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ property?: string | Expression; /** Value of the property */ value?: string | Expression | PlaceholderValue; }>; }; /** Deal Description */ description?: string | Expression | PlaceholderValue; /** Deal Name */ dealName?: string | Expression | PlaceholderValue; /** The dealstage is required when creating a deal. See the CRM Pipelines API for details on managing pipelines and stages. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ stage?: string | Expression; /** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> */ dealType?: string | Expression; /** Pipeline */ pipeline?: string | Expression | PlaceholderValue; }; }; export type HubspotV1DealUpdateNode = { type: 'n8n-nodes-base.hubspot'; version: 1; credentials?: Credentials; config: NodeConfig; };