diff --git a/dbal/cpp/include/dbal/core/client.hpp b/dbal/cpp/include/dbal/core/client.hpp index e3e363338..9dc84f96a 100644 --- a/dbal/cpp/include/dbal/core/client.hpp +++ b/dbal/cpp/include/dbal/core/client.hpp @@ -62,6 +62,9 @@ public: Result> getComponentTree(const std::string& page_id); Result reorderComponents(const std::vector& updates); Result moveComponent(const MoveComponentInput& input); + Result> searchComponents(const std::string& query, + const std::optional& page_id = std::nullopt, + int limit = 20); Result createWorkflow(const CreateWorkflowInput& input); Result getWorkflow(const std::string& id); diff --git a/dbal/cpp/src/entities/component/index.hpp b/dbal/cpp/src/entities/component/index.hpp index 859b21c6e..d5a9a5d3d 100644 --- a/dbal/cpp/src/entities/component/index.hpp +++ b/dbal/cpp/src/entities/component/index.hpp @@ -9,5 +9,6 @@ #include "crud/reorder_components.hpp" #include "crud/move_component.hpp" #include "crud/get_tree.hpp" +#include "crud/search_components.hpp" #endif