n8n-nodes-base
Version:
Base nodes of n8n
46 lines (42 loc) • 1.13 kB
text/typescript
/**
* Odoo Node - Version 1
* Discriminator: resource=custom, operation=update
*/
interface Credentials {
odooApi: CredentialReference;
}
/** Update an item */
export type OdooV1CustomUpdateParams = {
resource: 'custom';
operation: 'update';
/**
* 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;
/**
* Update Fields
* @default {}
*/
fieldsToCreateOrUpdate?: {
/** Field Record:
*/
fields?: Array<{
/** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>
*/
fieldName?: string | Expression<string>;
/** New Value
*/
fieldValue?: string | Expression<string> | PlaceholderValue;
}>;
};
};
export type OdooV1CustomUpdateNode = {
type: 'n8n-nodes-base.odoo';
version: 1;
credentials?: Credentials;
config: NodeConfig<OdooV1CustomUpdateParams>;
};