n8n-nodes-base
Version:
Base nodes of n8n
45 lines (40 loc) • 1.02 kB
text/typescript
/**
* Odoo Node - Version 1
* Discriminator: resource=custom, operation=get
*/
interface Credentials {
odooApi: CredentialReference;
}
/** Get an item */
export type OdooV1CustomGetParams = {
resource: 'custom';
operation: 'get';
/**
* Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>
*/
customResource?: string | Expression<string>;
/**
* Custom Resource ID
*/
customResourceId?: string | Expression<string> | 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 OdooV1CustomGetOutput = {
id?: number;
};
export type OdooV1CustomGetNode = {
type: 'n8n-nodes-base.odoo';
version: 1;
credentials?: Credentials;
config: NodeConfig<OdooV1CustomGetParams>;
output?: Items<OdooV1CustomGetOutput>;
};