/** * Odoo Node - Version 1 * Discriminator: resource=opportunity, operation=create */ interface Credentials { odooApi: CredentialReference; } /** Create a new item */ export type OdooV1OpportunityCreateParams = { resource: 'opportunity'; operation: 'create'; /** * Name */ opportunityName?: string | Expression | PlaceholderValue; /** * Additional Fields * @default {} */ additionalFields?: { /** Email */ email_from?: string | Expression | PlaceholderValue; /** Expected Revenue * @default 0 */ expected_revenue?: number | Expression; /** Internal Notes */ description?: string | Expression | PlaceholderValue; /** Phone */ phone?: string | Expression | PlaceholderValue; /** Priority * @default 1 */ priority?: '1' | '2' | '3' | Expression; /** Probability * @default 0 */ probability?: number | Expression; }; }; export type OdooV1OpportunityCreateOutput = { id?: number; }; export type OdooV1OpportunityCreateNode = { type: 'n8n-nodes-base.odoo'; version: 1; credentials?: Credentials; config: NodeConfig; output?: Items; };