2023-01-27 03:22:44 -08:00
|
|
|
import type { INodeProperties, INodePropertyCollection, INodePropertyOptions } from 'n8n-workflow';
|
2020-12-22 23:05:02 -08:00
|
|
|
|
2022-08-17 08:50:24 -07:00
|
|
|
export const rabbitDefaultOptions: Array<
|
|
|
|
INodePropertyOptions | INodeProperties | INodePropertyCollection
|
|
|
|
> = [
|
2020-12-22 23:05:02 -08:00
|
|
|
{
|
|
|
|
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
|
|
|
},
|
2024-02-02 07:02:09 -08:00
|
|
|
{
|
|
|
|
displayName: 'Assert Exchange',
|
|
|
|
name: 'assertExchange',
|
|
|
|
type: 'boolean',
|
|
|
|
default: true,
|
|
|
|
description: 'Whether to assert the exchange exists before sending',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Assert Queue',
|
|
|
|
name: 'assertQueue',
|
|
|
|
type: 'boolean',
|
|
|
|
default: true,
|
|
|
|
description: 'Whether to assert the queue exists before sending',
|
|
|
|
},
|
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
|
|
|
},
|
|
|
|
];
|