/** * Odoo Node - Version 1 * Discriminator: resource=opportunity, operation=get */ interface Credentials { odooApi: CredentialReference; } /** Get an item */ export type OdooV1OpportunityGetParams = { resource: 'opportunity'; operation: 'get'; /** * Opportunity ID */ opportunityId?: string | Expression | PlaceholderValue; /** * Options * @default {} */ options?: { /** Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a> * @default [] */ fieldsList?: string[]; }; }; export type OdooV1OpportunityGetOutput = { __last_update?: string; active?: boolean; id?: number; kanban_state?: string; lost_reason?: boolean; name?: string; order_ids?: Array; priority?: string; sale_amount_total?: number; sale_order_count?: number; type?: string; website_message_ids?: Array; won_status?: string; write_date?: string; }; export type OdooV1OpportunityGetNode = { type: 'n8n-nodes-base.odoo'; version: 1; credentials?: Credentials; config: NodeConfig; output?: Items; };