mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
⚡ Simplify property types in credentials (#1869)
This commit is contained in:
@@ -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,
|
||||
// },
|
||||
|
||||
Reference in New Issue
Block a user