Simplify property types in credentials (#1869)

This commit is contained in:
Iván Ovejero
2021-06-12 18:39:55 +02:00
committed by GitHub
parent d095588ac7
commit 5481dc3d25
248 changed files with 1211 additions and 1210 deletions

View File

@@ -1,38 +1,38 @@
import {
ICredentialType,
IDisplayOptions,
NodePropertyTypes,
INodeProperties,
} from 'n8n-workflow';
export class RabbitMQ implements ICredentialType {
name = 'rabbitmq';
displayName = 'RabbitMQ';
documentationUrl = 'rabbitmq';
properties = [
properties: INodeProperties[] = [
{
displayName: 'Hostname',
name: 'hostname',
type: 'string' as NodePropertyTypes,
type: 'string',
default: '',
placeholder: 'localhost',
},
{
displayName: 'Port',
name: 'port',
type: 'number' as NodePropertyTypes,
type: 'number',
default: 5672,
},
{
displayName: 'User',
name: 'username',
type: 'string' as NodePropertyTypes,
type: 'string',
default: '',
placeholder: 'guest',
},
{
displayName: 'Password',
name: 'password',
type: 'string' as NodePropertyTypes,
type: 'string',
typeOptions: {
password: true,
},
@@ -42,19 +42,19 @@ export class RabbitMQ implements ICredentialType {
{
displayName: 'Vhost',
name: 'vhost',
type: 'string' as NodePropertyTypes,
type: 'string',
default: '/',
},
{
displayName: 'SSL',
name: 'ssl',
type: 'boolean' as NodePropertyTypes,
type: 'boolean',
default: false,
},
{
displayName: 'Passwordless',
name: 'passwordless',
type: 'boolean' as NodePropertyTypes,
type: 'boolean',
displayOptions: {
show: {
ssl: [
@@ -68,7 +68,7 @@ export class RabbitMQ implements ICredentialType {
{
displayName: 'CA Certificates',
name: 'ca',
type: 'string' as NodePropertyTypes,
type: 'string',
typeOptions: {
password: true,
},
@@ -85,7 +85,7 @@ export class RabbitMQ implements ICredentialType {
{
displayName: 'Client Certificate',
name: 'cert',
type: 'string' as NodePropertyTypes,
type: 'string',
typeOptions: {
password: true,
},
@@ -105,7 +105,7 @@ export class RabbitMQ implements ICredentialType {
{
displayName: 'Client Key',
name: 'key',
type: 'string' as NodePropertyTypes,
type: 'string',
typeOptions: {
password: true,
},
@@ -125,7 +125,7 @@ export class RabbitMQ implements ICredentialType {
{
displayName: 'Passphrase',
name: 'passphrase',
type: 'string' as NodePropertyTypes,
type: 'string',
typeOptions: {
password: true,
},
@@ -145,28 +145,28 @@ export class RabbitMQ implements ICredentialType {
// {
// displayName: 'Client ID',
// name: 'clientId',
// type: 'string' as NodePropertyTypes,
// type: 'string',
// default: '',
// placeholder: 'my-app',
// },
// {
// displayName: 'Brokers',
// name: 'brokers',
// type: 'string' as NodePropertyTypes,
// type: 'string',
// default: '',
// placeholder: 'kafka1:9092,kafka2:9092',
// },
// {
// displayName: 'Username',
// name: 'username',
// type: 'string' as NodePropertyTypes,
// type: 'string',
// default: '',
// description: 'Optional username if authenticated is required.',
// },
// {
// displayName: 'Password',
// name: 'password',
// type: 'string' as NodePropertyTypes,
// type: 'string',
// typeOptions: {
// password: true,
// },