n8n/packages/nodes-base/credentials/ERPNextApi.credentials.ts
Iván Ovejero 3b00c96643
Add ERPNext node (#1604)
* 🚧 Integrated with access token

OAuth2 still needs work

* 🚧 Removed OAuth2 for now

*  Improvements

*  Improvements

*  Refactor ERPNext node

* 🔥 Remove PNG icon

* 🔥 Remove leftover comments

* 🔨 Catch unavailable resource error

*  Reposition docType for filters

*  Improvements

*  Cleanup

Co-authored-by: Rupenieks <ronaldsupenieks96@gmail.com>
Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
2021-04-03 11:07:21 +02:00

33 lines
716 B
TypeScript

import {
ICredentialType,
NodePropertyTypes,
} from 'n8n-workflow';
export class ERPNextApi implements ICredentialType {
name = 'erpNextApi';
displayName = 'ERPNext API';
documentationUrl = 'erpnext';
properties = [
{
displayName: 'API Key',
name: 'apiKey',
type: 'string' as NodePropertyTypes,
default: '',
},
{
displayName: 'API Secret',
name: 'apiSecret',
type: 'string' as NodePropertyTypes,
default: '',
},
{
displayName: 'Subdomain',
name: 'subdomain',
type: 'string' as NodePropertyTypes,
default: '',
placeholder: 'n8n',
description: 'ERPNext subdomain. For instance, entering n8n will make the url look like: https://n8n.erpnext.com/.',
},
];
}