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

43 lines
747 B
TypeScript
Raw Normal View History

import {
ICredentialType,
NodePropertyTypes,
} from 'n8n-workflow';
export class Sftp implements ICredentialType {
name = 'sftp';
displayName = 'SFTP';
documentationUrl = 'ftp';
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: '',
},
];
}