Skip to content

Commit 248a865

Browse files
committed
feat: adjusted module json
1 parent a8cb7da commit 248a865

11 files changed

Lines changed: 309 additions & 294 deletions

File tree

definitions/draco_cron/module.json

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
{
2-
"identifier": "draco-cron",
3-
"name": [
4-
{
5-
"code": "en-US",
6-
"content": "Cron"
7-
}
8-
],
9-
"description": [
10-
{
11-
"code": "en-US",
12-
"content": "Cron"
13-
}
14-
],
15-
"documentation": "",
16-
"author": "CodeZero",
17-
"icon": "tabler:alarm"
2+
"identifier": "draco-cron",
3+
"name": [
4+
{
5+
"code": "en-US",
6+
"content": "Cron"
7+
}
8+
],
9+
"description": [
10+
{
11+
"code": "en-US",
12+
"content": "Scheduled Flow using Cron-Jobs."
13+
}
14+
],
15+
"documentation": "",
16+
"author": "CodeZero",
17+
"icon": "tabler:file-time",
18+
"version": "1.0.0"
1819
}
Lines changed: 122 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -1,118 +1,124 @@
11
{
2-
"identifier": "CRON",
3-
"settings": [
4-
{
5-
"identifier": "cronMinute",
6-
"unique": "NONE",
7-
"defaultValue": null,
8-
"name": [
9-
{
10-
"code": "en-US",
11-
"content": "Minute"
12-
}
13-
],
14-
"description": [
15-
{
16-
"code": "en-US",
17-
"content": "Defines the minute when the flow runs (e.g., 0 for on the hour, */5 for every 5 minutes)."
18-
}
19-
]
20-
},
21-
{
22-
"identifier": "cronHour",
23-
"unique": "NONE",
24-
"defaultValue": null,
25-
"name": [
26-
{
27-
"code": "en-US",
28-
"content": "Hour"
29-
}
30-
],
31-
"description": [
32-
{
33-
"code": "en-US",
34-
"content": "Defines the hour when the flow runs (e.g., 0 for midnight, 14 for 2 PM)."
35-
}
36-
]
37-
},
38-
{
39-
"identifier": "cronDayOfMonth",
40-
"unique": "NONE",
41-
"defaultValue": null,
42-
"name": [
43-
{
44-
"code": "en-US",
45-
"content": "Day of the Month"
46-
}
47-
],
48-
"description": [
49-
{
50-
"code": "en-US",
51-
"content": "Defines the day of the month when the flow runs (e.g., 1 for first day, 15 for mid-month)."
52-
}
53-
]
54-
},
55-
{
56-
"identifier": "cronMonth",
57-
"unique": "NONE",
58-
"defaultValue": null,
59-
"name": [
60-
{
61-
"code": "en-US",
62-
"content": "Month"
63-
}
64-
],
65-
"description": [
66-
{
67-
"code": "en-US",
68-
"content": "Defines the month when the flow runs (e.g., 1 for January, 12 for December)."
69-
}
70-
]
71-
},
72-
{
73-
"identifier": "cronDayOfWeek",
74-
"unique": "NONE",
75-
"defaultValue": null,
76-
"name": [
77-
{
78-
"code": "en-US",
79-
"content": "Day of the Week"
80-
}
81-
],
82-
"description": [
83-
{
84-
"code": "en-US",
85-
"content": "Defines the weekday when the flow runs (e.g., 0 or SUN for Sunday, MON-FRI for weekdays)."
86-
}
87-
]
88-
}
89-
],
90-
"name": [
91-
{
92-
"code": "en-US",
93-
"content": "Cron Job"
94-
}
95-
],
96-
"description": [
97-
{
98-
"code": "en-US",
99-
"content": "A Cron Job is a scheduled task that runs automatically at specified intervals, typically defined using cron expressions. It is commonly used to automate repetitive operations such as data processing, system maintenance, and periodic updates without requiring manual execution."
100-
}
101-
],
102-
"documentation": [],
103-
"displayIcon": "tabler:file-time",
104-
"alias": [
105-
{
106-
"code": "en-US",
107-
"content": "cron;code;schedule;timer;clock;flow"
108-
}
109-
],
110-
"displayMessage": [
111-
{
112-
"code": "en-US",
113-
"content": "Schedule Job ${cron_code}"
114-
}
115-
],
116-
"signature": "(cronMinute: CRON_MINUTE, cronHour: CRON_HOUR, cronDayOfMonth: CRON_DAY_OF_MONTH, cronMonth: CRON_MONTH, cronDayOfWeek: CRON_DAY_OF_WEEK): void",
117-
"linkedDataTypeIdentifiers": ["CRON_MINUTE", "CRON_HOUR", "CRON_DAY_OF_MONTH", "CRON_MONTH", "CRON_DAY_OF_WEEK"]
2+
"identifier": "CRON",
3+
"name": [
4+
{
5+
"code": "en-US",
6+
"content": "Cron Job"
7+
}
8+
],
9+
"description": [
10+
{
11+
"code": "en-US",
12+
"content": "A Cron Job is a scheduled task that runs automatically at specified intervals, typically defined using cron expressions. It is commonly used to automate repetitive operations such as data processing, system maintenance, and periodic updates without requiring manual execution."
13+
}
14+
],
15+
"documentation": [],
16+
"displayIcon": "tabler:file-time",
17+
"alias": [
18+
{
19+
"code": "en-US",
20+
"content": "cron;code;schedule;timer;clock;flow"
21+
}
22+
],
23+
"displayMessage": [
24+
{
25+
"code": "en-US",
26+
"content": "Schedule Job ${cron_code}"
27+
}
28+
],
29+
"signature": "(cronMinute: CRON_MINUTE, cronHour: CRON_HOUR, cronDayOfMonth: CRON_DAY_OF_MONTH, cronMonth: CRON_MONTH, cronDayOfWeek: CRON_DAY_OF_WEEK): void",
30+
"linkedDataTypeIdentifiers": [
31+
"CRON_MINUTE",
32+
"CRON_HOUR",
33+
"CRON_DAY_OF_MONTH",
34+
"CRON_MONTH",
35+
"CRON_DAY_OF_WEEK"
36+
],
37+
"runtimeSettings": [
38+
{
39+
"identifier": "cronMinute",
40+
"unique": "NONE",
41+
"defaultValue": null,
42+
"name": [
43+
{
44+
"code": "en-US",
45+
"content": "Minute"
46+
}
47+
],
48+
"description": [
49+
{
50+
"code": "en-US",
51+
"content": "Defines the minute when the flow runs (e.g., 0 for on the hour, */5 for every 5 minutes)."
52+
}
53+
]
54+
},
55+
{
56+
"identifier": "cronHour",
57+
"unique": "NONE",
58+
"defaultValue": null,
59+
"name": [
60+
{
61+
"code": "en-US",
62+
"content": "Hour"
63+
}
64+
],
65+
"description": [
66+
{
67+
"code": "en-US",
68+
"content": "Defines the hour when the flow runs (e.g., 0 for midnight, 14 for 2 PM)."
69+
}
70+
]
71+
},
72+
{
73+
"identifier": "cronDayOfMonth",
74+
"unique": "NONE",
75+
"defaultValue": null,
76+
"name": [
77+
{
78+
"code": "en-US",
79+
"content": "Day of the Month"
80+
}
81+
],
82+
"description": [
83+
{
84+
"code": "en-US",
85+
"content": "Defines the day of the month when the flow runs (e.g., 1 for first day, 15 for mid-month)."
86+
}
87+
]
88+
},
89+
{
90+
"identifier": "cronMonth",
91+
"unique": "NONE",
92+
"defaultValue": null,
93+
"name": [
94+
{
95+
"code": "en-US",
96+
"content": "Month"
97+
}
98+
],
99+
"description": [
100+
{
101+
"code": "en-US",
102+
"content": "Defines the month when the flow runs (e.g., 1 for January, 12 for December)."
103+
}
104+
]
105+
},
106+
{
107+
"identifier": "cronDayOfWeek",
108+
"unique": "NONE",
109+
"defaultValue": null,
110+
"name": [
111+
{
112+
"code": "en-US",
113+
"content": "Day of the Week"
114+
}
115+
],
116+
"description": [
117+
{
118+
"code": "en-US",
119+
"content": "Defines the weekday when the flow runs (e.g., 0 or SUN for Sunday, MON-FRI for weekdays)."
120+
}
121+
]
122+
}
123+
]
118124
}

