From 7bfcb4623d150607ba0af94bab754cde5f0cbba6 Mon Sep 17 00:00:00 2001 From: JohnDoe6345789 Date: Fri, 26 Dec 2025 06:21:41 +0000 Subject: [PATCH] code: cpp,dbal,client (2 files) --- dbal/cpp/include/dbal/core/client.hpp | 1 + dbal/cpp/src/client.cpp | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/dbal/cpp/include/dbal/core/client.hpp b/dbal/cpp/include/dbal/core/client.hpp index be171bd2a..15c923930 100644 --- a/dbal/cpp/include/dbal/core/client.hpp +++ b/dbal/cpp/include/dbal/core/client.hpp @@ -69,6 +69,7 @@ public: Result> searchComponents(const std::string& query, const std::optional& page_id = std::nullopt, int limit = 20); + Result> getComponentChildren(const std::string& parent_id); Result createWorkflow(const CreateWorkflowInput& input); Result getWorkflow(const std::string& id); diff --git a/dbal/cpp/src/client.cpp b/dbal/cpp/src/client.cpp index 8fcf9c66b..a7ffb874e 100644 --- a/dbal/cpp/src/client.cpp +++ b/dbal/cpp/src/client.cpp @@ -153,6 +153,10 @@ Result> Client::searchComponents(const std::stri return entities::component::search(getStore(), query, page_id, limit); } +Result> Client::getComponentChildren(const std::string& parent_id) { + return entities::component::getChildren(getStore(), parent_id); +} + Result Client::createWorkflow(const CreateWorkflowInput& input) { return entities::workflow::create(getStore(), input); }