/** * Odoo Node - Version 1 * Discriminator: resource=contact, operation=create */ interface Credentials { odooApi: CredentialReference; } /** Create a new item */ export type OdooV1ContactCreateParams = { resource: 'contact'; operation: 'create'; /** * Name */ contactName?: string | Expression | PlaceholderValue; /** * Additional Fields * @default {} */ additionalFields?: { /** Address * @default {} */ address?: { /** Address */ value?: { /** City */ city?: string | Expression | PlaceholderValue; /** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> */ country_id?: string | Expression; /** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> */ state_id?: string | Expression; /** Street */ street?: string | Expression | PlaceholderValue; /** Street 2 */ street2?: string | Expression | PlaceholderValue; /** Zip Code */ zip?: string | Expression | PlaceholderValue; }; }; /** Email */ email?: string | Expression | PlaceholderValue; /** Internal Notes */ comment?: string | Expression | PlaceholderValue; /** Job Position */ 'function'?: string | Expression | PlaceholderValue; /** Mobile */ mobile?: string | Expression | PlaceholderValue; /** Phone */ phone?: string | Expression | PlaceholderValue; /** Tax ID */ vat?: string | Expression | PlaceholderValue; /** Website */ website?: string | Expression | PlaceholderValue; }; }; export type OdooV1ContactCreateOutput = { id?: number; }; export type OdooV1ContactCreateNode = { type: 'n8n-nodes-base.odoo'; version: 1; credentials?: Credentials; config: NodeConfig; output?: Items; };