Add Apache Kafka node (#1109)

*  Add Apache Kafka node

*  Improvements

Co-authored-by: Tanay Pant <tanaypant@protonmail.com>
This commit is contained in:
Ricardo Espinoza
2020-10-29 10:42:54 -04:00
committed by GitHub
parent 0f0dfa2191
commit 12bb00fcd6
5 changed files with 351 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
import {
ICredentialType,
NodePropertyTypes,
} from 'n8n-workflow';
export class KafkaPlain implements ICredentialType {
extends = [
'kafka',
];
name = 'kafkaPlain';
displayName = 'Kafka';
properties = [
{
displayName: 'Username',
name: 'username',
type: 'string' as NodePropertyTypes,
default: '',
},
{
displayName: 'Password',
name: 'password',
type: 'string' as NodePropertyTypes,
typeOptions: {
password: true,
},
default: '',
},
];
}