mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
27 lines
801 B
Lua
27 lines
801 B
Lua
-- Workflow node action
|
|
|
|
---@class ActionNodeDefinition
|
|
---@field type "action" Node type identifier
|
|
---@field id string Unique node identifier
|
|
---@field label string Display label for the node
|
|
---@field actionType string The type of action to perform
|
|
---@field icon? string Icon name from fakemui icons
|
|
|
|
---Creates an action node for workflow
|
|
---@param id string Unique node identifier
|
|
---@param label string Display label for the node
|
|
---@param action_type string The type of action to perform
|
|
---@param icon? string Icon name from fakemui icons
|
|
---@return ActionNodeDefinition
|
|
local function action_node(id, label, action_type, icon)
|
|
return {
|
|
type = "action",
|
|
id = id,
|
|
label = label,
|
|
actionType = action_type,
|
|
icon = icon
|
|
}
|
|
end
|
|
|
|
return action_node
|