diff --git a/definitions/cron/data_type/object/cron_code.proto.json b/definitions/cron/data_type/object/cron_code.proto.json deleted file mode 100644 index 095bfb2..0000000 --- a/definitions/cron/data_type/object/cron_code.proto.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "variant": "OBJECT", - "identifier": "CRON_CODE", - "name": [ - { - "code": "en-US", - "content": "Cron Code" - } - ], - "alias": [ - { - "code": "en-US", - "content": "cron;code;schedule;timer;clock" - } - ], - "displayMessage": [ - { - "code": "en-US", - "content": "Cron Code ${minute} ${hour} ${day_of_month} ${month} ${day_of_week}" - } - ], - "rules": [ - { - "containsKey": { - "key": "minute", - "dataTypeIdentifier": { - "dataTypeIdentifier": "CRON_MINUTE" - } - } - }, - { - "containsKey": { - "key": "hour", - "dataTypeIdentifier": { - "dataTypeIdentifier": "CRON_HOUR" - } - } - }, - { - "containsKey": { - "key": "day_of_month", - "dataTypeIdentifier": { - "dataTypeIdentifier": "CRON_DAY_OF_MONTH" - } - } - }, - { - "containsKey": { - "key": "month", - "dataTypeIdentifier": { - "dataTypeIdentifier": "CRON_MONTH" - } - } - }, - { - "containsKey": { - "key": "day_of_week", - "dataTypeIdentifier": { - "dataTypeIdentifier": "CRON_DAY_OF_WEEK" - } - } - } - ], - "genericKeys": [] -} diff --git a/definitions/cron/flow_type/cron.proto.json b/definitions/cron/flow_type/cron.proto.json index 460af57..73a7547 100644 --- a/definitions/cron/flow_type/cron.proto.json +++ b/definitions/cron/flow_type/cron.proto.json @@ -2,20 +2,92 @@ "identifier": "CRON", "settings": [ { - "identifier": "CRON_CODE", + "identifier": "CRON_MINUTE", "unique": "NONE", - "dataTypeIdentifier": "CRON_CODE", + "dataTypeIdentifier": "CRON_MINUTE", "defaultValue": null, "name": [ { "code": "en-US", - "content": "Cron Code" + "content": "Minute" } ], "description": [ { "code": "en-US", - "content": "Specifies the Cron Code for this flow to be called." + "content": "Defines the minute when the flow runs (e.g., 0 for on the hour, */5 for every 5 minutes)." + } + ] + }, + { + "identifier": "CRON_HOUR", + "unique": "NONE", + "dataTypeIdentifier": "CRON_HOUR", + "defaultValue": null, + "name": [ + { + "code": "en-US", + "content": "Hour" + } + ], + "description": [ + { + "code": "en-US", + "content": "Defines the hour when the flow runs (e.g., 0 for midnight, 14 for 2 PM)." + } + ] + }, + { + "identifier": "CRON_DAY_OF_MONTH", + "unique": "NONE", + "dataTypeIdentifier": "CRON_DAY_OF_MONTH", + "defaultValue": null, + "name": [ + { + "code": "en-US", + "content": "Day of the Month" + } + ], + "description": [ + { + "code": "en-US", + "content": "Defines the day of the month when the flow runs (e.g., 1 for first day, 15 for mid-month)." + } + ] + }, + { + "identifier": "CRON_MONTH", + "unique": "NONE", + "dataTypeIdentifier": "CRON_MONTH", + "defaultValue": null, + "name": [ + { + "code": "en-US", + "content": "Month" + } + ], + "description": [ + { + "code": "en-US", + "content": "Defines the month when the flow runs (e.g., 1 for January, 12 for December)." + } + ] + }, + { + "identifier": "CRON_DAY_OF_WEEK", + "unique": "NONE", + "dataTypeIdentifier": "CRON_DAY_OF_WEEK", + "defaultValue": null, + "name": [ + { + "code": "en-US", + "content": "Day of the Week" + } + ], + "description": [ + { + "code": "en-US", + "content": "Defines the weekday when the flow runs (e.g., 0 or SUN for Sunday, MON-FRI for weekdays)." } ] }