diff --git a/apitable.py/apitable/types/node.py b/apitable.py/apitable/types/node.py index ac375eb..3050b28 100644 --- a/apitable.py/apitable/types/node.py +++ b/apitable.py/apitable/types/node.py @@ -10,6 +10,7 @@ class NodeTypeEnum(str, Enum): Form = 'Form' Dashboard = 'Dashboard' Mirror = 'Mirror' + Automation = 'Automation' ERROR = "ERROR NODE TYPE" diff --git a/apitable.py/apitable/types/response.py b/apitable.py/apitable/types/response.py index 0cf514b..8a01189 100644 --- a/apitable.py/apitable/types/response.py +++ b/apitable.py/apitable/types/response.py @@ -104,9 +104,11 @@ class GETNodeListResponseData(BaseModel): class GETNodeListResponse(ResponseBase): data: GETNodeListResponseData + class GETSearchNodeListResponseData(BaseModel): nodes: List[NodeSearchInfo] + class GETSearchNodeListResponse(ResponseBase): data: GETSearchNodeListResponseData diff --git a/apitable.py/test/test_get_nodes.py b/apitable.py/test/test_get_nodes.py index 3e48341..44dddc6 100644 --- a/apitable.py/test/test_get_nodes.py +++ b/apitable.py/test/test_get_nodes.py @@ -17,7 +17,7 @@ def test_space_root_nodes_all(self): space_root_nodes = self.apitable.space(SPACE_ID).nodes.all() self.assertIsInstance(space_root_nodes, list) first_node = space_root_nodes[0] - self.assertIn(first_node.type, ["Datasheet", "Folder", "Mirror", "Form", "ERROR NODE TYPE"]) + self.assertIn(first_node.type, ["Datasheet", "Folder", "Mirror", "Form", "ERROR NODE TYPE", "Automation"]) def test_get_node_detail(self): node = self.apitable.nodes.get(FOLDER_ID)