n8n/packages/nodes-base/credentials/Sftp.credentials.ts
2020-08-17 14:42:09 +02:00

43 lines
748 B
TypeScript

import {
ICredentialType,
NodePropertyTypes,
} from 'n8n-workflow';
export class Sftp implements ICredentialType {
name = 'sftp';
displayName = 'SFTP';
documentationUrl = 'sftp';
properties = [
{
displayName: 'Host',
name: 'host',
required: true,
type: 'string' as NodePropertyTypes,
default: '',
},
{
displayName: 'Port',
name: 'port',
required: true,
type: 'number' as NodePropertyTypes,
default: 22,
},
{
displayName: 'Username',
name: 'username',
required: true,
type: 'string' as NodePropertyTypes,
default: '',
},
{
displayName: 'Password',
name: 'password',
type: 'string' as NodePropertyTypes,
typeOptions: {
password: true,
},
default: '',
},
];
}