Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
125 changes: 125 additions & 0 deletions definitions/draco_cron/flow_types/cron.proto.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
{
"runtime_identifier": "CRON",
"identifier": "CRON",
"name": [
{
"code": "en-US",
"content": "Cron Job"
}
],
"description": [
{
"code": "en-US",
"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."
}
],
"documentation": [],
"displayIcon": "tabler:file-time",
"alias": [
{
"code": "en-US",
"content": "cron;code;schedule;timer;clock;flow"
}
],
"displayMessage": [
{
"code": "en-US",
"content": "Schedule Job ${cron_code}"
}
],
"signature": "(cronMinute: CRON_MINUTE, cronHour: CRON_HOUR, cronDayOfMonth: CRON_DAY_OF_MONTH, cronMonth: CRON_MONTH, cronDayOfWeek: CRON_DAY_OF_WEEK): void",
"linkedDataTypeIdentifiers": [
"CRON_MINUTE",
"CRON_HOUR",
"CRON_DAY_OF_MONTH",
"CRON_MONTH",
"CRON_DAY_OF_WEEK"
],
"settings": [
{
"identifier": "cronMinute",
"unique": "NONE",
"defaultValue": null,
"name": [
{
"code": "en-US",
"content": "Minute"
}
],
"description": [
{
"code": "en-US",
"content": "Defines the minute when the flow runs (e.g., 0 for on the hour, */5 for every 5 minutes)."
}
]
},
{
"identifier": "cronHour",
"unique": "NONE",
"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": "cronDayOfMonth",
"unique": "NONE",
"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": "cronMonth",
"unique": "NONE",
"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": "cronDayOfWeek",
"unique": "NONE",
"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)."
}
]
}
]
}
87 changes: 87 additions & 0 deletions definitions/draco_rest/flow_types/rest.proto.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"runtime_identifier": "REST",
"identifier": "REST",
"editable": true,
"name": [
{
"code": "en-US",
"content": "Rest Endpoint"
}
],
"description": [
{
"code": "en-US",
"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."
}
],
"documentation": [],
"displayMessage": [
{
"code": "en-US",
"content": "Trigger Rest-Flow on ${method} with a Request to ${route}"
}
],
"alias": [
{
"code": "en-US",
"content": "http;rest;route;web;webhook"
}
],
"displayIcon": "tabler:world-www",
"signature": "<T>(input_schema: TYPE<T>, httpURL: HTTP_URL, httpMethod: HTTP_METHOD): REST_ADAPTER_INPUT<T>",
"linkedDataTypeIdentifiers": [
"HTTP_URL",
"HTTP_METHOD",
"REST_ADAPTER_INPUT"
],
"settings": [
{
"identifier": "input_schema",
"unique": "NONE",
"name": [
{
"code": "en-US",
"content": "Input schema"
}
],
"description": [
{
"code": "en-US",
"content": "Input schema which defines the expected structure of the incoming request data."
}
]
},
{
"identifier": "httpURL",
"unique": "PROJECT",
"name": [
{
"code": "en-US",
"content": "URL"
}
],
"description": [
{
"code": "en-US",
"content": "Specifies the HTTP URL endpoint."
}
]
},
{
"identifier": "httpMethod",
"unique": "NONE",
"name": [
{
"code": "en-US",
"content": "Method"
}
],
"description": [
{
"code": "en-US",
"content": "Specifies the HTTP request method (e.g., GET, POST, PUT, DELETE)."
}
]
}
]
}
90 changes: 90 additions & 0 deletions definitions/draco_rest/functions/rest_control_respond.proto.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
{
"runtime_definition_name": "rest::control::respond",
"runtimeName": "rest::control::respond",
"parameter_definitions": [
{
"runtimeName": "http_status_code",
"defaultValue": null,
"name": [
{
"code": "en-US",
"content": "HTTP Status Code"
}
],
"description": [
{
"code": "en-US",
"content": "An HTTP status code is a three-digit number (100–599) indicating the result of a request (e.g., 200, 404, 500)."
}
],
"documentation": []
},
{
"runtimeName": "headers",
"defaultValue": null,
"name": [
{
"code": "en-US",
"content": "HTTP response headers"
}
],
"description": [
{
"code": "en-US",
"content": "A collection of key-value pairs containing additional response metadata."
}
],
"documentation": []
},
{
"runtimeName": "payload",
"defaultValue": null,
"name": [
{
"code": "en-US",
"content": "Response Payload"
}
],
"description": [
{
"code": "en-US",
"content": "Contains the response payload, such as JSON, XML, form data, or binary content, depending on the Content-Type header."
}
],
"documentation": []
}
],
"deprecationMessage": [],
"throwsError": false,
"name": [
{
"code": "en-US",
"content": "Respond"
}
],
"description": [
{
"code": "en-US",
"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."
}
],
"documentation": [],
"alias": [
{
"code": "en-US",
"content": "respond;control;http"
}
],
"displayMessage": [
{
"code": "en-US",
"content": "Sends response with status ${http_status_code} and payload ${payload}"
}
],
"displayIcon": "tabler:cube-sent",
"signature": "<T>(http_status_code: HTTP_STATUS_CODE, headers: OBJECT<{}>, payload: T): void",
"linkedDataTypeIdentifiers": [
"HTTP_STATUS_CODE",
"OBJECT"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"runtime_definition_name": "std::boolean::as_number",
"runtimeName": "std::boolean::as_number",
"parameter_definitions": [
{
"runtimeName": "value",
"defaultValue": null,
"name": [
{
"code": "en-US",
"content": "Value"
}
],
"description": [
{
"code": "en-US",
"content": "Converts a boolean to a number."
}
],
"documentation": []
}
],
"throwsError": false,
"name": [
{
"code": "en-US",
"content": "Boolean as Number"
}
],
"description": [
{
"code": "en-US",
"content": "Will convert the boolean to a number."
}
],
"documentation": [],
"alias": [
{
"code": "en-US",
"content": "to number;numeric;boolean;logic;std;as;number"
}
],
"displayMessage": [
{
"code": "en-US",
"content": "Convert ${value} to number"
}
],
"deprecationMessage": [],
"displayIcon": "tabler:toggle-left",
"signature": "(value: BOOLEAN): NUMBER",
"linkedDataTypeIdentifiers": [
"BOOLEAN",
"NUMBER"
]
}
Loading
Loading