code: cpp,dbal,client (2 files)

This commit is contained in:
2025-12-26 06:21:41 +00:00
parent 9018bce53e
commit 7bfcb4623d
2 changed files with 5 additions and 0 deletions

View File

@@ -69,6 +69,7 @@ public:
Result<std::vector<ComponentHierarchy>> searchComponents(const std::string& query,
const std::optional<std::string>& page_id = std::nullopt,
int limit = 20);
Result<std::vector<ComponentHierarchy>> getComponentChildren(const std::string& parent_id);
Result<Workflow> createWorkflow(const CreateWorkflowInput& input);
Result<Workflow> getWorkflow(const std::string& id);

View File

@@ -153,6 +153,10 @@ Result<std::vector<ComponentHierarchy>> Client::searchComponents(const std::stri
return entities::component::search(getStore(), query, page_id, limit);
}
Result<std::vector<ComponentHierarchy>> Client::getComponentChildren(const std::string& parent_id) {
return entities::component::getChildren(getStore(), parent_id);
}
Result<Workflow> Client::createWorkflow(const CreateWorkflowInput& input) {
return entities::workflow::create(getStore(), input);
}