UNPKG

n8n-nodes-base

Version:

Base nodes of n8n

83 lines (79 loc) 2.11 kB
/** * Odoo Node - Version 1 * Discriminator: resource=contact, operation=update */ interface Credentials { odooApi: CredentialReference; } /** Update an item */ export type OdooV1ContactUpdateParams = { resource: 'contact'; operation: 'update'; /** * Contact ID */ contactId?: string | Expression<string> | PlaceholderValue; /** * Update Fields * @default {} */ updateFields?: { /** Address * @default {} */ address?: { /** Address */ value?: { /** City */ city?: string | Expression<string> | PlaceholderValue; /** Choose from the list, or specify an ID using an &lt;a href="https://docs.n8n.io/code/expressions/"&gt;expression&lt;/a&gt; */ country_id?: string | Expression<string>; /** Choose from the list, or specify an ID using an &lt;a href="https://docs.n8n.io/code/expressions/"&gt;expression&lt;/a&gt; */ state_id?: string | Expression<string>; /** Street */ street?: string | Expression<string> | PlaceholderValue; /** Street 2 */ street2?: string | Expression<string> | PlaceholderValue; /** Zip Code */ zip?: string | Expression<string> | PlaceholderValue; }; }; /** Email */ email?: string | Expression<string> | PlaceholderValue; /** Internal Notes */ comment?: string | Expression<string> | PlaceholderValue; /** Job Position */ 'function'?: string | Expression<string> | PlaceholderValue; /** Mobile */ mobile?: string | Expression<string> | PlaceholderValue; /** Name */ name?: string | Expression<string> | PlaceholderValue; /** Phone */ phone?: string | Expression<string> | PlaceholderValue; /** Tax ID */ vat?: string | Expression<string> | PlaceholderValue; /** Website */ website?: string | Expression<string> | PlaceholderValue; }; }; export type OdooV1ContactUpdateNode = { type: 'n8n-nodes-base.odoo'; version: 1; credentials?: Credentials; config: NodeConfig<OdooV1ContactUpdateParams>; };