/** * Odoo Node - Version 1 * Discriminator: resource=custom, operation=getAll */ interface Credentials { odooApi: CredentialReference; } /** Get many items */ export type OdooV1CustomGetAllParams = { resource: 'custom'; operation: 'getAll'; /** * Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> */ customResource?: string | Expression; /** * Whether to return all results or only up to a given limit * @default false */ returnAll?: boolean | Expression; /** * Max number of results to return * @displayOptions.show { returnAll: [false] } * @default 50 */ limit?: number | Expression; /** * 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[]; }; /** * Filter request by applying filters * @default {} */ filterRequest?: { /** Filter */ filter?: Array<{ /** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> */ fieldName?: string | Expression; /** Specify an operator * @default equal */ operator?: 'notEqual' | 'lesserThen' | 'lesserOrEqual' | 'equal' | 'greaterThen' | 'greaterOrEqual' | 'childOf' | 'in' | 'like' | 'notIn' | Expression; /** Specify value for comparison */ value?: string | Expression | PlaceholderValue; }>; }; }; export type OdooV1CustomGetAllOutput = { id?: number; name?: string; }; export type OdooV1CustomGetAllNode = { type: 'n8n-nodes-base.odoo'; version: 1; credentials?: Credentials; config: NodeConfig; output?: Items; };