/** * HubSpot Node - Version 2.1 * Discriminator: resource=deal, operation=create */ interface Credentials { hubspotApi: CredentialReference; hubspotAppToken: CredentialReference; hubspotOAuth2Api: CredentialReference; } /** Create a company */ export type HubspotV21DealCreateParams = { resource: 'deal'; operation: 'create'; authentication?: 'apiKey' | 'appToken' | 'oAuth2' | Expression; /** * The deal stage 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; /** * Deal Properties * @default {} */ additionalFields?: { /** Amount */ amount?: string | Expression | PlaceholderValue; /** Whether to include specific Associated Company properties in the returned results. Choose from a list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. * @default [] */ associatedCompany?: string[]; /** Whether to include specific Associated Vid in the returned results. Choose from a list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. * @default [] */ associatedVids?: string[]; /** When using expressions, the time should be specified in YYYY-MM-DD hh-mm-ss format */ 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 HubSpot user to be assigned to the deal * @default {"mode":"list","value":""} */ dealOwner?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string }; /** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> */ dealType?: string | Expression; /** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> */ pipeline?: string | Expression; }; }; export type HubspotV21DealCreateNode = { type: 'n8n-nodes-base.hubspot'; version: 2.1; credentials?: Credentials; config: NodeConfig; };