fix: descriptor (listen, set, if, )deprecated typings

This commit is contained in:
TheNoxium
2025-11-24 04:12:26 +07:00
parent 0bc87b589e
commit 0d6ecfeb40
23 changed files with 89 additions and 94 deletions

View File

@@ -36,14 +36,18 @@ class IfNodeCoreSchema(BaseModel):
data: Optional[IfNodeCoreSchemaData] = Field(default=None, description="Данные узла")
# Дескриптор формы узла IF
IF_FORM_DESCRIPTOR = FormDescriptor(
elements=[
RowElement(
name="condition_row_label",
type="row",
label="condition_name",
),
RowElement(
name="condition_row",
type="row",
label="Condition",
link_port=LinkPort(id="then_output", label="Then"),
label="condition",
link_port=LinkPort(id=0, label="Then"),
elements=[
AreaElement(
name="condition",
@@ -56,8 +60,8 @@ IF_FORM_DESCRIPTOR = FormDescriptor(
RowElement(
name="else_row",
type="row",
label="Alternative path",
link_port=LinkPort(id="else_output", label="Else"),
label="alternative_path",
link_port=LinkPort(id=1, label="Else"),
),
]
)