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