2020-12-22 23:05:02 -08:00
|
|
|
import {
|
|
|
|
INodeProperties,
|
|
|
|
INodePropertyCollection,
|
|
|
|
INodePropertyOptions,
|
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
|
|
|
export const rabbitDefaultOptions: Array<INodePropertyOptions | INodeProperties | INodePropertyCollection> = [
|
|
|
|
{
|
|
|
|
displayName: 'Arguments',
|
|
|
|
name: 'arguments',
|
|
|
|
placeholder: 'Add Argument',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Arguments to add',
|
2020-12-22 23:05:02 -08:00
|
|
|
type: 'fixedCollection',
|
|
|
|
typeOptions: {
|
|
|
|
multipleValues: true,
|
|
|
|
},
|
|
|
|
default: {},
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: 'argument',
|
|
|
|
displayName: 'Argument',
|
|
|
|
values: [
|
|
|
|
{
|
|
|
|
displayName: 'Key',
|
|
|
|
name: 'key',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Value',
|
|
|
|
name: 'value',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2021-04-04 01:33:22 -07:00
|
|
|
{
|
|
|
|
displayName: 'Headers',
|
|
|
|
name: 'headers',
|
|
|
|
placeholder: 'Add Header',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Headers to add',
|
2021-04-04 01:33:22 -07:00
|
|
|
type: 'fixedCollection',
|
|
|
|
typeOptions: {
|
|
|
|
multipleValues: true,
|
|
|
|
},
|
|
|
|
default: {},
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: 'header',
|
|
|
|
displayName: 'Header',
|
|
|
|
values: [
|
|
|
|
{
|
|
|
|
displayName: 'Key',
|
|
|
|
name: 'key',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Value',
|
|
|
|
name: 'value',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2020-12-22 23:05:02 -08:00
|
|
|
{
|
2022-05-30 03:16:44 -07:00
|
|
|
displayName: 'Auto Delete Queue',
|
2020-12-22 23:05:02 -08:00
|
|
|
name: 'autoDelete',
|
|
|
|
type: 'boolean',
|
|
|
|
default: false,
|
2022-06-20 07:54:01 -07:00
|
|
|
description: 'Whether the queue will be deleted when the number of consumers drops to zero',
|
2020-12-22 23:05:02 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Durable',
|
|
|
|
name: 'durable',
|
|
|
|
type: 'boolean',
|
|
|
|
default: true,
|
2022-06-20 07:54:01 -07:00
|
|
|
description: 'Whether the queue will survive broker restarts',
|
2020-12-22 23:05:02 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Exclusive',
|
|
|
|
name: 'exclusive',
|
|
|
|
type: 'boolean',
|
|
|
|
default: false,
|
2022-06-20 07:54:01 -07:00
|
|
|
description: 'Whether to scope the queue to the connection',
|
2020-12-22 23:05:02 -08:00
|
|
|
},
|
|
|
|
];
|