mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
* 👕 Enable `consistent-type-imports` for nodes-base * 👕 Apply to nodes-base * ⏪ Undo unrelated changes * 🚚 Move to `.eslintrc.js` in nodes-base * ⏪ Revert "Enable `consistent-type-imports` for nodes-base" This reverts commit 529ad72b051478fa1633aaf84b2864f2fdc7613c. * 👕 Fix severity
45 lines
906 B
TypeScript
45 lines
906 B
TypeScript
import type { ICredentialType, INodeProperties, NodePropertyTypes } from 'n8n-workflow';
|
|
|
|
export class OdooApi implements ICredentialType {
|
|
name = 'odooApi';
|
|
|
|
displayName = 'Odoo API';
|
|
|
|
documentationUrl = 'odoo';
|
|
|
|
properties: INodeProperties[] = [
|
|
{
|
|
displayName: 'Site URL',
|
|
name: 'url',
|
|
type: 'string' as NodePropertyTypes,
|
|
default: '',
|
|
placeholder: 'https://my-organization.odoo.com',
|
|
required: true,
|
|
},
|
|
{
|
|
displayName: 'Username',
|
|
name: 'username',
|
|
type: 'string' as NodePropertyTypes,
|
|
default: '',
|
|
placeholder: 'user@email.com',
|
|
required: true,
|
|
},
|
|
{
|
|
displayName: 'Password or API Key',
|
|
name: 'password',
|
|
type: 'string' as NodePropertyTypes,
|
|
default: '',
|
|
typeOptions: {
|
|
password: true,
|
|
},
|
|
required: true,
|
|
},
|
|
{
|
|
displayName: 'Database Name',
|
|
name: 'db',
|
|
type: 'string' as NodePropertyTypes,
|
|
default: '',
|
|
},
|
|
];
|
|
}
|