/** * Pipedrive Node - Version 1 * Discriminator: resource=lead, operation=create */ interface Credentials { pipedriveApi: CredentialReference; pipedriveOAuth2Api: CredentialReference; } /** Create an activity */ export type PipedriveV1LeadCreateParams = { resource: 'lead'; operation: 'create'; authentication?: 'apiToken' | 'oAuth2' | Expression; /** * Name of the lead to create */ title?: string | Expression | PlaceholderValue; /** * Type of entity to link to this lead * @default organization */ associateWith?: 'organization' | 'person' | Expression; /** * ID of the organization to link to this lead * @displayOptions.show { associateWith: ["organization"] } * @default 0 */ organization_id?: number | Expression; /** * ID of the person to link to this lead * @displayOptions.show { associateWith: ["person"] } * @default 0 */ person_id?: number | Expression; /** * Additional Fields * @default {} */ additionalFields?: { /** Date when the lead’s deal is expected to be closed, in ISO-8601 format */ expected_close_date?: string | Expression; /** ID of the labels to attach to the lead to create. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. * @default [] */ label_ids?: string[]; /** ID of the organization to link to this lead * @displayOptions.show { /associateWith: ["person"] } * @default 0 */ organization_id?: number | Expression; /** ID of the user who will own the lead to create. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ owner_id?: string | Expression; /** ID of the person to link to this lead * @displayOptions.show { /associateWith: ["organization"] } * @default 0 */ person_id?: number | Expression; /** Potential monetary value associated with the lead * @default {} */ value?: { /** Value Properties */ valueProperties?: { /** Amount */ amount?: number | Expression; /** Currency * @default USD */ currency?: 'AFN' | 'DZD' | 'ARS' | 'AUD' | 'AZN' | 'BSD' | 'THB' | 'BBD' | 'BZD' | 'BMD' | 'BOB' | 'BRL' | 'BND' | 'BGN' | 'CAD' | 'CLP' | 'COP' | 'NIO' | 'CRC' | 'CZK' | 'DKK' | 'DOP' | 'VND' | 'XCD' | 'EGP' | 'EUR' | 'FJD' | 'HUF' | 'HKD' | 'UAH' | 'INR' | 'JMD' | 'KES' | 'PGK' | 'HRK' | 'MMK' | 'LAK' | 'LBP' | 'ALL' | 'HNL' | 'LRD' | 'MYR' | 'MUR' | 'MXN' | 'MAD' | 'NPR' | 'ILS' | 'TWD' | 'NZD' | 'NOK' | 'MRO' | 'TOP' | 'PKR' | 'MOP' | 'PHP' | 'GBP' | 'BWP' | 'QAR' | 'GTQ' | 'ZAR' | 'RON' | 'MVR' | 'IDR' | 'RUB' | 'SAR' | 'SCR' | 'SGD' | 'PEN' | 'SBD' | 'LKR' | 'SEK' | 'CHF' | 'SYP' | 'BDT' | 'WST' | 'KZT' | 'TTD' | 'TRY' | 'AED' | 'USD' | 'VUV' | 'XOF' | 'KRW' | 'YER' | 'JPY' | 'CNY' | 'PLN' | Expression; }; }; }; }; export type PipedriveV1LeadCreateOutput = { add_time?: string; cc_email?: string; channel?: null; channel_id?: null; creator_id?: number; id?: string; is_archived?: boolean; label_ids?: Array; next_activity_id?: null; origin?: string; origin_id?: null; owner_id?: number; source_name?: string; title?: string; update_time?: string; visible_to?: string; was_seen?: boolean; }; export type PipedriveV1LeadCreateNode = { type: 'n8n-nodes-base.pipedrive'; version: 1; credentials?: Credentials; config: NodeConfig; output?: Items; };