definitions/draco_rest/module.json

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
{
2-
"identifier": "draco-rest",
3-
"name": [
4-
{
5-
"code": "en-US",
6-
"content": "Cron"
7-
}
8-
],
9-
"description": [
10-
{
11-
"code": "en-US",
12-
"content": "Cron"
13-
}
14-
],
15-
"documentation": "",
16-
"author": "CodeZero",
17-
"icon": "tabler:alarm"
2+
"identifier": "draco-rest",
3+
"name": [
4+
{
5+
"code": "en-US",
6+
"content": "REST"
7+
}
8+
],
9+
"description": [
10+
{
11+
"code": "en-US",
12+
"content": "Trigger Flows unsing a HTTP-Server."
13+
}
14+
],
15+
"documentation": "",
16+
"author": "CodeZero",
17+
"icon": "tabler:cube-sent",
18+
"version": "1.0.0"
1819
}
Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,5 @@
11
{
22
"identifier": "REST",
3-
"settings": [
4-
{
5-
"identifier": "httpURL",
6-
"unique": "PROJECT",
7-
"name": [
8-
{
9-
"code": "en-US",
10-
"content": "URL"
11-
}
12-
],
13-
"description": [
14-
{
15-
"code": "en-US",
16-
"content": "Specifies the HTTP URL endpoint."
17-
}
18-
]
19-
},
20-
{
21-
"identifier": "httpMethod",
22-
"unique": "NONE",
23-
"name": [
24-
{
25-
"code": "en-US",
26-
"content": "Method"
27-
}
28-
],
29-
"description": [
30-
{
31-
"code": "en-US",
32-
"content": "Specifies the HTTP request method (e.g., GET, POST, PUT, DELETE)."
33-
}
34-
]
35-
}
36-
],
373
"editable": true,
384
"name": [
395
{
@@ -66,5 +32,39 @@
6632
"HTTP_URL",
6733
"HTTP_METHOD",
6834
"REST_ADAPTER_INPUT"
35+
],
36+
"runtimeSettings": [
37+
{
38+
"identifier": "httpURL",
39+
"unique": "PROJECT",
40+
"name": [
41+
{
42+
"code": "en-US",
43+
"content": "URL"
44+
}
45+
],
46+
"description": [
47+
{
48+
"code": "en-US",
49+
"content": "Specifies the HTTP URL endpoint."
50+
}
51+
]
52+
},
53+
{
54+
"identifier": "httpMethod",
55+
"unique": "NONE",
56+
"name": [
57+
{
58+
"code": "en-US",
59+
"content": "Method"
60+
}
61+
],
62+
"description": [
63+
{
64+
"code": "en-US",
65+
"content": "Specifies the HTTP request method (e.g., GET, POST, PUT, DELETE)."
66+
}
67+
]
68+
}
6969
]
7070
}

0 commit comments

Comments
 (0)