/** * HubSpot Node - Version 1 * Discriminator: resource=deal, operation=create */ interface Credentials { hubspotApi: CredentialReference; hubspotAppToken: CredentialReference; hubspotOAuth2Api: CredentialReference; } /** Create a company */ export type HubspotV1DealCreateParams = { resource: 'deal'; operation: 'create'; authentication?: 'apiKey' | 'appToken' | 'oAuth2' | Expression; /** * 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; /** * Additional Fields * @default {} */ additionalFields?: { /** Amount */ amount?: string | Expression | PlaceholderValue; /** Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a> * @default [] */ associatedCompany?: string[]; /** Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a> * @default [] */ associatedVids?: string[]; /** 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; /** 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 HubspotV1DealCreateNode = { type: 'n8n-nodes-base.hubspot'; version: 1; credentials?: Credentials; config: NodeConfig; };