2022-07-24 08:36:17 -07:00
|
|
|
import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
2019-11-01 00:42:14 -07:00
|
|
|
|
|
|
|
export class Amqp implements ICredentialType {
|
|
|
|
name = 'amqp';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2019-11-01 00:42:14 -07:00
|
|
|
displayName = 'AMQP';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2020-08-17 05:42:09 -07:00
|
|
|
documentationUrl = 'amqp';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2021-06-12 09:39:55 -07:00
|
|
|
properties: INodeProperties[] = [
|
2019-11-01 05:50:33 -07:00
|
|
|
{
|
|
|
|
displayName: 'Hostname',
|
|
|
|
name: 'hostname',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2019-11-01 05:50:33 -07:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Port',
|
|
|
|
name: 'port',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'number',
|
2019-11-01 05:50:33 -07:00
|
|
|
default: 5672,
|
|
|
|
},
|
2019-11-01 00:42:14 -07:00
|
|
|
{
|
|
|
|
displayName: 'User',
|
|
|
|
name: 'username',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2019-11-01 00:42:14 -07:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Password',
|
|
|
|
name: 'password',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2019-11-01 00:42:14 -07:00
|
|
|
typeOptions: {
|
|
|
|
password: true,
|
|
|
|
},
|
|
|
|
default: '',
|
|
|
|
},
|
2020-10-28 15:29:45 -07:00
|
|
|
{
|
|
|
|
displayName: 'Transport Type',
|
|
|
|
name: 'transportType',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2020-10-28 15:29:45 -07:00
|
|
|
default: '',
|
2022-04-13 23:32:27 -07:00
|
|
|
description: 'Optional Transport Type to use',
|
2020-10-28 15:29:45 -07:00
|
|
|
},
|
2019-11-01 00:42:14 -07:00
|
|
|
];
|
|
|
|
}
|