mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 14:44:05 -08:00
a66e483a74
* 🚧 Setup * 🚧 SFTP finished * ✅ FTP Finished / Tested * Tab indentation * 🐛 Fix some issues on FTP Node * ⚡ Changed dependencies * Update FileTransfer.node.ts * ⚡ Fix issues on FTP-Node * ⚡ Fixed uploading to subdirectories Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com> Co-authored-by: Jan <janober@users.noreply.github.com>
42 lines
720 B
TypeScript
42 lines
720 B
TypeScript
import {
|
|
ICredentialType,
|
|
NodePropertyTypes,
|
|
} from 'n8n-workflow';
|
|
|
|
export class Sftp implements ICredentialType {
|
|
name = 'sftp';
|
|
displayName = '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: '',
|
|
},
|
|
];
|
|
}
|