mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
✨ Make it possible to trigger all X minutes/hours
This commit is contained in:
@@ -77,6 +77,10 @@ export function getSpecialNodeParameters(nodeType: INodeType) {
|
||||
name: 'Every Month',
|
||||
value: 'everyMonth',
|
||||
},
|
||||
{
|
||||
name: 'Every X',
|
||||
value: 'everyX',
|
||||
},
|
||||
{
|
||||
name: 'Custom',
|
||||
value: 'custom',
|
||||
@@ -99,6 +103,7 @@ export function getSpecialNodeParameters(nodeType: INodeType) {
|
||||
'custom',
|
||||
'everyHour',
|
||||
'everyMinute',
|
||||
'everyX',
|
||||
],
|
||||
},
|
||||
},
|
||||
@@ -118,6 +123,7 @@ export function getSpecialNodeParameters(nodeType: INodeType) {
|
||||
mode: [
|
||||
'custom',
|
||||
'everyMinute',
|
||||
'everyX',
|
||||
],
|
||||
},
|
||||
},
|
||||
@@ -200,6 +206,48 @@ export function getSpecialNodeParameters(nodeType: INodeType) {
|
||||
default: '* * * * * *',
|
||||
description: 'Use custom cron expression. Values and ranges as follows:<ul><li>Seconds: 0-59</li><li>Minutes: 0 - 59</li><li>Hours: 0 - 23</li><li>Day of Month: 1 - 31</li><li>Months: 0 - 11 (Jan - Dec)</li><li>Day of Week: 0 - 6 (Sun - Sat)</li></ul>',
|
||||
},
|
||||
{
|
||||
displayName: 'Value',
|
||||
name: 'value',
|
||||
type: 'number',
|
||||
typeOptions: {
|
||||
minValue: 0,
|
||||
maxValue: 1000,
|
||||
},
|
||||
displayOptions: {
|
||||
show: {
|
||||
mode: [
|
||||
'everyX',
|
||||
],
|
||||
},
|
||||
},
|
||||
default: 2,
|
||||
description: 'All how many X minutes/hours it should trigger.',
|
||||
},
|
||||
{
|
||||
displayName: 'Unit',
|
||||
name: 'unit',
|
||||
type: 'options',
|
||||
displayOptions: {
|
||||
show: {
|
||||
mode: [
|
||||
'everyX',
|
||||
],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
{
|
||||
name: 'Minutes',
|
||||
value: 'minutes'
|
||||
},
|
||||
{
|
||||
name: 'Hours',
|
||||
value: 'hours'
|
||||
},
|
||||
],
|
||||
default: 'hours',
|
||||
description: 'If it should trigger all X minutes or hours.',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user