Skip to content

Commit a6b4b63

Browse files
authored
Merge pull request #345 from code0-tech/feat/#344
Adding functions and flow types
2 parents 0756cc1 + b3184a2 commit a6b4b63

115 files changed

Lines changed: 7560 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
{
2+
"runtime_identifier": "CRON",
3+
"identifier": "CRON",
4+
"name": [
5+
{
6+
"code": "en-US",
7+
"content": "Cron Job"
8+
}
9+
],
10+
"description": [
11+
{
12+
"code": "en-US",
13+
"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."
14+
}
15+
],
16+
"documentation": [],
17+
"displayIcon": "tabler:file-time",
18+
"alias": [
19+
{
20+
"code": "en-US",
21+
"content": "cron;code;schedule;timer;clock;flow"
22+
}
23+
],
24+
"displayMessage": [
25+
{
26+
"code": "en-US",
27+
"content": "Schedule Job ${cron_code}"
28+
}
29+
],
30+
"signature": "(cronMinute: CRON_MINUTE, cronHour: CRON_HOUR, cronDayOfMonth: CRON_DAY_OF_MONTH, cronMonth: CRON_MONTH, cronDayOfWeek: CRON_DAY_OF_WEEK): void",
31+
"linkedDataTypeIdentifiers": [
32+
"CRON_MINUTE",
33+
"CRON_HOUR",
34+
"CRON_DAY_OF_MONTH",
35+
"CRON_MONTH",
36+
"CRON_DAY_OF_WEEK"
37+
],
38+
"settings": [
39+
{
40+
"identifier": "cronMinute",
41+
"unique": "NONE",
42+
"defaultValue": null,
43+
"name": [
44+
{
45+
"code": "en-US",
46+
"content": "Minute"
47+
}
48+
],
49+
"description": [
50+
{
51+
"code": "en-US",
52+
"content": "Defines the minute when the flow runs (e.g., 0 for on the hour, */5 for every 5 minutes)."
53+
}
54+
]
55+
},
56+
{
57+
"identifier": "cronHour",
58+
"unique": "NONE",
59+
"defaultValue": null,
60+
"name": [
61+
{
62+
"code": "en-US",
63+
"content": "Hour"
64+
}
65+
],
66+
"description": [
67+
{
68+
"code": "en-US",
69+
"content": "Defines the hour when the flow runs (e.g., 0 for midnight, 14 for 2 PM)."
70+
}
71+
]
72+
},
73+
{
74+
"identifier": "cronDayOfMonth",
75+
"unique": "NONE",
76+
"defaultValue": null,
77+
"name": [
78+
{
79+
"code": "en-US",
80+
"content": "Day of the Month"
81+
}
82+
],
83+
"description": [
84+
{
85+
"code": "en-US",
86+
"content": "Defines the day of the month when the flow runs (e.g., 1 for first day, 15 for mid-month)."
87+
}
88+
]
89+
},
90+
{
91+
"identifier": "cronMonth",
92+
"unique": "NONE",
93+
"defaultValue": null,
94+
"name": [
95+
{
96+
"code": "en-US",
97+
"content": "Month"
98+
}
99+
],
100+
"description": [
101+
{
102+
"code": "en-US",
103+
"content": "Defines the month when the flow runs (e.g., 1 for January, 12 for December)."
104+
}
105+
]
106+
},
107+
{
108+
"identifier": "cronDayOfWeek",
109+
"unique": "NONE",
110+
"defaultValue": null,
111+
"name": [
112+
{
113+
"code": "en-US",
114+
"content": "Day of the Week"
115+
}
116+
],
117+
"description": [
118+
{
119+
"code": "en-US",
120+
"content": "Defines the weekday when the flow runs (e.g., 0 or SUN for Sunday, MON-FRI for weekdays)."
121+
}
122+
]
123+
}
124+
]
125+
}
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
{
2+
"runtime_identifier": "REST",
3+
"identifier": "REST",
4+
"editable": true,
5+
"name": [
6+
{
7+
"code": "en-US",
8+
"content": "Rest Endpoint"
9+
}
10+
],
11+
"description": [
12+
{
13+
"code": "en-US",
14+
"content": "A REST API is a web service that lets clients interact with data on a server using standard HTTP methods like GET, POST, PUT, and DELETE usually returning results in JSON format."
15+
}
16+
],
17+
"documentation": [],
18+
"displayMessage": [
19+
{
20+
"code": "en-US",
21+
"content": "Trigger Rest-Flow on ${method} with a Request to ${route}"
22+
}
23+
],
24+
"alias": [
25+
{
26+
"code": "en-US",
27+
"content": "http;rest;route;web;webhook"
28+
}
29+
],
30+
"displayIcon": "tabler:world-www",
31+
"signature": "<T>(input_schema: TYPE<T>, httpURL: HTTP_URL, httpMethod: HTTP_METHOD): REST_ADAPTER_INPUT<T>",
32+
"linkedDataTypeIdentifiers": [
33+
"HTTP_URL",
34+
"HTTP_METHOD",
35+
"REST_ADAPTER_INPUT"
36+
],
37+
"settings": [
38+
{
39+
"identifier": "input_schema",
40+
"unique": "NONE",
41+
"name": [
42+
{
43+
"code": "en-US",
44+
"content": "Input schema"
45+
}
46+
],
47+
"description": [
48+
{
49+
"code": "en-US",
50+
"content": "Input schema which defines the expected structure of the incoming request data."
51+
}
52+
]
53+
},
54+
{
55+
"identifier": "httpURL",
56+
"unique": "PROJECT",
57+
"name": [
58+
{
59+
"code": "en-US",
60+
"content": "URL"
61+
}
62+
],
63+
"description": [
64+
{
65+
"code": "en-US",
66+
"content": "Specifies the HTTP URL endpoint."
67+
}
68+
]
69+
},
70+
{
71+
"identifier": "httpMethod",
72+
"unique": "NONE",
73+
"name": [
74+
{
75+
"code": "en-US",
76+
"content": "Method"
77+
}
78+
],
79+
"description": [
80+
{
81+
"code": "en-US",
82+
"content": "Specifies the HTTP request method (e.g., GET, POST, PUT, DELETE)."
83+
}
84+
]
85+
}
86+
]
87+
}
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
{
2+
"runtime_definition_name": "rest::control::respond",
3+
"runtimeName": "rest::control::respond",
4+
"parameter_definitions": [
5+
{
6+
"runtimeName": "http_status_code",
7+
"defaultValue": null,
8+
"name": [
9+
{
10+
"code": "en-US",
11+
"content": "HTTP Status Code"
12+
}
13+
],
14+
"description": [
15+
{
16+
"code": "en-US",
17+
"content": "An HTTP status code is a three-digit number (100–599) indicating the result of a request (e.g., 200, 404, 500)."
18+
}
19+
],
20+
"documentation": []
21+
},
22+
{
23+
"runtimeName": "headers",
24+
"defaultValue": null,
25+
"name": [
26+
{
27+
"code": "en-US",
28+
"content": "HTTP response headers"
29+
}
30+
],
31+
"description": [
32+
{
33+
"code": "en-US",
34+
"content": "A collection of key-value pairs containing additional response metadata."
35+
}
36+
],
37+
"documentation": []
38+
},
39+
{
40+
"runtimeName": "payload",
41+
"defaultValue": null,
42+
"name": [
43+
{
44+
"code": "en-US",
45+
"content": "Response Payload"
46+
}
47+
],
48+
"description": [
49+
{
50+
"code": "en-US",
51+
"content": "Contains the response payload, such as JSON, XML, form data, or binary content, depending on the Content-Type header."
52+
}
53+
],
54+
"documentation": []
55+
}
56+
],
57+
"deprecationMessage": [],
58+
"throwsError": false,
59+
"name": [
60+
{
61+
"code": "en-US",
62+
"content": "Respond"
63+
}
64+
],
65+
"description": [
66+
{
67+
"code": "en-US",
68+
"content": "Processes an HTTP response and returns it to the requesting client. This function typically completes the HTTP request–response cycle by delivering the server’s final output, such as headers, status codes, and body content, back to the client."
69+
}
70+
],
71+
"documentation": [],
72+
"alias": [
73+
{
74+
"code": "en-US",
75+
"content": "respond;control;http"
76+
}
77+
],
78+
"displayMessage": [
79+
{
80+
"code": "en-US",
81+
"content": "Sends response with status ${http_status_code} and payload ${payload}"
82+
}
83+
],
84+
"displayIcon": "tabler:cube-sent",
85+
"signature": "<T>(http_status_code: HTTP_STATUS_CODE, headers: OBJECT<{}>, payload: T): void",
86+
"linkedDataTypeIdentifiers": [
87+
"HTTP_STATUS_CODE",
88+
"OBJECT"
89+
]
90+
}
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"runtime_definition_name": "std::boolean::as_number",
3+
"runtimeName": "std::boolean::as_number",
4+
"parameter_definitions": [
5+
{
6+
"runtimeName": "value",
7+
"defaultValue": null,
8+
"name": [
9+
{
10+
"code": "en-US",
11+
"content": "Value"
12+
}
13+
],
14+
"description": [
15+
{
16+
"code": "en-US",
17+
"content": "Converts a boolean to a number."
18+
}
19+
],
20+
"documentation": []
21+
}
22+
],
23+
"throwsError": false,
24+
"name": [
25+
{
26+
"code": "en-US",
27+
"content": "Boolean as Number"
28+
}
29+
],
30+
"description": [
31+
{
32+
"code": "en-US",
33+
"content": "Will convert the boolean to a number."
34+
}
35+
],
36+
"documentation": [],
37+
"alias": [
38+
{
39+
"code": "en-US",
40+
"content": "to number;numeric;boolean;logic;std;as;number"
41+
}
42+
],
43+
"displayMessage": [
44+
{
45+
"code": "en-US",
46+
"content": "Convert ${value} to number"
47+
}
48+
],
49+
"deprecationMessage": [],
50+
"displayIcon": "tabler:toggle-left",
51+
"signature": "(value: BOOLEAN): NUMBER",
52+
"linkedDataTypeIdentifiers": [
53+
"BOOLEAN",
54+
"NUMBER"
55+
]
56+
}

0 commit comments

Comments
 (0)