/** * Zoho CRM Node - Version 1 * Discriminator: resource=lead, operation=upsert */ interface Credentials { zohoOAuth2Api: CredentialReference; } /** Create a new record, or update the current one if it already exists (upsert) */ export type ZohoCrmV1LeadUpsertParams = { resource: 'lead'; operation: 'upsert'; /** * Company at which the lead works */ Company?: string | Expression | PlaceholderValue; /** * Last Name */ lastName?: string | Expression | PlaceholderValue; /** * Additional Fields * @default {} */ additionalFields?: { /** Address * @default {} */ Address?: { /** Address Fields */ address_fields?: { /** Street */ Street?: string | Expression | PlaceholderValue; /** City */ City?: string | Expression | PlaceholderValue; /** State */ State?: string | Expression | PlaceholderValue; /** Country */ Country?: string | Expression | PlaceholderValue; /** Zip Code */ Zip_Code?: string | Expression | PlaceholderValue; }; }; /** Annual revenue of the lead’s company */ Annual_Revenue?: number | Expression; /** Symbol of the currency in which revenue is generated * @default USD */ Currency?: 'USD' | 'EUR' | 'AED' | 'AFN' | 'ALL' | 'ARS' | 'AUD' | 'AZN' | 'BBD' | 'BDT' | 'BGN' | 'BMD' | 'BND' | 'BOB' | 'BRL' | 'BSD' | 'BWP' | 'BZD' | 'CAD' | 'CHF' | 'CLP' | 'CNY' | 'COP' | 'CRC' | 'CZK' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'FJD' | 'GBP' | 'GTQ' | 'HKD' | 'HNL' | 'HRK' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'JMD' | 'JPY' | 'KES' | 'KRW' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'MAD' | 'MMK' | 'MOP' | 'MRO' | 'MUR' | 'MVR' | 'MXN' | 'MYR' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'QAR' | 'RON' | 'RUB' | 'SAR' | 'SBD' | 'SCR' | 'SEK' | 'SGD' | 'SYP' | 'THB' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'UAH' | 'VND' | 'VUV' | 'WST' | 'XCD' | 'XOF' | 'YER' | 'ZAR' | Expression; /** Filter by custom fields * @default {} */ customFields?: { /** Custom Field */ customFields?: Array<{ /** Custom field to set a value to */ fieldId?: string | Expression; /** Value to set on custom field */ value?: string | Expression | PlaceholderValue; }>; }; /** Description */ Description?: string | Expression | PlaceholderValue; /** Position of the lead at their company */ Designation?: string | Expression | PlaceholderValue; /** Email of the lead. If a record with this email exists it will be updated, otherwise a new one will be created. */ Email?: string | Expression | PlaceholderValue; /** Email Opt Out * @default false */ Email_Opt_Out?: boolean | Expression; /** Fax */ Fax?: string | Expression | PlaceholderValue; /** First Name */ First_Name?: string | Expression | PlaceholderValue; /** Full Name */ Full_Name?: string | Expression | PlaceholderValue; /** Industry to which the lead belongs */ Industry?: string | Expression | PlaceholderValue; /** Type of industry to which the lead belongs */ Industry_Type?: string | Expression | PlaceholderValue; /** Source from which the lead was created */ Lead_Source?: string | Expression | PlaceholderValue; /** Lead Status */ Lead_Status?: string | Expression | PlaceholderValue; /** Mobile */ Mobile?: string | Expression | PlaceholderValue; /** Number of employees in the lead’s company */ No_of_Employees?: number | Expression; /** Phone */ Phone?: string | Expression | PlaceholderValue; /** Salutation */ Salutation?: string | Expression | PlaceholderValue; /** Secondary Email */ Secondary_Email?: string | Expression | PlaceholderValue; /** Skype ID */ Skype_ID?: string | Expression | PlaceholderValue; /** Twitter */ Twitter?: string | Expression | PlaceholderValue; /** Website */ Website?: string | Expression | PlaceholderValue; }; }; export type ZohoCrmV1LeadUpsertNode = { type: 'n8n-nodes-base.zohoCrm'; version: 1; credentials?: Credentials; config: NodeConfig; };