n8n/packages/nodes-base/credentials/Ftp.credentials.ts

40 lines
684 B
TypeScript
Raw Normal View History

import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class Ftp implements ICredentialType {
name = 'ftp';
displayName = 'FTP';
documentationUrl = 'ftp';
properties: INodeProperties[] = [
{
displayName: 'Host',
name: 'host',
required: true,
type: 'string',
default: '',
2020-10-22 06:46:03 -07:00
placeholder: 'localhost',
},
{
displayName: 'Port',
name: 'port',
required: true,
type: 'number',
default: 21,
},
{
displayName: 'Username',
name: 'username',
type: 'string',
default: '',
},
{
displayName: 'Password',
name: 'password',
type: 'string',
typeOptions: {
password: true,
},
default: '',
},
];
}