2021-09-14 17:43:06 +02:00
|
|
|
exports.definition = {
|
2021-09-06 18:53:02 +02:00
|
|
|
name: "Cron Trigger",
|
|
|
|
event: "cron:trigger",
|
2021-09-14 19:22:33 +02:00
|
|
|
icon: "Clock",
|
2021-09-06 18:53:02 +02:00
|
|
|
tagline: "Cron Trigger (<b>{{inputs.cron}}</b>)",
|
|
|
|
description: "Triggers automation on a cron schedule.",
|
|
|
|
stepId: "CRON",
|
|
|
|
inputs: {},
|
|
|
|
schema: {
|
|
|
|
inputs: {
|
|
|
|
properties: {
|
|
|
|
cron: {
|
|
|
|
type: "string",
|
|
|
|
customType: "cron",
|
|
|
|
title: "Expression",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
required: ["cron"],
|
|
|
|
},
|
|
|
|
outputs: {
|
|
|
|
properties: {
|
|
|
|
timestamp: {
|
|
|
|
type: "number",
|
|
|
|
description: "Timestamp the cron was executed",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
required: ["timestamp"],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
type: "TRIGGER",
|
|
|
|
}
|